Hi, all

I am just wondering if I can declare both "remote" and "local" reference in the 
"ejb-jar.xml", like this:

...

   
     <ejb-name>TravelAgentEJB</ejb-name>
     com.titan.travelagent.TravelAgentHomeRemote
     com.titan.travelagent.TravelAgentRemote
     <ejb-class>com.titan.travelagent.TravelAgentBean</ejb-class>
     <session-type>Stateless</session-type>
     <transaction-type>Container</transaction-type>

     <ejb-ref>
       <ejb-ref-name>ejb/CabinHomeRemote</ejb-ref-name>  
       <ejb-ref-type>Entity</ejb-ref-type>
       com.titan.cabin.CabinHomeRemote
       com.titan.cabin.CabinRemote
     </ejb-ref>

     <ejb-local-ref>
           <ejb-ref-name>ejb/CabinHomeLocal</ejb-ref-name>
           <ejb-ref-type>Entity</ejb-ref-type>
           <local-home>com.titan.cabin.CabinHomeLocal</local-home>
           com.titan.cabin.CabinLocal
           <!-- ejb-link is required by jboss for local-refs. -->
           <ejb-link>CabinEJB</ejb-link>
     </ejb-local-ref>

     <security-identity><use-caller-identity/></security-identity>

  
...

I tried this, but it looks not allowed. Or is there a right way to do this? 

You might see that I want the session bean can either reference a remote or 
local entity. Is this feasible?

Thanks in advance.

Chen

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to