Hi
I am trying to make the Monson Cabin-Travelagent example working but to no
avail
The Cabin bean works Ok (it populates the tables ) but the travelagent jar
does not recognize the
Cabin EJB.
There are two different jars (session +entity) and I want the
seesion to be able to see the entity from a different jar
I have tried (among countless variations)
====================== A ==================
:::::::::::::::::::::::::::::::::::::::::: ejb-jar.xml
<ejb-ref>
<ejb-ref-name>CabinHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.titan.cabin.CabinHome</home>
<remote>com.titan.cabin.Cabin</remote>
</ejb-ref>
::::::::::::::::::::::::::::::::::::::::: jboss.xml
<jboss>
<enterprise-beans>
<session>
<ejb-name>TravelAgentBeanName</ejb-name>
<ejb-ref>
<ejb-ref-name>CabinHome</ejb-ref-name>
<jndi-name>ejb/CabinHome </jndi-name>
</ejb-ref>
</session>
</enterprise-beans>
</jboss>
And in bean source Code
:::::::::::::::::::::::::::::::::::::::::
Object obj = jndiContext.lookup("ejb/CabinHome");
::::::::::::::::::::::::::::::::::::::::
Jboss says that ejb not bound ?
Note that I do NOT have a JBOSS.xml file for the entity bean - so the
default jndi ought to be
"ejb" (??)
====================== B ==================
then tried :
<jndi-name>java:comp/env/ejb/CabinHome </jndi-name>
then again msg like - java not bound or comp not bound ?
I don't know how to use the much-touted example
<jndi-name>t3://otherserver/application/beanB</jndi-name>:
because I dunno what application means ???
and what's "t3" ?
what's "otherserver" (BTW I'm using localhost)? localhost or localhost:1099
?
what's "application" ?
what's "BeanB" - the full path of the class or just its name ???
Can somebody please POST THREE EXACT WORKING SNIPPETS Of
(A) ejb-jar.xml
(B) jboss.xml
(C) invocation inside the code jndiContext.lookup("????????");
I have tried ALL the solutions in the archive and NONE work;
and plz don't send me to
http://www.jboss.org/documentation/HTML/ch06s05.html
cuz I have read it , followed it but still to no avail.
Many thanks in advance
Val N.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.255 / Virus Database: 128 - Release Date: 17/05/2001
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user