James Webster wrote:
>
> Hello folks,
>
> Can I reasonably expect an EJB Handle to survive the following
> serialisation?
>
> 1. A servlet, which has a remote reference to a bean, gets the handle of
> the bean and writes it to the ServletOutputStream as part of HTML (say the
> value of a hidden form field <INPUT type="hidden" name="someField" value
> ="<handle here>">
> 2. The browser posts a form to another servlet.
> 3. The servlet takes the value of the 'someField' form field, deserialises
> it to an EJBHandle, and reinstates the remote reference?
>
> Can I expect this to work on ALL application servers?

I can vouch for other vendors, but I imagine this would work fine as
long as only one servlet at a time can be using the object reference.

> How big would a serialised handle be?

Serialization is not known for being concise. I imagine it would be several
hundred bytes. It would be ok for a hidden field but you wouldn't want to
embed it in URLs (avoid URL rewriting if you have lots of URLs to the second
servlet on the same page).

> Regards,
> James W.
>
> --------------------------------------------------------------------------
> Visit us at Cards Australia 2000 on Stand 31A.  Cards Australia will be
> held at the Melbourne Convention Centre from July 4-6 2000.
> --------------------------------------------------------------------------
> This e-mail is from Cards Etc Pty Ltd (ACN: 069 533 302). It may contain
> privileged and confidential information. It is intended for the named
> recipient(s) only. If you are not an intended recipient, please notify us
> immediately by reply e-mail or by phone on +61 2 9212 7773 & delete this
> e-mail from your system.
> --------------------------------------------------------------------------
>
> ===========================================================================
> 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".

--
________________________________________________________________________________

Evan Ireland              Sybase EAServer Engineering        [EMAIL PROTECTED]
                            Wellington, New Zealand               +64 4 934-5856

===========================================================================
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".

Reply via email to