Solved it

It turns out that there is a file
javaeetutorial5\examples\web\bookstore\src\META-INF\persistence.xml where we
could specify jdbc resource

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" 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/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";>
  <persistence-unit name="book" transaction-type="JTA">
    <jta-data-source>jdbc/__default</jta-data-source> *=>CHANGE THIS PART*
  </persistence-unit>
</persistence>

Cheers
Kris

On Wed, Feb 11, 2009 at 11:39 PM, Kristanto Oetomo <
kristanto.oetomo....@gmail.com> wrote:

> Hi All
>
> Just wondering how to point Bookstore1 sample to use the jdbc resource:
> jdbc/BookDB. I believe currently it's using jdbc/__default. Any idea?
>
> Note that I have created the jdbc resource jdbc/BookDB from GlassFish admin
> UI. The issue that I am having is to have the application use jdbc/BookDB
> instead of jdbc/__default
>
> Help appreciated
>
> Cheers
> Kris
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to