I agree,

The problem with that is though - every EJB instance will have a JDO instance.

 

Is that acceptable - are'nt the JDO configs supposed to be global? Just curious..

 Conor Allen <[EMAIL PROTECTED]> wrote:

When used in JBoss, the castor JDO object is bound into JNDI and retrieved via a lookup.

 

I imagine it is intended to be used as you would a JDBC  DataSource � retrieve the JDO object in the ejbCreate method and cache it there � and retrieve a new database object within the context of a ejb method invocation using the cached JDO instance.

 

I�m just guessing here though.

 

Conor

 

-----Original Message-----
From: Harshal D [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2003 07:14
To: [EMAIL PROTECTED]
Subject: [castor-dev] Castor JDO & Multithreading

 

Can some one please point me to some links / docs on best practices about JDO calls from EJBS?

Specifically  I am looking for options on using the JDO class from Session bean:

 

1>    Should one instantiate the JDO from inside an SB (I guess silly options , but want to add it to the list)

2>    Should JDO �global variable be accessed inside SB and every SB create DB (jdo.getDatabase())?

3> Should one create a wrapper class that does all of it � exposes only business APIs and make calls to this from SB? In this case will the wrapper class be static?

THANKS

 


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Reply via email to