[JBoss-user] EJB Referencing problem

2001-07-01 Thread Devraj Mukherjee

Hello All,

I am having quite some trouble doing a lookup. I understand from the JBoss 
documentation that if the Beans are in the same JAR file, then they should 
refer to each other by java:comp/env/ejb/BeanName and if they are outside 
the package then I should declare a new jboss.xml file which defines the 
external names.

Now my problem uses an EntityBean, a Session Bean a JavaBean to support the 
JSP file and the two JSP files. I have refered to the entity beans from my 
sessions beans using the java:comp/env/ejb/BeanName way, but the JavaBean 
(which belongs to the same package as the Session Bean) seem to have 
problems locating the Session Bean with the java:comp/env/ejb/ name space 
and creating an object of it. Currently I don't have a jboss.xml file in 
the EJB package.

What do you think is the mistake I am making. Any Suggestions

App Server in user JBoss 2.2.2 - Tomcat 3.2

Thank you for your time.

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB Referencing problem

2001-07-01 Thread Vinay Menon

Have you set up a ejb ref in your ejb-jar xml file for the session bean you
are trying to refer to?

it should look like

  ejb-ref
   ejb-ref-nameejb/PieParamEB/ejb-ref-name
   ejb-ref-typeEntity/ejb-ref-type
   homeuk.co.isesolutions.biz.pieparam.entity.PieParamEntityHome/home

remoteuk.co.isesolutions.biz.pieparam.entity.PieParamEntityRemote/remote
   ejb-linkPieParamEntity/ejb-link
  /ejb-ref

  where ejb-ref-name is what you will be looking up in the java:comp/env
namspace. the ejb-ref-type is the type of the second bean you are trying to
look up, hom and remote are the second bean's home and remote class name.
ejb-link is the ejb-name of the second ejb.

Regards

Vinay
- Original Message -
From: Devraj Mukherjee [EMAIL PROTECTED]
To: JBoss List Serve [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 8:29 AM
Subject: [JBoss-user] EJB Referencing problem


 Hello All,

 I am having quite some trouble doing a lookup. I understand from the JBoss
 documentation that if the Beans are in the same JAR file, then they should
 refer to each other by java:comp/env/ejb/BeanName and if they are outside
 the package then I should declare a new jboss.xml file which defines the
 external names.

 Now my problem uses an EntityBean, a Session Bean a JavaBean to support
the
 JSP file and the two JSP files. I have refered to the entity beans from my
 sessions beans using the java:comp/env/ejb/BeanName way, but the JavaBean
 (which belongs to the same package as the Session Bean) seem to have
 problems locating the Session Bean with the java:comp/env/ejb/ name space
 and creating an object of it. Currently I don't have a jboss.xml file in
 the EJB package.

 What do you think is the mistake I am making. Any Suggestions

 App Server in user JBoss 2.2.2 - Tomcat 3.2

 Thank you for your time.

 Devraj


 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB Referencing problem

2001-07-01 Thread Devraj Mukherjee

Hi Vijay,

Is there any documentation available online that you know of which I read. 
I think I have messed up my JNDI concepts. I will check what you have 
suggested and send an email if I am still stuck.

Thank you for your help.

Devraj

At 11:50 1/07/01 +0100, you wrote:
Have you set up a ejb ref in your ejb-jar xml file for the session bean you
are trying to refer to?

it should look like

   ejb-ref
ejb-ref-nameejb/PieParamEB/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homeuk.co.isesolutions.biz.pieparam.entity.PieParamEntityHome/home

remoteuk.co.isesolutions.biz.pieparam.entity.PieParamEntityRemote/remote
ejb-linkPieParamEntity/ejb-link
   /ejb-ref

   where ejb-ref-name is what you will be looking up in the java:comp/env
namspace. the ejb-ref-type is the type of the second bean you are trying to
look up, hom and remote are the second bean's home and remote class name.
ejb-link is the ejb-name of the second ejb.

Regards

Vinay
- Original Message -
From: Devraj Mukherjee [EMAIL PROTECTED]
To: JBoss List Serve [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 8:29 AM
Subject: [JBoss-user] EJB Referencing problem


  Hello All,
 
  I am having quite some trouble doing a lookup. I understand from the JBoss
  documentation that if the Beans are in the same JAR file, then they should
  refer to each other by java:comp/env/ejb/BeanName and if they are outside
  the package then I should declare a new jboss.xml file which defines the
  external names.
 
  Now my problem uses an EntityBean, a Session Bean a JavaBean to support
the
  JSP file and the two JSP files. I have refered to the entity beans from my
  sessions beans using the java:comp/env/ejb/BeanName way, but the JavaBean
  (which belongs to the same package as the Session Bean) seem to have
  problems locating the Session Bean with the java:comp/env/ejb/ name space
  and creating an object of it. Currently I don't have a jboss.xml file in
  the EJB package.
 
  What do you think is the mistake I am making. Any Suggestions
 
  App Server in user JBoss 2.2.2 - Tomcat 3.2
 
  Thank you for your time.
 
  Devraj
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user