No, lookup is for ejb only. Just use jdo.getDatabase(), db.begin() and
db.commit()/rollback() in pure jsp/servlet environment.
Regards,
Low Heng Sin ( [EMAIL PROTECTED] )
-----Original Message-----
From: Brad Matlack [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 6:43
To: [EMAIL PROTECTED]
Subject: [castor-dev] JSP support?
I'm trying to apply the example Java application to a JSP environment, and I
am now running into this exception:
TransactionNotInProgressException: This transaction is not open...
By this message, I am assuming that instead of
db = jdo.getDatabase();
I have to use
db = (Database) ctx.lookup( "java:comp/env/jdo/mydb" );
Is this correct for JSP? (The documentation says YES for EJB)
If yes, then, what is, or where can I find, the correct syntax for the
lookup()?
And finally, are there any JSP examples out in the world???
Thank you,
Brad
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev