websphere - How to implement singleton for use in application servers, singleton OK? -


i have code gets run lot (for every webservice request).

the code called within web service hosted application server (websphere 7).

i noticed websphere uses lot of classes presumably singleton objects (such boxmlserializer (for de/serializing business objects) or bofactory.

i want save on cost of creating new object every web service request example.

is creating singleton lives duration of uptime of app server best way of dealing this?

does websphere provides these sorts of things?

erloewe correct, ordinary singleton work. regarding singleton session bean though -- it's part of j2ee6 spec , not available in was7 (since j2ee5). part of was8 though.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -