On Sun, Jul 04, 2004 at 10:19:06AM +0200, [EMAIL PROTECTED] wrote:
> Hi to everybody, I'm Roberto from Spain

Que tal chavalo :)

> 
> I'm able to access to Oracle10g Database from a CMP without problems,
> but now,
> I'm trying to access from a session bean

[snip]

> but I have found the next Exception:
> __________________________________________________________________________
> Object:
>     [EMAIL PROTECTED] [change]
> 
> Method:
>     ResultSet  selectRefPeticionesArticulos() throws RemoteException,
> SQLException, Exception [change]
> 
> Arguments:
>     none
> 
> Exception:
> 
> Received a java.io.NotSerializableException
> 
> java.io.NotSerializableException: oracle.jdbc.driver.OracleResultSetImpl

Wow, thanks a million for the text from the OpenEJB-Tomcat integration
webapp--extremely useful!  I never thought of using it that way.

I know exactly what is happening; you are returning Oracle's result
set from the session bean's remote selectRefPeticionesArticulos
method.  As per remote method semantics, the return value is being
passed by value (i.e. copied via a quick serialize/deserialize).

If you add an init-param with the name "openejb.localcopy" and the
value "false" to the web.xml of the openejb-loader-0.9.2 webapp, then
the problem will go away.  All remote interfaces will be treated like
EJB 2.0 local intefaces.

-David

Reply via email to