Java Reference
In-Depth Information
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persist-
ence
http://java.sun.com/xml/ns/persistence/persisten-
ce_2_0.xsd">
<persistence-unit name="clientmdbentity-ejbPU" transaction-
type="JTA">
<provider-
>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>jdbc/__default</jta-data-source>
<class>eb.SetupOffice</class>
<properties>
<property name="eclipselink.ddl-generation"
value="drop-and-create-tables"/>
</properties>
</persistence-unit>
</persistence>
Creating Resources for the clientmdbentity Example
This example uses the connection factory jms/ConnectionFactory and the topic
jms/Topic , both of which you used in “ An Application That Uses the JMS API with a
Session Bean on page 416 . It also uses the JDBC resource named jdbc/__default ,
which is enabled by default when you start the GlassFish Server.
If you deleted the connection factory or topic, they will be created when you deploy the
example.
Running the clientmdbentity Example
You can use either NetBeans IDE or Ant to build, package, deploy, and run the client-
mdbentity example.
To Run the clientmdbentity Example Using NetBeans IDE
1. From the File menu, choose Open Project.
2. In the Open Project dialog, navigate to:
tut-install /examples/jms/
3. Select the clientmdbentity folder.
4. Select the Open as Main Project check box and the Open Required Projects
check box.
5. Click Open Project.
Search WWH ::




Custom Search