This week's book giveaway is in the Testing forum.
We're giving away four copies of Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples and have Jeremy Kubica on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Weblogic default mappedName JNDI lookup

Posts: 9
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Whatever you say buddy! And I believe this tiny ad too:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic