users@glassfish.java.net

Re: EJB 3.1 Embedded

From: <glassfish_at_javadesktop.org>
Date: Sun, 17 Oct 2010 06:28:07 PDT

"Is this packaged in a WAR or in a EJB-JAR or EAR?"
I don't really understand what you mean here... :(

i pack the EJB (Person) into a simple JAR and add this jar to the Java Path of the project. Then I run the Test class. The problem is that the first time I do this, it seems to work, in a way.

This is what I get:

Lookup failed for 'java:global/classes/Person' in SerialContext[targetHost=null,targetPort=null

But when I can also see this:

"INFO: Portable JNDI names for EJB Person : [java:global/ejb-app7508496269174587855/classes/Person"

What is the ejb-app7508496269174587855?

Then I re-run the same code and I get:

org.glassfish.ejb.embedded.EJBContainerProviderImpl
Returned null from createEJBContainer call.

I have no idea so far what is going on.

Thx for your help,
Eugene.
[Message sent by forum member 'wind57']

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