Hi Peter,

thanks for replying anyway ...

Yes I am using EJB3.0.

The EJB I am trying to lookup is registered in JNDI as:

  +- SDOCIBusinessApp (class: org.jnp.interfaces.NamingContext)
  |   +- ExcelConverterImpl (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy94 implements No ClassLoaders found for: 
ch.skyguide.aim.interfaces.businesslogic.converter.ExcelConverter (no security 
manager: RMI class loader disabled))
  |   +- IBriefingExportInvokerImpl (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy97 implements No ClassLoaders found for: 
ch.skyguide.aim.interfaces.businesslogic.exportinvoker.IBriefingExportInvoker 
(no security manager: RMI class loader disabled))
  +- SDOCI (class: org.jnp.interfaces.NamingContext)
  |   +- remote (class: org.jnp.interfaces.NamingContext)
  |   |   +- SDOCIBusinessService (class: java.lang.Object)
  |   |   +- SDOCIBusinessServiceStatefulProxyFactory (proxy: $Proxy87 
implements interface org.jboss.ejb3.ProxyFactory)

I have used a RemoteBinding annotation to set the JNDIO name.

The head of my EJB class look like this:

@Stateful
@RemoteBinding(jndiBinding = "SDOCI/remote/SDOCIBusinessService")
public class SDOCIBusinessServiceImpl implements SDOCIBusinessService {

The head of the interface looks like this:


@Remote
public interface SDOCIBusinessService {

The lookup call actually works fine:

            Object ref = ic.lookup("SDOCI/remote/SDOCIBusinessService");

Its the narrow call where I get the ClassCastException:

            SDOCIBusinessService narrowed = 
(SDOCIBusinessService)PortableRemoteObject.narrow(ref, 
SDOCIBusinessService.class);

Thanks for helping.



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

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

Reply via email to