Hi guys
I have a problem connecting to database using datasource. I am trying to
make simple application ( with j2se ). The program only list a table when i
run it. Thats all.
This is the method to create connection.
 private void makeConnection()
  {
    try
    {
      InitialContext ic = new InitialContext();
      System.out.println("LOOKUP");
      DataSource ds = (DataSource) ic.lookup(
"java:comp/env/jdbc/corePool" );
      System.out.println("DSS " + ds);
      Connection con = ds.getConnection();
    }
    catch(Exception e)
    {}
  }

There's no error .. but DataSource object is null. This simple program
running together with SUN j2EE server in my local computer.
Is there any setting that i should do ?

===
thx,
a Java Addicted

===========================================================================
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