From the client’s perspective, a Singleton bean always supports concurrent access. In general, a Singleton client does not have to concern itself with whether other clients might be accessing the Singleton at the same time.
From the bean developer’s perspective, Read more...
Create the bean interface and mark it either as @Remote, @Local or @WebService.
Create a class which implements the business interface. Mark this class as singleton session bean Read more...
The @Singletion annotation is used to mark the class as Singleton Session Bean. This annotation’s specification is as follows.
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Singleton { String description() default “”; String name() default “”; String mappedName() default “”; }
where, Read more...
The lifecycle callbacks are methods defined in the bean class but not in business interface which the container calls when specific lifecycle event or transition occurs. The following two annotations are used to define lifecycle callbacks on stateless session beans. Read more...
Create the bean interface and mark it either as @Remote, @Local or @WebService.
Create a class which implements the business interface. Mark this class as stateless session bean Read more...