Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] How to create EclipseLink Sessions, ORM.xml files in J2SE environment

I am a newbie to EclipseLink and so far was able to write an persistence.xml
file where I can do CRUD operations against my DB. 

How do I create a Session in a pure J2SE environment so that I can use "Unit
Of Work" concepts working. Do I need a Database Session created or just a
regular ServerSession. Also, any links, examples that you can throw at me
would be very helpful.

Any examples of ORM.xml files is also very helpful.

Here is what my persistence file looks like:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="";
	<persistence-unit name="Prototype" transaction-type="RESOURCE_LOCAL">
			<!--  Logging defaults set here -->
			<property name="eclipselink.logging.level" value="FINE"/>
			<property name="eclipselink.logging.thread" value="false"/>
			<property name="eclipselink.logging.timestamp" value="false"/>
			<property name="eclipselink.logging.exceptions" value="false"/>
			<!-- Oracle Connections -->
           	<property name="eclipselink.jdbc.driver"
value="oracle.jdbc.driver.OracleDriver" /><property
name="eclipselink.logging.session" value="false"/>  
           	<property name="eclipselink.jdbc.url"
           	<property name="eclipselink.jdbc.password" value="xx"/> 
           	<property name="eclipselink.jdbc.user" value="xx"/>
           	<property name=""
		   	<property name="eclipselink.jdbc.write-connections.min" value="1"/>
		   	<property name="" value="Oracle"/>
		   	<property name="eclipselink.jdbc.batch-writing" value="JDBC" /> 

As Always, 
Thanks in Advance!


View this message in context:
Sent from the EclipseLink - Users mailing list archive at

Back to the top