Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » emf / sdo / wtp
emf / sdo / wtp [message #111490] Wed, 15 June 2005 19:02 Go to next message
Eclipse UserFriend
Our technology is built on top of EMF, not SDO. We have build a lot of
value-add around Adapters and Adapter Factories which
practically help user define context specific dynamic views.
For our Struts-based webui framework, we need to provide a dynamic access
interface that uses the our "view" adapters. Struts would be happy if we
implement apache/commons/beanutils/DynaBean interface. However, we want to
be able to generate Web Services using WTP, which uses SDO. There is very
little public info on how WTP uses EMF. Questions:

Q1- What does it take to generate a web service given a GenModel (with
already generated, modified code) and specific Adapters that know how to
present that model? ( For us it is crucial that the webservices DOM document
is constructed using our Adapters and not directly the underlying EMF model
objects. ).
Q2 - Do I need to generate Code using SDO templates to be able to make them
work with WTP, or is there a higher level API (perhaps
org.eclipse.wst.common.frameworks.datamodel) that I can implement?

----------
Briefly digging through the wtp code here is what i found:

1- wtp defines its own data model in
org.eclipse.wst.common.frameworks.datamodel in terms of a
composable data model objects with properties and operations.
- despite the similarity, wst datamodel does not extend from emf or sdo.
- DataModelProvider is intended to be the interface to help construct
these DataModels
- I could not find a data mode provider for SDO
2- org.eclipse.wst.common.internal.emf.resource provides utility classes
such as EMF2DOMAdapter etc.
- presumably these get invoked at runtime to present EMF objects as DOM
and vica versa
- it does not look like it uses the ItemProvider Adapters in EMF/SDO,
it goes directly to the EMF model objects
4-org.eclipse.wst.common.modulecore defines modulecore model which is
defined/generated in terms of EMF genModel (not SDO)
5-org.eclipse.wst.rdb.models.sql is defined/generated in terms of SDO.
- does this model merely represent the meta model of a relational
database? if so, how is it synchronized with the real database?
- SQLObjectImpl delegates to SDOUtils in its setter/getters
6- org.eclipse.wst.common.emfworkbench.integration has various packages:
- DataObjectGenerator extends WTPOperation in
org.eclipse.wst.common.ionternal.emfworkbench.operation
this generates SDO compatible code from given models.
- is this done at designtime by the user, or at runtime? how is the
generated SDO used?
- How does the WST get initialized with the generated SDO model?
7- org.eclipse.wst.common.internal.emfworkbench.edit has
AdapterFactoryRegistry. How does this get populated?
- Would these registered adapter factories make use of the ItemProvider
Adapters generated for the EMF models?
-----
I'd appreciate comments, feedback. Thanks in advance, Kagan
Re: emf / sdo / wtp [message #112011 is a reply to message #111490] Thu, 16 June 2005 13:15 Go to previous messageGo to next message
Eclipse UserFriend
Hi Kagan,

I have to confess that I am curious to see the answers for your
questions. I know EMF ;-) but I have no clue how it is used by the WTP
folks.

Cheers,
Marcelo.

Kagan Turgut wrote:
> Our technology is built on top of EMF, not SDO. We have build a lot of
> value-add around Adapters and Adapter Factories which
> practically help user define context specific dynamic views.
> For our Struts-based webui framework, we need to provide a dynamic access
> interface that uses the our "view" adapters. Struts would be happy if we
> implement apache/commons/beanutils/DynaBean interface. However, we want to
> be able to generate Web Services using WTP, which uses SDO. There is very
> little public info on how WTP uses EMF. Questions:
>
> Q1- What does it take to generate a web service given a GenModel (with
> already generated, modified code) and specific Adapters that know how to
> present that model? ( For us it is crucial that the webservices DOM document
> is constructed using our Adapters and not directly the underlying EMF model
> objects. ).
> Q2 - Do I need to generate Code using SDO templates to be able to make them
> work with WTP, or is there a higher level API (perhaps
> org.eclipse.wst.common.frameworks.datamodel) that I can implement?
>
> ----------
> Briefly digging through the wtp code here is what i found:
>
> 1- wtp defines its own data model in
> org.eclipse.wst.common.frameworks.datamodel in terms of a
> composable data model objects with properties and operations.
> - despite the similarity, wst datamodel does not extend from emf or sdo.
> - DataModelProvider is intended to be the interface to help construct
> these DataModels
> - I could not find a data mode provider for SDO
> 2- org.eclipse.wst.common.internal.emf.resource provides utility classes
> such as EMF2DOMAdapter etc.
> - presumably these get invoked at runtime to present EMF objects as DOM
> and vica versa
> - it does not look like it uses the ItemProvider Adapters in EMF/SDO,
> it goes directly to the EMF model objects
> 4-org.eclipse.wst.common.modulecore defines modulecore model which is
> defined/generated in terms of EMF genModel (not SDO)
> 5-org.eclipse.wst.rdb.models.sql is defined/generated in terms of SDO.
> - does this model merely represent the meta model of a relational
> database? if so, how is it synchronized with the real database?
> - SQLObjectImpl delegates to SDOUtils in its setter/getters
> 6- org.eclipse.wst.common.emfworkbench.integration has various packages:
> - DataObjectGenerator extends WTPOperation in
> org.eclipse.wst.common.ionternal.emfworkbench.operation
> this generates SDO compatible code from given models.
> - is this done at designtime by the user, or at runtime? how is the
> generated SDO used?
> - How does the WST get initialized with the generated SDO model?
> 7- org.eclipse.wst.common.internal.emfworkbench.edit has
> AdapterFactoryRegistry. How does this get populated?
> - Would these registered adapter factories make use of the ItemProvider
> Adapters generated for the EMF models?
> -----
> I'd appreciate comments, feedback. Thanks in advance, Kagan
>
>
Re: emf / sdo / wtp [message #112186 is a reply to message #111490] Fri, 17 June 2005 03:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

"Kagan Turgut" <kturgut@txesystems.com> schrieb im Newsbeitrag
news:d8qc3m$4bq$1@news.eclipse.org...

[snip]

> 2- org.eclipse.wst.common.internal.emf.resource provides utility classes
> such as EMF2DOMAdapter etc.
> - presumably these get invoked at runtime to present EMF objects as DOM
> and vica versa
> - it does not look like it uses the ItemProvider Adapters in EMF/SDO,
> it goes directly to the EMF model objects

The plugin org.eclipse.wst.common.emf provides another method to load EMF
models from XML documents. In the blog entry [1] I've made an example where
a XML document (struts-config.xml) with different doctypes gets loaded into
a single EMF model. The WTP use this serialization package for loading the
EMF model of the web.xml. The blog entry [2] contains also a short
description. When you have loaded the EMF model then you can use the
AdapterFactories from the generated Edit package.

[1] http://daro.da.funpic.de/?p=28
[2] http://daro.da.funpic.de/?p=24

[snip]

> 7- org.eclipse.wst.common.internal.emfworkbench.edit has
> AdapterFactoryRegistry. How does this get populated?
> - Would these registered adapter factories make use of the ItemProvider
> Adapters generated for the EMF models?
> -----
> I'd appreciate comments, feedback. Thanks in advance, Kagan

I think this is the registry for managing AdapterFactories that are
populated as extensions. EMF now also generates an extension that registers
the ItemProviderAdapterFactoy of your model. After that the
ItemProviderAdapterFactory can be used in ComposedAdapterFactory.

Daniel
Re: emf / sdo / wtp [message #112288 is a reply to message #112186] Fri, 17 June 2005 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: philipp.kutter.org

Hi, Daniel.
Could you not contribute your alternative way of persisting and
loading EMF Resources to the EMF project? A feature request could
be entered to the Bugzilla.

I assume it is well tested in the WTP, from your blog it looks
as if it is not too complicate, and there would be an example for
a not so complext special way of persisting in the EMF generator.

Best, Philipp
Re: emf / sdo / wtp [message #112601 is a reply to message #112288] Sun, 19 June 2005 03:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

I think I could rewrite (use english) and extend the blog entry to make an
article about persisting EMF models with WTP. Or do you mean contributing
the codebase?

Daniel

"Philipp Kutter" <philipp@kutter.org> schrieb im Newsbeitrag
news:d4d4d42ead00dcc209854aaa50a55395$1@www.eclipse.org...
> Hi, Daniel.
> Could you not contribute your alternative way of persisting and
> loading EMF Resources to the EMF project? A feature request could
> be entered to the Bugzilla.
>
> I assume it is well tested in the WTP, from your blog it looks
> as if it is not too complicate, and there would be an example for
> a not so complext special way of persisting in the EMF generator.
>
> Best, Philipp
>
Re: emf / sdo / wtp [message #112749 is a reply to message #112288] Mon, 20 June 2005 04:53 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

I will provide a short article about the usage of the WTP translator (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=100762).

Daniel

"Philipp Kutter" <philipp@kutter.org> schrieb im Newsbeitrag
news:d4d4d42ead00dcc209854aaa50a55395$1@www.eclipse.org...
> Hi, Daniel.
> Could you not contribute your alternative way of persisting and
> loading EMF Resources to the EMF project? A feature request could
> be entered to the Bugzilla.
>
> I assume it is well tested in the WTP, from your blog it looks
> as if it is not too complicate, and there would be an example for
> a not so complext special way of persisting in the EMF generator.
>
> Best, Philipp
>
Previous Topic:creating a war file
Next Topic:Equivalent in VB
Goto Forum:
  


Current Time: Thu Apr 17 21:57:03 EDT 2025

Powered by FUDForum. Page generated in 0.04101 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top