Ejb3 import the Sequence File (2)

Source: Internet
Author: User
Tags call back
Understand basic
Session Bean and message-driven bean are written in the compile mode. Next, we will look at some services such as the lifecycle, intercept, and timer.

  • Lifecycle
Let's take a look.
The lifecycle and call-back methods of the Session Bean and message-driven bean.
    • Stateless
      Session Bean Lifecycle
    • Stateful
      Session Bean Lifecycle
    • Message-driven Bean
      Lifecycle
  • Interceptor)
Intercept
Before and after a call, or for a life cycle call, it can be used as an external service that is irrelevant to the commercial operation.
    • Bean
      In
    • Bytes
      Intercept type
    • Raw
      Life Cycle callback interceptor
    • Invocationcontext
  • Detailed rules
Some broken shards
Detailed rules.
    • Session
      Bean workflow rules
    • Message-driven
      Bean workflow rules
    • Rule rules of the interceptor
  • Use timer Server
Timer
A service is a service provided by a container. It is used by stateless Session Bean and message-driven bean.
    • Introducing timer services
    • Timerservice and timer call back
  • Transaction(Transaction)
You can use both CMT and BMT .. XD
    • Transaction Reporting
    • Transaction demarcation)
    • Use CMT (container-managed transaction)
    • Use BMT(Bean-managed
      Transaction)
  • Security
Authentication (authentication) is handed over to the container. authorization can be performed using a declarative or declarative Program (programmatic ).
    • Introduce Java EE Security
    • Declarative Security
    • Program Security
  • Exception Handling
    • Introduce Java EE exceptions
    • Java EE exception

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.