On Sep 25, 2007, at 6:40 PM, David Blevins wrote:
On Sep 25, 2007, at 7:38 AM, Kevan Miller wrote:
One thing I've noticed -- the default JNDI name for EJB's has been
changed in OpenEJB. So, there is a compatibility issue with 2.0.1.
We might be able to configure how OpenEJB generates this default
to maintain backward compatibility. Better, IMO, to go ahead and
match OpenEJB's behavior.
There are no compatibility issues as it was explicitly set in
Geronimo 2.0.1 to be essentially {moduleId}/{ejbName}/
{interfaceClass} (actually it's {deploymentId}/{interfaceClass}
and deploymentId will be {moduleId}/{ejbName}). It'll still be the
same in Geronimo 2.0.2, just now it can be changed to something
shorter.
Well, that's encouraging. However, something has changed between
2.0.1 and 2.0.2. Can you help explain the following?
INFO log during 2.0.1 deploy:
18:45:13,785 INFO [config] Configuring app: GeneralEJB.jar
18:45:13,849 INFO [OpenEJB] Auto-deploying ejb My: EjbDeployment
(deployment-id=GeneralEJB.jar/My, container-id=null)
18:45:14,066 INFO [config] Loaded Module: GeneralEJB.jar
18:45:16,653 INFO [Enhance] You have enabled runtime enhancement,
but have not specified the set of persistent classes. OpenJPA must
look for metadata for every loaded class, which might increase class
load times significantly.
18:45:17,021 INFO [startup] Assembling app: /geronimo-jetty6-
jee5-2.0.1/var/temp/geronimo-deploymentUtil24358.jar
18:45:17,375 INFO [startup] Jndi(name=GeneralEJB.jar/My/ejbs.My)
18:45:17,375 INFO [startup] Created Ejb(deployment-id=GeneralEJB.jar/
My, ejb-name=My, container=Default Stateless Container)
INFO log during 2.0.2-SNAPSHOT deploy:
18:52:08,701 INFO [config] Configuring app: sibc/ejb/7.0.0/ear
18:52:08,936 INFO [OpenEJB] Auto-deploying ejb My: EjbDeployment
(deployment-id=GeneralEJB.jar/My)
18:52:09,281 INFO [config] Loaded Module: sibc/ejb/7.0.0/ear
18:52:11,467 INFO [Enhance] You have enabled runtime enhancement,
but have not specified the set of persistent classes. OpenJPA must
look for metadata for every loaded class, which might increase class
load times significantly.
18:52:11,977 INFO [startup] Assembling app: /Users/kevan/geronimo/
server/branches/2.0/target/geronimo-jetty6-jee5-2.0.2-SNAPSHOT/var/
temp/geronimo-deploymentUtil14898.jar
18:52:12,440 INFO [startup] Jndi(name=GeneralEJB.jar/My/ejbs.MyHome)
--> Ejb(deployment-id=GeneralEJB.jar/My)
18:52:12,447 INFO [startup] Created Ejb(deployment-id=GeneralEJB.jar/
My, ejb-name=My, container=Default Stateless Container)
Note the different JNDI names...
--kevan