I found another exciting thing.

I created 3 different calculator beans

- LocalStatelessCalculator
 -> implements only the local interface Calculator
- RemoteStatelessCalculator
 -> implements only the remote interface RemoteCalculator
- StatelessCalculator
 -> implements both interfaces

the JNDIView shows the follwing:


  | +- ejb3trail (class: org.jnp.interfaces.NamingContext)
  |   |   +- RemoteStatelessCalculator (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy64 implements No ClassLoaders found for: 
ejb3trail.ejb.RemoteCalculator (no security manager: RMI class loader disabled))
  |   |   +- LocalStatelessCalculator (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy62 implements No ClassLoaders found for: 
ejb3trail.ejb.Calculator (no security manager: RMI class loader disabled))
  | 

The StatelessCalculator Bean which implements both interfaces is not listend in 
the JNDIView.

The LocalStatelessCalculator is listed correct.

The RemoteStatelessCalculator is listed erroneous as local.

Maybe this is the reason, why i didn't see any JNDIView entries if my Bean 
implements both interfaces. Probably it causes a conflict because 2 interfaces 
shall bound as local.

If i deploy the single ejb.jar containing the same beans, everything is fine:


  |   +- LocalStatelessCalculator (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy62 implements interface 
ejb3trail.ejb.Calculator,interface org.jboss.ejb3.JBossProxy,interface 
javax.ejb.EJBLocalObject)
  |   +- RemoteStatelessCalculator (class: org.jnp.interfaces.NamingContext)
  |   |   +- remote (proxy: $Proxy64 implements interface 
ejb3trail.ejb.RemoteCalculator,interface org.jboss.ejb3.JBossProxy,interface 
javax.ejb.EJBObject)
  |   +- StatelessCalculator (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy62 implements interface 
ejb3trail.ejb.Calculator,interface org.jboss.ejb3.JBossProxy,interface 
javax.ejb.EJBLocalObject)
  |   |   +- remote (proxy: $Proxy64 implements interface 
ejb3trail.ejb.RemoteCalculator,interface org.jboss.ejb3.JBossProxy,interface 
javax.ejb.EJBObject)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965126#3965126

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965126
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to