Hello,
    I am starting off with OFBiz and am integrating some preexisting
databases to applications migrated to OFBiz. The OFBiz entity engine is
proving difficult to work around for existing entities. I've read quite a
bit and understand the method behind the madness however I cannot change
the schemas of the existing databases. I do have OFBiz connecting to the
separate databases but obtaining connections within the Java code is
proving somewhat daunting.

I cringe that for the interim I have had to create direct JDBC connections
to the external databases. I would prefer to use the provided access but
cannot determine how to do this. It seems the objects related to performing
these connections are package private or have some other mechanism designed
to deter efforts in this direction. Nonetheless I need to do this.

I'm looking to perform what would be standard in an enterprise java
container such as get the context, lookup the JNDI environment for the
database connections and go from there. The entityengine.xml file seems to
indicate that JNDI settings can be used for datasource elements but it does
not then allow the connection information. It is either inline jdbc or a
JNDI reference to seemingly nowhere. I'd go on but you get the point.

I've searched high and low on Google and have not found answers to what I
need. Any help would be greatly appreciated

- JR

Reply via email to