Hi Ben,
when i try it with JBoss 4.0.2 i get a ClassCastException while cast the result
of lookup to any of my home-interface-classes.
| private lookup(String name) {
| EJBHome home = null;
| Object ref = context.lookup(name);
| EJBMetaData meta = ((EJBHome) ref).getEJBMetaData();
|
| return (EJBHome) PortableRemoteObject.narrow(ref, meta
| .getHomeInterfaceClass());
| }
|
The context was created like this:
| static {
| ctxInit = new Properties();
| ctxInit.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
| ctxInit.put(Context.URL_PKG_PREFIXES,
"jboss.naming:org.jnp.interfaces");
| //ctxInit.put(Context.PROVIDER_URL, "localhost:1099"); //JNDI
| ctxInit.put(Context.PROVIDER_URL, "localhost:1100"); //HA-JNDI
| }
|
| ....
|
| context = new InitialContext(ctxInit);
|
While using the version 4.0.1 it doesn't occurs any exception while lookup!
I'M NOT AMUSED!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3892059#3892059
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3892059
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user