4 Replies Latest reply on Jan 3, 2007 10:34 PM by Colin Goudie

    Looking up Datasource from Client

    Colin Goudie Newbie

      I have a client app and want to access the JDBC connection to use Jasperreports from the client.

      One way would be to configure the client with its own database settings that are just duplicated in my ...-ds.xml file.

      Instead I have heard you can do a JNDI lookup to retrieve a Datasource object? Can anyone give me any tips on what the JNDI name is for the datasource with the settings below? (Running jboss-4.0.5.GA)


      <?xml version="1.0" encoding="UTF-8"?>
       <persistence-unit name="pos-em">
       <property name="hibernate.hbm2ddl.auto" value="update"/>

      <?xml version="1.0" encoding="UTF-8"?>
       <type-mapping>PostgreSQL 8.0</type-mapping>