It's not a secret anymore!
The moose likes BEA/Weblogic and the fly likes Weblogic default mappedName JNDI lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic default mappedName JNDI lookup" Watch "Weblogic default mappedName JNDI lookup" New topic

Weblogic default mappedName JNDI lookup

Eric Cornely

Joined: Aug 03, 2011
Posts: 9


I'm learning EJB 3.0 and need to get an application working both on glassfish and weblogic.

I developped a very simple stateless session bean and until now just tried to look it up using jndi in a console client.

I got it working once when specifying @Stateless(mappedName="TestBean") and noticed that for glassfish the mappedName can be use to lookup my bean and in weblogic i need to add "#" and the @Remote qualified name.

Now the question is what would be the mappedName of a bean if i only use @Stateless ?

In glassfish, you can access such a bean simply using it's qualified name but what about weblogic ?

I deployed my bean in weblogic with just @Stateless and browsed the JNDI tree but all i can see is /StatelessSessionBeanStatelessSessionBean_jarTestBean_Home which cannot be casted in my @Remote TestBeanRemote.

Is it possible to lookup an ejb when not specifying any mappedName when using weblogic ?

Remark: i'm using glassfish 3.0.1, weblogic 11g (, JDK 1.6, eclipse
I agree. Here's the link:
subject: Weblogic default mappedName JNDI lookup
It's not a secret anymore!