Georg,

The basic approach of making RMI / EJB calls works fine from within a Mailet to remote 
server objects.  Double check the classpath and the types you are narrowing from and 
to.

It may be useful to add some debug statements to your code along the lines of:

            // Get a reference to the remote Bean
            Object ref  = jndiContext.lookup(serviceName);

                log ("Got reference to service \"" + serviceName + "\", type = " + 
ref.getClass().getName());

                etc...
                etc...

            // Get a reference from this to the Bean's Home interface
            EJBHome service = (EJBHome)PortableRemoteObject.narrow(ref, clazz);

Steve

> -----Original Message-----
> From: Georg �ttl [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 30, 2003 3:18 AM
> To: [EMAIL PROTECTED]
> Subject: (Un) Marshalling Problems
> 
> 
> Hi
> 
> For quite a long time I tried to make a RMI call out of an mailet. In 
> detail I tried to get an Enterprise JavaBean PortableObject from the 
> Jboss Appserver running in a 1.4.2 VM(Sun).
> 
> The Problem is that every time I narrow a PortableRemote 
> Object I get a 
> Marshalling Exception.
> 
> I supposed that this had something to do with the xml apis 
> and the 1.4.2 
>   VM and so I removed xercesImpl.jar from the phoenix classpath. 
> Unfortunately this didn't help very much. The failure still 
> remains the 
> same.
> 
> Anybody an idea what to do?
> 
> Thanks for any advice
> Georg
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to