Mark
RMI specified that primitives such as boolean, double, int etc can be
returned. We had to fix our code generator to support this.
Tony
----
Mark Mendel wrote:
>
> In the EJB spec, it says that the bean's remote & home interfaces must have
> valid return and parameter types for RMI remote interfaces.
>
> That is basically serializable objects or remote objects.
>
> But can a bean method really return anything implementing java.rmi.Remote
> [i.e., any remote object]? Or does it really have to be an object that
> implements EJBObject [i.e, an Ebean]?
>
> I tried it out with WebLogic and got the following exception shown below on
> the client. Note the line marked with "***"; the error message is a bit
> confused, but seems to not like marshalling an object that implements [an
> interface that extends] Remote.
>
> It seems to me that you should only be able to return EBeans or serializable
> objects. Ifthat's the case, the spec. really should say so.
>
> :::::::::::::: Unexpected Error :::::::::::::::::
> java.rmi.ServerException: Weblogic
> RemoteException(weblogic.rmi.ServerException) remapped
> from:weblogic.rmi.ServerException: Server RemoteException
> - with nested exception:
> [weblogic.rmi.MarshalException: error marshalling return
> - with nested exception:
> ***[weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
> net. tms.ejbproto.HelloImpl] implements at least one interface [interface
> net.tms.ejbproto.Hello] which extends Remote.]]; nested exception is:
> weblogic.rmi.ServerException: Server RemoteException
> - with nested exception:
> [weblogic.rmi.MarshalException: error marshalling return
> - with nested exception:
> [weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
> net.tms.ejbproto.HelloImpl] implements at least one interface [interface
> net.tms.ejbproto.Hello] which extends Remote.]]
> at
> weblogic.rmi.internal.RemoteReference.theOtherException(RemoteReference.java
> :817)
> at
> net.tms.ejbproto.WLStub2h51p1z256ii632m663z1957a6d5w.getHello(WLStub2h51p1z2
> 56ii632m663z1957a6d5w.java:471)
> at net.tms.ejbproto.Test1.runTest1(Test1.java:68)
> at net.tms.ejbproto.Test1.main(Test1.java:27)
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
Tony Holderith | Interactive Business Solutions
[EMAIL PROTECTED] | NetCentric Solutions
http://www.interactivebusiness.com | Business Objects
Phone: 310.414.6760, 805.893.4503 | FAX: 310.414.6759
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".