Glassfish: Defining Custom JNDI Names for Session Beans
Posted
by Adeel Ansari
on Stack Overflow
See other posts from Stack Overflow
or by Adeel Ansari
Published on 2010-04-21T12:11:28Z
Indexed on
2010/04/21
12:23 UTC
Read the original article
Hit count: 390
Background:
Want to use GF3 in development, where as actual SIT, UAT, and production is using WAS.
Problem:
With the remote session beans everything is good to go, as GF3 gives a non-standard JNDI name, which is same as what WAS suggests, i.e. an absolute class name. Now for the local session beans WAS use the same absolute class name but with the prefix, i.e. ejblocal:
. Whereas GF3 doesn't give any non-standard JNDI name for local session beans. GF3 came up with only portable name, java:global/..
I need to find a way so I can use the same names for both.
I am using EJB 3.0, WAS 7.9, and Glassfish 3. Don't have any xml confiuration for ejbs. Using Spring to inject the bean in Struts2 actions. With remote interfaces both servers are okay and agreed on a single convention, but for locals they differ. Is there any solution for this? Or just sun-ejb-jar.xml
will solve it?
Thanks.
© Stack Overflow or respective owner