This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Philippe Desrosiers
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!