[JBoss Seam] - Re: Request: Step by Step build it yourself tutorial
by petemuir
I'm a big fan of tutorials etc. explaining the bigger picture/the concepts (what bijection is, how conversations work, how that aids you in terms of a LIEs, how a pageflow aids you) and also giving you real life examples (that actually do *something*). IMHO configuration should be an appendix (I mean, its just so boring), or at worst around chapter 999999 ;)
But, given the number of books that have a "Chapter 2. Configuration" - I guess I'm not in the majority! As Christian says, contribute! The wiki is a great place to maintain such a tutorial (and in many ways such a tutorial is best written by someone who is learning, rather than someone who has learned, as they've forgotten which bits are tricky! and then reviewed for correctness) - post back here and I'm sure people will review and correct it :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044021#4044021
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044021
19 years
[EJB 3.0] - Inner transection in EJB3 using annotation (in stateless ses
by niityasir@hotmail.com
HI
I am facing problem in implementing inner transaction. I am using JBoss, NetBeans IDE and EJB3.0 . For transaction management I want to use annotations(like TransactionAttributeType.REQUIRES_NEW or any other). I want to implement some sort of inner transation. In my method of session bean I am performing following task in sequence.
| @Stateless
| public class JVTOSSOMSessionBean implements JVTOSSOMSessionRemote, JVTOSSOMSessionLocal, JVTOrderManagementSession {
|
| @PersistenceContext
| private EntityManager em;
| RequestOMValue objRequestOMValue;
| /** Creates a new instance of JVTOSSOMSessionBean */
| public JVTOSSOMSessionBean() {
| }
|
| public RequestOMKey createAndStartRequestOMByValue(RequestOMValue requestOMValue) throws OssIllegalArgumentException, RemoteException, ObjectNotFoundException {
| boolean isSuccess=true;
| RequestOMKey mdnOrderKey=requestOMValue.updateOrder();
| isSuccess=requestOMValue.processOrder(this.em);
| if(isSuccess==true){
| requestOMValue.updateSuccessOrder();
| } else{
| requestOMValue.updateFailOrder();
| }
| return mdnOrderKey;
| }
|
Now I want to achieve behavior that ,if any exception occurs in processOrder method then only tasks performed in processOrder are rollback.
Curretly if any exception occur then all tasks roll back , which also include tasks that i perform in updateSuccessOrder , updateFailOrder , updateOrder and processOrder.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044016#4044016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044016
19 years