Re: Newbie - using EJB and databases

2001-06-25 Thread Johan Fredriksson
location", > to ensure the proper function of container managed transactions (BTW, this > also works much faster than using the normal "location"). I never used the > "xa-location", i don't know where it may be usefull. > > Best regards, > > Jens Stut

RE: Newbie - using EJB and databases

2001-06-21 Thread Manne Fagerlind
an using the normal "location"). I never used the "xa-location", i don't know where it may be usefull. Best regards, Jens Stutte > -Ursprüngliche Nachricht- > Von: Johan Fredriksson [mailto:[EMAIL PROTECTED]] > Gesendet am: Mittwoch, 20. Juni 2001 13

Re: Newbie - using EJB and databases

2001-06-20 Thread Johan Fredriksson
This is how I always do import java.sql.*; public class DB { private static javax.sql.DataSource ds = null; //Initieringsblock static { String dbsource = "jdbc/MyPooledDS"; try { javax.naming.Context ctx = new javax.naming.InitialContext(); if (ctx == null) { System.out