Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InitialContext

 
Prateek Jauhari
Greenhorn
Posts: 26
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic