Thanks Ole and Michael, will return the object with all the data.
Ivan
----- Original Message -----
From: "Ole Husgaard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 3:27 AM
Subject: Re: [JBoss-user] pass by reference


> Hi,
>
> Ivan Novick wrote:
> > Can an object be passed by reference to an EJB, filled with data, and
than
> > have that data analyzed in the function that called the EJB?
> >
> > The problem is, I need to return multiple values from the function.
> >
> > So I setup an EJB method like such
> >
> > boolean GetUserData(String username, UserData ud)
> >
> > the UserData class implements Serializable.
> >
> > So far, it is not working because after the method call, a null pointer
> > exception is thrown when accessing the UserData object.
>
> RMI has nothing like the CORBA "inout" or "out"
> parameter attributes, so _only_ return values
> and exceptions are sent back to the client.
>
> Try:
> UserData getUserData(String username)
>
>
> Best Regards,
>
> Ole Husgaard.
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to