Question :Is there any way to force an Entity Bean to store itself to the db? I don't
wanna wait for the container to update the db, I want to do it NOW! Is it
possible? (EJB)
Answer :Specify the transaction attribute of the bean as RequiresNew. Then as per
section 11.6.2.4 of the EJB v 1.1 spec EJB container automatically starts a
new transaction before the method call. The container also performs the
commit protocol before the method result is sent to the client.
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Friday, March 13, 2009
Is there any way to force an Entity Bean to store itself to the db? I don't
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment