Hi Dirk,

> Hi,
>
> how can I use the DefaultDS within a client. I would like to implement the
> Fast-Lane-Reader-Pattern and for that I need connection to my Database.

Try:
        Context jndiCtx = new InitialContext();
        DataSource ds = (DataSource) jndiCtx.lookup("java:/DefaultDS");
        Connection c = ds.getConnection();
        // SQL ..


Joachim
-- 
Dipl.-Ing. Joachim Schaaf | Projektleiter | mailto:[EMAIL PROTECTED]
cataloom AG | Eupener Str. 148 | 50933 K�ln | http://cataloom.com/
Tel: +49 221 4851807 | Fax: +49 221 4851907 | Mobil-Tel: +49 170 7667807

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to