• Post Reply Bookmark Topic Watch Topic
  • New Topic

Weblogic default mappedName JNDI lookup  RSS feed

Posts: 9
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!