Hi,

"Sriram Narayan (CTS)" wrote:
>
> Hi
> Could u pls share ur opinions on placing all the queries that an ejb fires
> inside the ejb-jar.xml as env entries.
> We could then retrive them as required using context.lookup...
>
> This helps in cleaning the code from the clutter of sql.
> But is it costly in any way? Are jndi lookups for env entries cached?
> Are there any other issues?
> Thanks in anticipation
> -sriram
Why don't you use data access object (DAO) abstracting DB-Strings. One
of the benefice of using DAO is that you can test your sql strings
before using then into beans (testing them into beans spends more time).

/Francis
--
[EMAIL PROTECTED]

MATHEMA Software GmbH
N�gelsbachstra�e 25 b
91052 E r l a n g e n
D e u t s c h l a n d
Tel +49(0)9131/8903-0
Fax +49(0)9131/8903-55
http://www.mathema.de

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to