container managed beans

Hi all,

In weblogic, there is one stateless session bean (SLSB) as facade to an application that has POJOs.

I do not want to set any transaction settings on the SLSB, instead I want to use Spring declarative transaction setting on one of the POJOs.

My questions:

1) I want to use container managed bean (CMP) for the above SLSB, is it possible because I do not want to set any transaction at this level?

2) What is the default transaction setting for a CMP in weblogic?

3) If I extend this above scenario to use JTA( hitting 2 databases in a single transaction), can I still use CMP in weblogic?

Thanks in advance.

[664 byte] By [kollareddya] at [2007-11-26 13:27:24]
# 1

1) CMP only for entity Beans . you can not use it for Session beans

( CMP synchronise with database using ejbLoad() and ejbStore() methods . for session beans you would not have that methods )

2) Required is the default TX attribute for ejb in any server(approximately)

3)You can either use JTA or CMP not both]

( by specifying <trans-attribut></trans-attribute> in ejb-jar.xml

AnjanReddya at 2007-7-7 20:28:27 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...