I have tried that and I now have a client connecting to the Session Bean and
calling the method which calls the other bean...ie
Client gets a reference to Clerk and calls the method in Clerk which tries
to connect to SecurityManagerEJB.
However, I'm now getting the following exception on the server:
TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
<<no stack trace available>>
This occurs when it attempts to execute the following statement:
Object ref = jndiContext.lookup("java:comp/env/SecurityManagerEJB");
I meant to mention in my earlier queries, I am using JBoss2.0 FINAL, and JDK1.3.
Thanks,
Michael
At 02:36 PM 5/8/01 +0200, you wrote:
>Leave everything as it is but try a lookup like this:
>
>Object ref = jndiContext.lookup("java:comp/env/SecurityManagerEJB");
>
>And if it won't work carefully read this link:
>http://www.jboss.org/documentation/HTML/ch06s05.html
>
>> try{
>> Object ref = jndiContext.lookup("SecurityManagerEJB");
>> }catch(Exception e){
>> e.printStackTrace();
>> }
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
><HTML>
><HEAD>
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
><META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
><TITLE>RE: [JBoss-user] Beans calling beans</TITLE>
></HEAD>
><BODY>
>
><P><FONT SIZE=2>Leave everything as it is but try a lookup like this:</FONT>
></P>
>
><P><FONT SIZE=2>Object ref =
jndiContext.lookup("java:comp/env/SecurityManagerEJB");</FONT>
></P>
>
><P><FONT SIZE=2>And if it won't work carefully read this link:</FONT>
><BR><FONT SIZE=2><A
HREF="http://www.jboss.org/documentation/HTML/ch06s05.html"
TARGET="_blank">http://www.jboss.org/documentation/HTML/ch06s05.html</A></FONT>
></P>
>
><P><FONT SIZE=2>>
try{</FONT>
><BR><FONT
SIZE=2>>  
; Object ref = jndiContext.lookup("SecurityManagerEJB");</FONT>
><BR><FONT SIZE=2>>
}catch(Exception e){</FONT>
><BR><FONT
SIZE=2>>  
; e.printStackTrace();</FONT>
><BR><FONT SIZE=2>> }</FONT>
></P>
>
></BODY>
></HTML>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user