3. Server-side component that encapsulates the
business logic of an application.
Simplify the development of large, distributed
applications.
Focusing on solving business problems.
Provide transactions and security
management.
Benefits: Scalability , data integrity and Client
variety.
EJB Container
7. Could have a timeout
Bean instance is destroyed.
EJB object is invalidated
Instances are identical.
Act as a webservice.
life Cycle Methods(@PostConstruct, @PreDestroy)
8.
9. Share state between all methods
Could have a timeout
Can be removed.
Bean instance is destroyed.
Can be passivated.
life Cycle Methods(@PostConstruct, @PreDestroy,
@PrePassivate,@ PostActivate )
10.
11. Shared between all clients.
Concurrent accessed.
Can depend on other singleton EJB.
Bean instance is destroyed.
Could have a timeout.
Having Concurrency Management.
life Cycle Methods(@Startup, @PostConstruct,
@PreDestroy)
12. Stateless Bean:
Other stateless bean, stateful bean, singleton,
all JSF managed bean, servlets.
Stateful Bean:
Other stateful bean, JSF session bean.
Singleton:
Stateless bean, stateful bean, other singleton,
all JSF managed bean, servlets.
29. 1. The client receives the message.
2. The client processes the message.
3. The message is acknowledged:
1. Automatic
2. Client
3. DUPS_OK_ACKNOWLEDGE
Un-Durable subscriptions
Durable subscriptions
◦ ensure that a pub/sub application receives all sent
messages
30. Consumer Type Acknowledgment
Type
Behavior
Synchronous Client Client acknowledges message
after processing is complete
Asynchronous Client Client acknowledges message
after processing is complete
Synchronous Auto Acknowledgment happens
immediately after receive call;
message cannot be redelivered if
any subsequent processing steps
fail
Asynchronous Auto Message is automatically
acknowledged when onMessage
method returns