I understood. Thanks for all.

I will change my method signature to public TarHeader
createTar (parameters).

Tks.


--- David Blevins <[EMAIL PROTECTED]> escreveu:

> Exactly right.  Put another way:
> 
>     When you make a call on a remote interface, a
> copy of the
>     object is given to the bean.  Doesn't matter if
> that bean
>     is on the same server as the caller, as when one
> ejb calls
>     another ejb using it's remote interface.
> 
> You can either make TarHeader as Stateful
> SessionBean, or you
> can just send back the modified TarHeader object.
> 
> -David
> 
> On Aug 18, 2005, at 3:32 PM, kapi59ttp wrote:
> 
> > Hi Felipe!!!
> > Wouldnt it be better if your method returns the
> header???
> > I mean...
> > public TarHeader createTar (parameters)...
> > I can remenber that Java doesnt change parameters,
> and that all  
> > parameters
> > are value type, instead of reference or direction
> type (i hope u can
> > understand
> > this horrible explanation but my english is quite
> limited :D)
> >
> > Good luck :D
> >
> > Felipe Palma Dias wrote:
> >
> >
> >> I have a remote method receiving a bean as a
> >> parameter:
> >>
> >> public void createTar(TarHeader header)
> >> throws RemoteException;
> >>
> >> The bean "header" is changed in the server, but
> in the
> >> client, after call the remote method, I do not
> see
> >> this changes in the bean.
> >>
> >> Tks.
> >>
> >>
> >> Felipe F. Palma Dias - São Paulo/SP
> >> http://www.palmadias.com.br
> >> MSN: [EMAIL PROTECTED]
> >> Yahoo: palmadias
> >> Mobile: +55 11 99157578
> >>
> >>
> __________________________________________________
> >> Converse com seus amigos em tempo real com o
> Yahoo! Messenger
> >> http://br.download.yahoo.com/messenger/
> >>
> >>
> >>
> >>
> >
> >
> > -- 
> > - If there's no penguin...there's no fun!!! -
> > meet us @ http://www.insabern.tk
> > personal web page: http://kapi59ttp.e-ghost.net
> > Key FingerPrint = BF9C E427 4955 61CA 1909  DCD4
> 9680 0C83 961B 7437
> > For my public key
> http://kapi59ttp.e-ghost.net/kapi59ttp.gpg
> > always running under GNU/Linux
> > www.debian.org
> >
> >
> 
> 


Felipe F. Palma Dias - São Paulo/SP
http://www.palmadias.com.br
MSN: [EMAIL PROTECTED]
Yahoo: palmadias
Mobile: +55 11 99157578


        
        
                
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/

Reply via email to