• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Weblogic default mappedName JNDI lookup

 
Greenhorn
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
Hello,

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 (10.3.4.0), JDK 1.6, eclipse
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic