Skip to Content
0
Former Member
Jul 25, 2014 at 06:04 AM

How to get connection instance from hybris?

414 Views

Hi,

We need to get connection instance in our java code. We use MS SQL as a database. And we want to execute own query without FlexibleSearch.

Now we create connection like this:

  Connection con = DriverManager.getConnection(Config.getParameter("db.url"), Config.getParameter("db.username"), Config.getParameter("db.password"));

But we want to use connection from Hybris Platform which Hybris use in FlexibleSearch. How we can do it?

Thanks.