>I want to know if I implement business delagate as POJO singleton, can
>u give me some advice on how to multi-thread this business delagate to
>various request ???
>and how about caching ?? How to cache the handler of a business service
??

I don't consider myself so expert on multithreading :-(
Pls other comments my 'suggestions' if they r wrong :-)

Your BD should simply hide the backend service that you are using
(either EJB or some other technologies)..so it should not modify any
variables or
Do some computation, since it's scope is just to hide what's behind it
In that case, you should not need to worry about MT... but if you are
Still not satisified, make sure that you don't have too many global
Variables (and that you don't modify them..like when u define variables
In Servlets, for example...)

For caching, again, you can cache the BD by writing a Struts PlugIn that
Initializes your BD and put your BD as ServletContext

Not sure about what you mean by saying ' to cache the handler of a
business
Service' .. 
If you have 1 to 1 mapping between bD and business service, you can
initialize it only once inside your BD

I can't say more coz I don't know how ur application is structured..

Regards
        marco
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to