• Post Reply Bookmark Topic Watch Topic
  • New Topic

weblogic-ejb-jar problem

 
Chris Chua
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all i have a problem in referencing another Bean from a diff Bean using weblogic server. if one would use
Context con = new InitialContext(props);
Object obj = con.lookup("java:comp/env/jndi name of otherbean");
Homebean home = PRO.narrow()
to reference a bean so what should be included in the ejb-jar.xml file is it
<ejb-ref>
<ejb-ref-name>ejb/Mysame</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>Sam2oneHome</home>
<remote>Sam2one</remote>
<ejb-link>Sam2oneBean</ejb-link>
</ejb-ref>
then what should I put in the weblogic-ejb-jar.xml file to reference the other bean can somebody pls give me some sample.
Thanks
Chris
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, pls take a look at: http://www.javaranch.com/ubb/Forum40/HTML/000562.html
rgds.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!