Hi,
 I have the following declaration in a ejb-jar.xml:
What exactly does this mean(the statements in bold)?

 <session >
  |          .....
  |          <ejb-name>MyTestManagerBean</ejb-name>
  | 
  |          <home>...</home>
  |          <remote>...</remote>
  |          <ejb-class>...</ejb-class>
  |          <session-type>Stateless</session-type>
  |          <transaction-type>Container</transaction-type>
  | 
  |          <ejb-local-ref >
  |             <ejb-ref-name>ejb/SequenceGenerator</ejb-ref-name>
  |             <ejb-ref-type>Session</ejb-ref-type>
  |             <local-home>...</local-home>
  |             <local>...</local>
  |             <ejb-link>SequenceGeneratorBean</ejb-link>
  |          </ejb-local-ref>
  | 
  |           <resource-ref >
  |             <res-ref-name>jdbc/myDS</res-ref-name>
  |             <res-type>javax.sql.DataSource</res-type>
  |             <res-auth>Container</res-auth>
  |             <res-sharing-scope>Shareable</res-sharing-scope>
  |          </resource-ref>
  |       </session>

As per my understanding, it creates a logical reference for a bean to be 
referred by some other bean. Is this right?

When is the logical name actually created during startup of server? i.e. When 
is the SequenceGeneratorBean bound to ejb/SequenceGenerator.
I am enquiring about this since, i have a startup class implemented using a 
mbean, which actually looks up a bean. The bean (say xyzBean) looks up the 
MyTestManagerBean. I get the following exception:

/ejb not bound

If i remove the ejb-local-ref from the ejb-jar, then everything works fine.

So how do i specify a dependency in my mbean for this local reference.

Any suggestions are appreciated.

Thank you






View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3889202#3889202

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3889202


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to