Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "WTP Servers Bridge for STP SOAS"

(How it works)
(Using Tomcat server defined in wtp)
Line 29: Line 29:
  
 
== Using Tomcat server defined in wtp ==
 
== Using Tomcat server defined in wtp ==
 +
In org.eclipse.stp.soas.deploy.tomcat, we provided the wtp Tomcat server support by:
 +
*Define tomcat server type <-> connection profile mapping in wtpBridge extension point in plugin.xml
 +
*Provide WtpTomcatServerAdapter class, which can convert wtp server to tomcat connection profile.
 +
 +
In order to support other servers in wtp, such as ServiceMix, you can reference the tomcat  implementation here.
 +
 
== How to use other server defined in wtp ==
 
== How to use other server defined in wtp ==
 
== More work to do? ==
 
== More work to do? ==

Revision as of 03:43, 11 May 2007

Why need to build the wtp server bridge

One good suggestion from the lastest stp meeting (Apr24,25, dublin): Since wtp server frame work is quite popular now, it will be good if we can deploy component directly to wtp server.

Thus we build this bridge to connect between those two frameworks. It will allow developer to use wtp server as connection profile defined in stp. Thus we can deploy service to wtp server without modify current code base, which is all based on connection profile defined in DTP.

How it works

Changes

  • StpProfileManager

Instead of using ProfileManager from DTP, we delegate all profile related calls to the new StpProfileManager. It will first lookup profile form DTP, then retrieve profile from wtp server delegate. The result will be combination of both.

  • WtpServerBridge

It used to retrive related wtp server from ServerCore according to server type <-> connection profile ID mappings defined in the bridge extension point.

  • IWTPServerAdater

Adapter interface to convert server instance to connection profile class. For each server type supported by this bridge, there will be an server adapter.

  • Tomcat server adapter

Predefined adapter to convert tomcat server in wtp to tomcat connection profile.

  • wtpBridge.exsd

Define the mapping between wtp server type and stp connection profile id

Extension point schema

wtpBridge.exsd

*wtpServerType, It is server type defined in wtp. for tomcat example "org.eclipse.jst.server.tomcat.55"
*stpConnectionProfile, It is the related connection profile defined in stp. for tomcat example "org.eclipse.stp.soas.deploy.profile.tomcat"
*stpProfileCategory, connection profile category defined in stp. for example "org.eclipse.stp.soas.deploy.profile.tomcat"
*serverAdapterClass, the adapter class to convert wtp server to ConnectionProfile i/f, for example "org.eclipse.stp.soas.deploy.tomcat.wtp.WtpTomcatServerAdapter"

Screenshots

Using Tomcat server defined in wtp

In org.eclipse.stp.soas.deploy.tomcat, we provided the wtp Tomcat server support by:

*Define tomcat server type <-> connection profile mapping in wtpBridge extension point in plugin.xml
*Provide WtpTomcatServerAdapter class, which can convert wtp server to tomcat connection profile.

In order to support other servers in wtp, such as ServiceMix, you can reference the tomcat implementation here.

How to use other server defined in wtp

More work to do?

Johnson Ma, 2007-05-11

Back to the top