Why do you need to manage the transactions by yourself ?
The best is to use Container managed demarcation. (this is what I do, and it
works very well, I have BMP)
You can create a SessionBean that manage your entity beans and call the
business method of your session bean from your servlet. Then you don't have
to care about transactions
François
----- 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:/Transaction
Manager");
> 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