You are supposed to do a lookup on the remote interface. You will be
returned a reference to a home object, from which you can call the create()
method to get an object of the target class. So I think the failure you
indicate is appropriate.
In your jboss.xml, why are you using your home classname as your jndi name?
This is confusing, to say the least.
> jBoss.xml
> =========
> <jboss>
> <session>
> <ejb-name>com.asset.SMTPAdapter</ejb-name>
> <jndi-name>com.asset.SMTPAdapterHome</jndi-name>
> <configuration-name></configuration-name>
> </session>
> </enterprise-beans>
> </jboss>
>
>
> Code snippet in my jsp
> ==============
> Context ctx = getInitialContext();
> Object home =
> ctx.lookup("com.asset.SMTPAdapter");//WORKS!!!!!
> Object home =
> ctx.lookup("com.asset.SMTPAdapterHome");//DOES NOT
> WORK!!!
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user