Can we use transaction mangament like transaction definition (required or Requiresnew) when we use session bean with JDBC?

It is perfectly possible to specify transaction demarcation annotations on session EJBs or on their individual methods using the TransactionAttribute annotation or via entries in ejb-jar.xml.

It is perfectly possible to specify transaction demarcation annotations on session EJBs or on their individual methods using the @TransactionAttribute annotation or via entries in ejb-jar.xml. You can find the basics addressed in the Java EE tutorial on container-managed transactions. Other places to obtain examples would be the OpenEJB project, which describes the usage of the annotations, and also testing for session EJB methods that uses these annotations.As far, as the scope of declarative transaction management uses are concerned, they are not restricted to entity beans (if you are referring to EJB 2.

X entity beans, which no sensible project would use nowadays). You could use them with lower-level protocols like plain JDBC or other transactional protocols, and with higher-level frameworks like JPA, as long as the underlying datasources that you are using, support transactional access, i.e. Allows for enlisting and delisting of the datasources in the transactions using the JTA APIs.

– Mohit Gupta Jul 17 at 12:23 Well, I would suggest looking up sources of information that are current and upto date. Unless you are working on an EJB 2. X project, you should not worry about these terms in an EJB 3.

X project. The concept of entity beans no longer exists from Java EE 5 onwards (which has been available for at least 5 years now). One would use entities, which are defined by the JPA specification, instead of entity beans which were defined by the EJB specification.

The EJB specification only deals with session EJBs and MDBs as of today. JPA entities can be used outside a Java EE container as well. – Vineet Reynolds Jul 17 at 12:27.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions