3 Replies Latest reply on Jul 24, 2014 9:09 PM by user10586926

    How to add Datasources to Embedded Weblogic

    0f204e3c-cd92-4957-90ba-49d0003114ed

      I try to find out if its possible that you can configure Datasources over a property file.

      As I know for now, this is only possible if you refer to a existing weblogic installation, which is preconfigured

       

      Properties prop = new Properties();

      prop.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("datasource.properties"));

       

      container = EJBContainer.createEJBContainer(prop);

      initialContext = container.getContext();

       

      ... = initialContext.lookup("EJBname");


      I am also searching for a good tutorial/docu about topic