users@glassfish.java.net

Re: Defining a datasource in an embedded EJBContainer

From: <glassfish_at_javadesktop.org>
Date: Mon, 08 Mar 2010 11:00:50 PST

If you are running your embedded EJB against an existing GlassFish installation, you need to preconfigure all the resources using either admin GUI or CLI (the same way you would do it for a regular deployment). - see http://docs.sun.com/app/docs/doc/821-1208/gjlde?a=view

It is not a supported option currently to add a datasource if you use EJB Embeddable API with glassfish-embedded-all.jar. Feel free to file an enhancement request.

-marina
[Message sent by forum member 'mvatkina' (marina.vatkina_at_sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=390710