Shelly Aggrawal wrote:
>
> Hi All,
>
> I have a very peculiar problem pertaining to argument passing in EJBs.
>
> The problem is :
> The client to the bean needs to pass objects to the bean. The bean is
> supposed to fill up / change value of these arguments. After the remote
> method call the client should be able to get the values from the passed
> argument. How can this be achieved? In short I want to achieve something
> similar to 'pass by reference' of C++
>
<bean>
public MyObject myBusinessMethod(MyObject o){
doStuffWith(o);
return o;
}
</bean>
<client>
MyObject o = new MyObjact();
o.setFoo("bar");
o.setBar("foo");
<clip>
o = home.myBusinessMethod(o);
</client>
class MyObject implements java.io.Serializable{
private String foo;
private String bar.
}
sven
--
======================================================================================
Sven van 't Veer http://www.cachoeiro.net
Java Developer [EMAIL PROTECTED]
======================================================================================
===========================================================================
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".