aspose file tools
The moose likes JBoss and the fly likes jndi - confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "jndi - confusion" Watch "jndi - confusion" New topic
Author

jndi - confusion

satish bodas
Ranch Hand

Joined: Jun 19, 2008
Posts: 116
Hello ,
Am trying to deploy a stateless sesison bean ( ejb 3.0 ) in Jboss

I am able to deploy the bean

Now to access it using a client - I will need to lookup the bean using JNDI

How do I go about it ?

what should be the string name that I pass as a parameter to the "lookup" method ?

also is there any way in the jmx console that can help me in understanding these details ?

Thanks ,
~satish
[ July 29, 2008: Message edited by: satish bodas ]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8143
    
  52

The JNDIView MBean can be accessed from the jmx-console to list the JNDI tree objects. See this for details.

Am trying to deploy a stateless sesison bean ( ejb 3.0 ) in Jboss

I am able to deploy the bean

Now to access it using a client - I will need to lookup the bean using JNDI

How do I go about it ?

what should be the string name that I pass as a parameter to the "lookup" method ?


If you have deployed the EJB in an EAR, then the jndi-name for the EJB by default will be EARNAME/BeanName/local or EARNAME/BeanName/remote. For example: MyApp/MyBean/remote


[My Blog] [JavaRanch Journal]
satish bodas
Ranch Hand

Joined: Jun 19, 2008
Posts: 116
Thanks Jai for the answer .
I am able to access the Stateless bean and it works

I know this is a silly question - but there is one more point I dont understand .

I know there can be a remote or a local interface for a bean

However I havent specified it anywhere at all ?
so is it taken by default as Local ?
also where is this to be specified ( via annotation ? )

Thanks ,
~satish
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jndi - confusion
 
Similar Threads
JNDI Name Not Found Found Exception
JNDI problem
EJB 3.0 lookup problem in JBOSS
RMI Naming vs. JNDI
Is there any way to not load balance EJB call in WAS cluster?