Hi,
Is there any information, about how can I call a SLSB(State less session bean) which is deployed on Jboss-3.2.0 from SAP-Webdynpro-Application
I Catch the CalssCastException
Here is my code.
SecurityAssociation.setPrincipal(new SimplePrincipal("demo"));
SecurityAssociation.setCredential("demo".toCharArray());
Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "jboss_machine:1099");
Context ctx = new InitialContext(env);
Object objRef = ctx.lookup("test/MySimpleSLSB");
MySimpleSLSBHome home = (MySimpleSLSBHome)PortableRemoteObject.narrow(objRef, MySimpleSLSBHome.class);
at this line I catch an Exception *****