File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Weblogic default mappedName JNDI lookup

Eric Cornely
Greenhorn

Joined: Aug 03, 2011
Posts: 5

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Weblogic default mappedName JNDI lookup
 
Similar Threads
How to specify a simple JNDI name for my EJB in WebLogic 10 (with annotations)?
Calling EJB3.0 from another EJB3.0
Why use beanName() OR mappedName() ?
XPost: How to specify a simple JNDI name for my EJB in WebLogic 10 (with annotations)?
Accessing EJB s remote interface through seperate web application