Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 426
  • Last Modified:

Explain EJB Life Cycle

Explain EJB Life Cycle and Transaction attributes in EJB
0
Manikandan Thiagarajan
Asked:
Manikandan Thiagarajan
  • 5
  • 2
  • 2
1 Solution
 
Manikandan ThiagarajanSenior consultantAuthor Commented:
how could i maintain the state in Stateful session bean.

Could you please explain with code
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
a_bCommented:
Once you declare a stateful session bean look at the bean cycle. It will maintain the state for you.
0
 
Manikandan ThiagarajanSenior consultantAuthor Commented:
intialize the global varible need to maintians the state
is it correct?
0
 
a_bCommented:
No. Once you declare a  bean to be a stateful session bean and deploy it ; the container - jboss or weblogic will take care of how to make it stateful. All you need to do is make sure you declare it as stateful.
0
 
a_bCommented:
Look at the lifecycle diagram from the link that I posted.
0
 
Gurvinder Pal SinghCommented:
No, the ejb container will save the reference of the bean, using which you can access it later also.
Please read the links i have posted
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now