This is the one peeve I have, and maybe I'm way off, but j2ee has a gaping
hole here without having a safe singleton like mechanism that's container
neutral.

The assumption seems to be that things like this are services, and services
are container specific, like the various jdbc drivers etc..

Mbeans are fine, but are jboss right now although I think they will be (are)
in the next spec.

But why? I sure wish the spec just gave us a new bean type called service
that would stick around like a shared stateful session bean. We would then
have a facility for caching, pooling, singleton use etc that would cleanly
deploy in the application scope.

rick


----- Original Message ----- 
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 12, 2003 6:30 PM
Subject: Re: [JBoss-user] [EJB] holding data for StatelessBean


> An mbean that bound a map into JNDI would be one way.
>
> -- 
> xxxxxxxxxxxxxxxxxxxxxxxx
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> xxxxxxxxxxxxxxxxxxxxxxxx
> Michał Drozd wrote:
>
> > Hi,
> >
> > I wonder what is the best practise to hold application-wide data for one
> > SessionBean (stateless).
> >
> > Here is the situation:
> > I have small amount of data which is used by one stateless session bean.
> > Updates of data occurs with very low frequency.
> > these data i would keep in memory (one HashMap will be enought) and load
> > at deploy time (and sometime updates from my session bean).
> >
> > [ sorry if this description isn't as clear as it would be ;-) ]
> >
> > I see at least three solutions, but no one is satisfacting myself ...
> >
> > What is the best practice for this situation ?
> >
> > Thanks in advance,
> > Best regards,
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps1
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>




-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to