EJB does not support pass by reference except for home and remote
interfeaces. All parameters are passed by copy. The only workaround is to
store the variable as instance specific data for a statefule bean and pass
the beans remote interface by reference. A terribly expensive solution.
Dave Wolf
Internet Applications Division
Sybase
----- Original Message -----
From: "JCISRP(Chennai)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 01, 2000 3:27 AM
Subject: Pass by reference
> hai,
> 1)How to pass an object "by reference" in java.I have to pass the object
> from a client application to a session bean(EJB)method.The session bean
will
> modify the object.Can i get the modified object back in the client??If not
> how to get the modified object.
>
> 2)How to pass a variable of primitive datatype like int,float to a method
> "by reference" and get back the modified variable value in the calling
> point??
>
> plse this is very urgent.
>
> thanks in advance.
>
>
===========================================================================
> 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".
>
>
===========================================================================
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".