O'Reilly logo

Getting Started with Oracle WebLogic Server 12c: Developer's Guide by William Markito Oliveira, Fabio Mazanatti Nunes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Singleton session beans

This new kind of bean helps developers create components that implement the pattern that gives its name—no need to declare class methods and attributes to create them anymore.

Its behavior is a crossover between stateless and stateful beans, as it holds its state between calls but isn't expected to keep the state consistent in case of a server shutdown. As just one instance of such a bean is available at any given time, the client state must not be kept by it for obvious reasons.

The application container guarantees that one bean instance is loaded per JVM. This means that each Managed Server—an instance of WebLogic Server—will load and keep only one instance of the class in memory. If your WebLogic domain has just one instance, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required