• Post Reply Bookmark Topic Watch Topic
  • New Topic

Initialize context with Local EJB

 
netanel weinberg
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I want to add Local Object and Local Home to my appplication.
How do I initialize context with Local home? I'm using Jboss 3.2.3 and EJB 2.0 .

Thank you,
Netanel W
netanelwe AT gmail.com
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you deploy the EJB the beans gets bound to the JNDI, you dont need to do anything.
 
netanel weinberg
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But where is the JNDI refer to EJB is defined?
Is it possible to use the both the remote and Local objects?
I'm tried defined a local-ref to the ejb in the jboss.xml file and in the web.xml file and it overide the access to the remote object...
Is there a link where it defined clearly?

Netanel
Netanelwe AT gmail.com
 
Frank Ertl
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Netanel,

the location of the JNDI-Name is vendor-specific. This means you put the classes (full qualified name) in your ejb-jar.xml and in the vendor-specific xml there's a place to put in the JNDI things. So you should look in the documentation for your appserver (JBoss). There's a whole lotta stuff on the web so just look at google or some place like that.

Frank
 
netanel weinberg
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone please post an example of the ejb-jar.xml and the jboss.xml file and etc.?

I'm getting lost on all not-understandable definitions of tags....

netanel

netanelwe AT gmail.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!