Hi;
I am told that I have to declare my SessionContext objects in my SessionBean as such.
private transient SessionContext ctx; and NOT public SessionContext ctx
If I don't do this, I get a Serialization exception during the passivation of my bean
via ejbPassivate().
The exception goes away if I change it to private transient, but the EJB
specification state diagram for SessionBeans going from an Active to Passive and then
back to Active state, is the calling of the ejbPassivate() and then ejbActivate()
methods and NO calls to setSessionContext() method.
With out this call to setSessionContext() or the ability to serialize SessionContext
object, how is the EnterpriseBean going to get a reference to a good SessionContext
object?
Help with this would greatly appreciated.
Thanks
Peter
Byte Code wrote:
> Or the Java Collections. They have a 1.1 version too. ( Same as the ones
> in
> JDK2 but work with 1.1 )
>
> -Sam
>
> Marc Tremblay wrote:
> >
> > Check out the ObjectSpace JGL library
> > (http://www.objectspace.com/products/jglOverview.htm), specifically the HashMap
> > collection as it allows both 1-to-1 and 1-to-many mappings and it works with
> > JDK 1.1.
> >
> > -- Marc
> >
> > At 03:27 PM 9/8/99 -0500, Jay Baker wrote:
> >
> > >
> > > OK gurus ;)
> > >
> > > We are in need of a class that acts like a bucket. That is, something like a
> > > hash table, but does NOT get overwritten if another object with the same key
> > > is added. The same key must allow multiple values.
> > >
> > > And here is the catch, it has to be 1.1 compatible. But don't worry about
> > > that too much. Can anybody help me out with a data structure like this?
> > >
> > > Thanks in advance.
> > >
> > > Jay Baker
> >
> > Marc Tremblay
> > Web Programer
> > EyeWire Inc.
> > http://www.eyewire.com/
> >
> > ===========================================================================
> > 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".
>
> --
> PS :
> My email address has changed to [EMAIL PROTECTED] because
> http://www.telebot.net is shutting down.
>
> ===========================================================================
> 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".
--
==============================================================
Peter M. Delaney Phone: (978)794-3366 ext. 341
Object Technologist Voice mail: (978)794-3366 ext. 341
Semaphore Fax: (978)794-3427
800 Turnpike St. Email: [EMAIL PROTECTED]
North Andover, MA 01845 Web Site: http://www.sema4usa.com
==============================================================
===========================================================================
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".