wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes InitialContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "InitialContext" Watch "InitialContext" New topic
Author

InitialContext

Prateek Jauhari
Greenhorn

Joined: Mar 07, 2011
Posts: 26

Hi...
I am trying to create a statefull session bean. Now I am confused how to define initial context property for the bean... as i am using InitialContext. I am using JBoss and EJB3.0.
And also I am confused whether ho i can use this session bean in different classes in a project...

Thanks In Advance...!!!


amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 511
Hi,
You must be using InitialContext to lookup for an existing object that is bound in JNDI tree.
If your JNDI lookup is going to be on the same server where you have deployed your Stateful bean then you just need to create an object of InitialContext.



Regards,
Amit
Prateek Jauhari
Greenhorn

Joined: Mar 07, 2011
Posts: 26

Can anyone send me a link or a proper tutorial
how to get started with EJB3.0
which define to how to create xml and jndi.properties files

I am completely new to this thing........

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: InitialContext
 
Similar Threads
Weblogic & CLOB
jndi settings for statefull session bean
invoking ejb from jsp in websphere
Back to front Entity bean generation in WebSphere 5.1
Accessin a stateless session bean from a java client using WSAD