For ShowPressBean, you need entries in your deployment descriptors to
PressBean like so:
ejb-jar.xml
<ejb-ref>
<ejb-ref-name>ejb/Press</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.ctp.corp.PressHome</home>
<remote>com.ctp.corp.Press</remote>
</ejb-ref>
jboss.xml
<ejb-ref>
<ejb-ref-name>ejb/Press</ejb-ref-name>
<jndi-name>Press</jndi-name>
</ejb-ref>
This is covered in the JBoss documentation. If this doesn't work, then post
the runtime log so we can see what errors you are getting.
----- Original Message -----
From: Jason Trust <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 8:05 PM
Subject: [JBoss-user] SessionBean or ConnectionCache Problems (not sure...)
> code from ShowPressBean.java
> -------------------------------------------------------
> java.lang.Object obj = ctx.lookup("java:comp/env/ejb/Press");
> PressHome pressHome = (PressHome)PortableRemoteObject.narrow(obj,
> PressHome.class);
>
>
> code from PressBean.java
> -------------------------------------------------------
> ds = (DataSource) ctx.lookup("java:comp/env/jdbc/ctpDataSource");
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user