This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How to specify a simple JNDI name for my EJB in WebLogic 10 (with annotations)? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "How to specify a simple JNDI name for my EJB in WebLogic 10 (with annotations)?" Watch "How to specify a simple JNDI name for my EJB in WebLogic 10 (with annotations)?" New topic
Author

How to specify a simple JNDI name for my EJB in WebLogic 10 (with annotations)?

Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
If I annotate my session bean like that:

and deploy it in Webglogic 10, i get access to the remote interface with:


that works fine, but is there an alternative to define
a jndi name with annotations, without the full qualified classname of the remote interface?

so I want to have something like:


Reason being that at runtime, the client will need to be able to get the service out of JNDI without actually knowing the implementation (in this case, MyServiceBeanImpl or a Proxy) that is being returned (and hence the FQCN).

Google and friends seems to indicate that there may be a way to do this using ejb-jar.xml or weblogic-ejb-jar.xml, but So far it all looks like a cross between undocumented and incomprehensible. I'd rather do this with straight annotations, but I'm open to XML examples, if anyone's got 'em.

thanks!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to specify a simple JNDI name for my EJB in WebLogic 10 (with annotations)?
 
Similar Threads
XPost: How to specify a simple JNDI name for my EJB in WebLogic 10 (with annotations)?
ejb myclipse weblogic error
JNDI Lookup Failing
Jboss and Ejb 2.1 ejb-ref lookup
javax.naming.NameNotFoundException: Name comp/env/ejb not found in context "java:"