>>>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.
Just pass back the modified object in the return. It won't be the same object
(physical memory address,
it can't be if you are passing from one JVM to another).
>>>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??
Primitive variable types in java are passed by value. There are *no* pointers.
>>>plse this is very urgent.
It always is.
It seems to me these questions should be posted to another newsgroup, maybe
[EMAIL PROTECTED]
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".