Hello all,

 I am trying to pass some information from my EJB to my Applet. I've been
using the instruction in
"How to use Applets to access EJBs in JBoss" in the JBoss documentation.

 I keep on getting this error
"javax.naming.NameNotFoundException: SpatialInfoSessionImpl not bound"

Here's the source code that is trying to access the EJB:
"
Properties jndiProps = new Properties() ;
jndiProps.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory" ) ;
 jndiProps.setProperty("java.naming.provider.url", myServer ) ;
 jndiProps.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces" ) ;
SpatialInfoSessionEJBHome home =
(SpatialInfoSessionEJBHome)PortableRemoteObject.narrow( new
InitialContext(jndiProps).lookup(
"SpatialInfoSessionImpl" ),SpatialInfoSessionEJBHome.class) ;
 SpatialInfoSessionEJB remote = home.create() ;
  myGeometry = remote.getGeom(tableName);
"

Can anyone suggest anything please ?

Thanks in advance,
Trish.



-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to