I'm new to develop in plugin. Now I try to connect same current database connection that application use. Can I do that? and How?

Thank you,

Krerkkiat

  • No labels

1 Comment

  1.  

    Connection con = null;
    DataSource db = (DataSource) AppUtil.getApplicationContext().getBean("setupDataSource");

    con = db.getConnection();

     

    hope this helps..