0 Replies Latest reply on Jan 16, 2013 7:31 AM by luca.santaniello.81

    get datasource information from code

    luca.santaniello.81 Newbie

      Hi all,

       

      I defined my datasource and deployed it. Now I need get username and password information from my servlet.

       

      I get Datasource instance but I don't know how get information on it.

       

      ....

      InitialContext ctx = new InitialContext();

      DataSource ds = (DataSource)ctx.lookup("java:/myDS");

      ....

       

      Can you help me, please?

       

      Luca