Hi
I have the following qs.
1.) If i change the transaction-type from Container to Bean it means i have to
manage the transactions in bean . Where should call ctx.begin and what point
should i call commit. How do i rollback.
2.) I am also looking for another option where i should be able to control the
transactions from client How do i get the transaction there .
I have seen lots of document on net and i found that its possible either
thru getting the object from JNDI or getting from SessionContext But i am
unable to understand how would i get that .
3.) How do i configure JBOSS so that it should search the transactionmanager
from JNDI
4.) How should i get sessionContext in client.
regards
prateek
"Saint-Martin Cecile" <[EMAIL PROTECTED]> wrote:
1) You have to change the option :
<transaction-type>Container</transaction-type>
to
<transaction-type>Bean</transaction-type>
in your ejb-jar.xml file.
2) just try :
ctx.getUserTransaction().begin();
Cecile Saint-Martin
[EMAIL PROTECTED]
----- Original Message -----
From: "prateeks saxena" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 3:46 PM
Subject: [JBoss-user] BMP :Manage the transactions:HOW TO
Hi
I am using BMP and i want to know how to specify the transaction type for
my bean. I have tried searching in the Documents in jboss site but did not
find any.
I have the following queries.
1.) COuld anybody send the sample Deployement descriptor file which has BMP
having transactions
2.) IF from the Client (servlet) I want to start a transaction and control
from there so that i have the control on more tables at a time. what should i
do .I have tried with the following code but didnt work
javax.transaction.UserTransaction
ctx=(javax.transaction.UserTransaction)jndiContext.lookup("java:/TransactionManager");
ctx.begin();
but it dont find the java:/TransactionManager.(I have seen this code in
mailing list site)
I am using JBOSS2.0 version.
COULD anybody help me please.
regards
prateek
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user