[jetty-user] Accessing JNDI datasource created in Jetty by a standalone client

Mayur Gupta <[email protected]> Tue, 23 Oct 2012 15:35:32 +0530
Newsgroups gmane.comp.java.jetty.support
Message-ID <CABeCSNX+4Mo5GB13c1_4KG-6JSGssWrtPy-00EWj3EgrEyornQ@mail.gmail.com>
--047d7b339ceb4b1aa104ccb71cb2
Content-Type: text/plain; charset=ISO-8859-1

Hey,

I am writing integration test for my rest services. For this I want to
clean up the database after running every test. I am using in memory
database which is created when the application is deployed in Jetty. I have
created a JNDI datasource for this database on JVM level. How can I access
this datasource from the outside the webapp?

Thanks
-Mayur

--047d7b339ceb4b1aa104ccb71cb2
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hey,<br><br>I am writing integration test for my rest services. For this I =
want to clean up the database after running every test. I am using in memor=
y database which is created when the application is deployed in Jetty. I ha=
ve created a JNDI datasource for this database on JVM level. How can I acce=
ss this datasource from the outside the webapp?<br>
<br>Thanks<br>-Mayur<br>

--047d7b339ceb4b1aa104ccb71cb2--