In Mule 3, I can get the database connection using the following Java code snippet:
StaticDbConfigResolver staticDBConfig = org.mule.RequestContext.getEventContext().getMuleContext().getRegistry().lookupObject("Oracle_Configuration");
MuleEvent muleEvent = org.mule.RequestContext.getEvent();
GenericDbConfig genericDBConfig = (org.mule.module.db.internal.domain.database.GenericDbConfig)staticDBConfig.resolve(muleEvent);
Connection connection = genericDBConfig.getDataSource().getConnection();
How can I achieve the same in Mule 4 ?
I tried searching in Google, but I am not able to find anything.
Thanks, Sunny