Re: [JBoss-user] Problems in working with another EJB jar file

2001-06-10 Thread Tbone



Did you add the home and the remote interfaces in 
the other jar ?

  - Original Message - 
  From: 
  Optima 
  To: [EMAIL PROTECTED] 
  
  Sent: Sunday, June 10, 2001 8:38 AM
  Subject: [JBoss-user] Problems in working 
  with another EJB jar file
  
  Greetings all, 
  I tried to play with the 
  TravelAgent example in Monson-Haefel¡¦s EJB book on JBoss 2.2.1 and 
  Win2K.  It¡¦s a session bean 
  calling another entity bean named Cabin, but not in the same .jar 
  file.
  I read the JBoss doc 
  about this example by Sebastien Alborini, but got the error 
  about unable to get the home interface of Cabin.  I¡¦m sure that the Cabin is working 
  probably.
  
  Here is the ejb-ref section in ejb-jar.xml for 
  TravelAgent:
  
  
    ejb/CabinHome
    Entity
    com.titan.cabin.CabinHome
    com.titan.cabin.Cabin
  
  Here is the jboss.xml for 
  TravelAgent:
  
  
    
  
      
  
    
  TravelAgentBean
    
  
      
  ejb/CabinHome
      
  CabinBean
    
  
      
  
    
  
  
  Could anyone kindly advise 
  what¡¦s wrong OR post the working code/configuration?
  Thanks
   
  Best Regards,
  Zeon


RE: [JBoss-user] Problems in working with another EJB jar file

2001-06-10 Thread Allen Fogleson



Zeon
 
I assume you are 
not getting a naming exception here, so
 
Quite 
likely the home and remote class files are not available to your client (travel 
agent session bean). You will have to include those in your jar file for the 
session bean. You don't need the implementation classes.
 
Al

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  OptimaSent: Sunday, June 10, 2001 2:38 AMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] Problems in 
  working with another EJB jar file
  Greetings all, 
  I tried to play with 
  the TravelAgent example in Monson-Haefel¡¦s EJB book on JBoss 2.2.1 and 
  Win2K.  It¡¦s a session bean 
  calling another entity bean named Cabin, but not in the same .jar