You would have to map you legacy DB entities to some new OFBiz entities (created by you, ie using specific entitymodel.xml and
entitygroup.xml files) and then use a specific data-source set in entity-engine.xml. But I wonder if it's the better way to go. Only
you can decide this at this stage...
http://ofbiz.apache.org/docs/entity.html
Jacques
From: "Roberto Cosenza" <[EMAIL PROTECTED]>
Thank you for your answer.
I do understand the principles of the EntityEngine (and of the Service Layer
relying on it)
Altough since my jdbc data source is not getting data from the same database on which the EntityEngine is running, I get the
impression that to make it work I have to by pass the EntityEngine itself and make my service access a "LegacyEngine" when
required. Am I crazy?
Or is it possible to map part of the legacy engine to go to one data source and an other part to an other? How will then
relationship be managed? Seems impossible to me...
Please help me out!
/Roberto
Please help me out!
On 21 jan 2008, at 16.06, BJ Freeman wrote:
There will be other responses I am sure.
First of all you need to understand the Entity Engine.
There are two basic files that make up the UI.
FTL and Widgets.
I suggest you look up datasourses and link you legacy system that way.
you can create you own Secas to sync ofbiz with your legacy system.
here is a good place to start
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index
Roberto Cosenza sent the following on 1/21/2008 5:12 AM:
Hi.
I'm new to ofbiz and i'm studying its internals in order to integrate it
with a legacy product.
I have a few questions:
* Where is the documentation of the file format used for the screens?
* Accessing an entity through a jdbc-source instead of the ofbiz entity
engine
I can replace the implementation of a service so that the finders use
the jdbc driver but how do I, for instance, tell the "Edit agreement"
screen to use the jdbc?
"I guess" that the edit screen uses the tag "entity-one" to load the
entity to be edited in the form, avoiding the need of a call to
"loadAgreement" service. How do i replace the implementation of that
tag/call?
Thank you for your time.
/Roberto