Read the jboss.xml dtd which is available here:
http://www.jboss.org/documentation/jboss.dtd
A descriptor like this:
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>com.asset.SMTPAdapter</ejb-name>
<ejb-class>com.asset.SMTPAdapterBean</ejb-class>
<home>com.asset.SMTPAdapterHome</home>
<remote>com.asset.SMTPAdapter</remote>
<session-type>Stateless</session-type>
...
</session>
</enterprise-beans>
</ejb-jar>
requires this:
<jboss>
<enterprise-beans>
<session>
<ejb-name>com.asset.SMTPAdapter</ejb-name>
<jndi-name>com.asset.SMTPAdapterHome</jndi-name>
</session>
</enterprise-beans>
</jboss>
for a client to be able to do this:
Context ctx = new InitialContext();
SMTPAdapterHome home = (SMTPAdapterHome)ctx.lookup("com.asset.SMTPAdapterHome");
----- Original Message -----
From: "Manu Srivastava" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 9:36 PM
Subject: Re: [JBoss-user] Unable to resolve JNDI name
> Hi Danch,
>
> Thanks for the answer.
>
> Problem in copy and paste :-(
>
> <enterprise-beans> tag is there in the jBoss.xml but
> it still it does not get the correct JNDI name. It
> deploys correctly though.
>
> Any other clues??
>
> Thanks and regards
> Manu
>
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user