users@glassfish.java.net

Re: ejb testing with embedabble container

From: <glassfish_at_javadesktop.org>
Date: Tue, 13 Jul 2010 06:34:03 PDT

JDBC-resource access inside embeddable ejb container is a bit tricky. JDBC resources are managed by appserver not by ejb container. When you run embeddable ejb container, the appserver may not be running. You are also accessing the jdbc resource outside the appserver VM.

This type of usage is not portable with no guaranteed transaction support, and varies from appserver to appserver. In GlassFish, you can check the resource configuration: allow non-component, non-transaction, etc.
[Message sent by forum member 'cf126330']

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