I have trouble in calling EJB from another EJB.I develop them using JBuilder4 and IAS4.1.
Please give explicit instruction to help me to fix that problems.
thx
-
How to call EJB from another EJB which is in another JAR file (15 messages)
- Posted by: peepeng Yuan
- Posted on: May 29 2001 04:27 EDT
Threaded Messages (15)
- How to call EJB from another EJB which is in another JAR file by manoj sharma on May 29 2001 04:34 EDT
- How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 29 2001 05:00 EDT
-
How to call EJB from another EJB which is in another JAR file by Alex Pisarev on May 29 2001 05:10 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 29 2001 08:18 EDT
-
How to call EJB from another EJB which is in another JAR file by Alex Pisarev on May 29 2001 09:40 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 29 2001 09:46 EDT
-
How to call EJB from another EJB which is in another JAR file by Alex Pisarev on May 29 2001 01:26 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 29 2001 09:43 EDT
-
How to call EJB from another EJB which is in another JAR file by manoj sharma on May 30 2001 12:55 EDT
- How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 30 2001 01:42 EDT
-
How to call EJB from another EJB which is in another JAR file by Alex Pisarev on May 30 2001 01:29 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 30 2001 01:50 EDT
-
How to call EJB from another EJB which is in another JAR file by manoj sharma on May 31 2001 02:53 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 31 2001 09:13 EDT
- How to call EJB from another EJB which is in another JAR file by Deepak Singh on June 01 2001 12:35 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 31 2001 09:13 EDT
-
How to call EJB from another EJB which is in another JAR file by manoj sharma on May 31 2001 02:53 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 30 2001 01:50 EDT
-
How to call EJB from another EJB which is in another JAR file by manoj sharma on May 30 2001 12:55 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 29 2001 09:43 EDT
-
How to call EJB from another EJB which is in another JAR file by Alex Pisarev on May 29 2001 01:26 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 29 2001 09:46 EDT
-
How to call EJB from another EJB which is in another JAR file by Alex Pisarev on May 29 2001 09:40 EDT
-
How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 29 2001 08:18 EDT
-
How to call EJB from another EJB which is in another JAR file by Alex Pisarev on May 29 2001 05:10 EDT
- How to call EJB from another EJB which is in another JAR file by peepeng Yuan on May 29 2001 05:00 EDT
-
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: manoj sharma
- Posted on: May 29 2001 04:34 EDT
- in response to peepeng Yuan
use ejb reference link u can call another bean.
either u specify in u r Xml discriptor or if u r with weblogic server ther is option in deployer tool for the same.
Manoj
-
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: peepeng Yuan
- Posted on: May 29 2001 05:00 EDT
- in response to manoj sharma
I want to call a EJB in a servlet or JSP or another EJB, but if I don't bind these file(EJB,Session Bean,servlet) into a jar ,I can't lookup the EJB's JNDI name in servlet or JSP . The 'ejb reference link' you meaning is the EJB References defining in JBuilder 4 ,EJB DD Editor ->EJB References ? And I call the EJB by look up the homeName:"java:comp/env/ejb/your_ejb_refrence_name",right?
thanks -
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: Alex Pisarev
- Posted on: May 29 2001 05:10 EDT
- in response to peepeng Yuan
JNDI is a keyword here. You must have JARs deployed and keep JNDI alive on your container (or containers).
Greetings, Alex. -
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: peepeng Yuan
- Posted on: May 29 2001 08:18 EDT
- in response to Alex Pisarev
I try to use ejb reference like Manoj said.However,do I need import the JAR files to my project?
If I donot import the JAR files in my EJB file,
when I compile the project, I will get many compiling errors.
Could you show me some example codes.
thx -
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: Alex Pisarev
- Posted on: May 29 2001 09:40 EDT
- in response to peepeng Yuan
You must DEPLOY it! Not import or export. Just deploy. Run deploy tool of your appserver.
Alex. -
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: peepeng Yuan
- Posted on: May 29 2001 09:46 EDT
- in response to Alex Pisarev
If I donot import another EJB,I can not compile the project,then how can I call the EJB's methods from another EJBs.
thanks -
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: Alex Pisarev
- Posted on: May 29 2001 13:26 EDT
- in response to peepeng Yuan
Ah, got your problem!
You need to have stubs and home and remote interface classes for EJBs you call in your original JARs. -
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: peepeng Yuan
- Posted on: May 29 2001 21:43 EDT
- in response to Alex Pisarev
How can I get stub jar files in JBuilder4?
JBuilder4 produces not stub jar files,but class files.
Could you give me some instruction?
thx
-
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: manoj sharma
- Posted on: May 30 2001 00:55 EDT
- in response to peepeng Yuan
HI there
first thing there are lot of confusion is going
i wanted to know some very minute answers from you
1)wether IAS 4.1 server gerates the xml discriptor for u ?
2)what kind of JNDI server is avilebale with IAS4.1
if possibel send me a code or free feel to contact me
on
s dot manoj at zensar dot com
Thanx
Manoj -
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: peepeng Yuan
- Posted on: May 30 2001 01:42 EDT
- in response to manoj sharma
Ok, the fact is given below.
1>The xml descriptor files are generated in JBuilder4 when
we write EJBs.
2>IAS4.1 uses visinaming as service of JNDI.
The EJBs are packaged in different JAR files, per EJB in one JAR file. I must call EJBs' methods from other EJBs.
I try to solve the problem according several persons' advice. But they seem to not work.
I will mail my code to you.
thanks.
-
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: Alex Pisarev
- Posted on: May 30 2001 01:29 EDT
- in response to peepeng Yuan
When you start Deployment wizard for a JAR - it automatically generates stubs. The stubs ARE class files that have such keywords in their names as "Stub", "POA", "Helper", "Operations", "Holder", "InvokeHandler", "POATie"...
They are provide IIOP-RMI compliance. -
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: peepeng Yuan
- Posted on: May 30 2001 01:50 EDT
- in response to Alex Pisarev
I find these class files,such as _Acl_Stub.class and _AclHome_Stub.class and so on, then I add these files into JAR,however,when we deploy it,IAS4.1 says NoClassfoundException which mean the EJB home cannot found.
After receiving the Exception mentioned above, I add these class files to my project. This time, JBuilder4 says NoClassFoundException.
What can I do?
Thanks -
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: manoj sharma
- Posted on: May 31 2001 02:53 EDT
- in response to peepeng Yuan
Hi there
its a commom problem of class path check the classpath.
Manoj
-
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: peepeng Yuan
- Posted on: May 31 2001 09:13 EDT
- in response to manoj sharma
Hi,Manoj:thx
But when I compile the project, there are no errors arising,
But when I deploy it, deploy tool says ClassNotFoundException. When I debug the project in JBuilder4, the program throws a javax.naming.NameNotFoundException: Missing node. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
just at ctx.Lookup("name").
so I think it maybe not due to CLASSPATH.
-
How to call EJB from another EJB which is in another JAR file[ Go to top ]
- Posted by: Deepak Singh
- Posted on: June 01 2001 12:35 EDT
- in response to peepeng Yuan
I think your JNDI name doesnot match the name in the DD.
There can be a problem with the "Name of the Bean used" to bind with the Bean.