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 "Corona/HowTo/ServerApplication"

Line 3: Line 3:
 
;Collaboration Server:based upon ECF generic server
 
;Collaboration Server:based upon ECF generic server
  
=Step 1: Create OSGi Application=
+
=Step 1: Create Plug-in=
 +
Assuming you are already familiar with creating plug-in projects within the PDE/IDE...
 +
* Create a new plug-in using the PDE project wizard
 +
** Select '''File->New->Project'''
 +
** Expand '''Plug-in Development'''
 +
** Select '''Plug-in Project'''
 +
* Complete the ''Plug-in Project'' dialog, select '''Next'''
 +
* Complete the ''Plug-in Content'' dialog, select '''Finish'''
 +
** ensure the plug-in does not contribute to the UI
 +
* Create dependency upon the ''org.eclipse.corona'' plug-in
 +
** Open the plug-in's meta-data via manifest editor
 +
** Select the '''Dependencies''' tab
 +
** Add ''org.eclipse.corona'' as a required plug-in
 +
* Save the plug-in's meta-data
 +
** This will update the plug-in's classpath needed in the following steps
  
=Step 2: Update ''osgi.applications''=
+
=Step 2: Create OSGi Application=
 +
* Within a plug-in project, create an extension to the ''org.eclipse.core.runtime.applications'' extension point
 +
:;visibility:set this value specific to your server application
 +
:;cardinality:set this value specific to your server application
 +
:;thread:this must be set to '''any'''
 +
:;icon:leave this value blank.  server-side applications do not require an icon.
 +
 
 +
=Step 3: Update ''osgi.applications''=
  
 
[[Category:Corona]]
 
[[Category:Corona]]

Revision as of 07:46, 31 July 2008

Corona's server-side environment supports the execution of multiple servers. These servers are OSGi applications that are (optionally) started when the Corona server is started. Corona provides the main OSGi application used to manage the start/stop lifecycle of the secondary server applications. The following server applications are provided as samples:

Database Server
based upon Apache Derby
Collaboration Server
based upon ECF generic server

Step 1: Create Plug-in

Assuming you are already familiar with creating plug-in projects within the PDE/IDE...

  • Create a new plug-in using the PDE project wizard
    • Select File->New->Project
    • Expand Plug-in Development
    • Select Plug-in Project
  • Complete the Plug-in Project dialog, select Next
  • Complete the Plug-in Content dialog, select Finish
    • ensure the plug-in does not contribute to the UI
  • Create dependency upon the org.eclipse.corona plug-in
    • Open the plug-in's meta-data via manifest editor
    • Select the Dependencies tab
    • Add org.eclipse.corona as a required plug-in
  • Save the plug-in's meta-data
    • This will update the plug-in's classpath needed in the following steps

Step 2: Create OSGi Application

  • Within a plug-in project, create an extension to the org.eclipse.core.runtime.applications extension point
visibility
set this value specific to your server application
cardinality
set this value specific to your server application
thread
this must be set to any
icon
leave this value blank. server-side applications do not require an icon.

Step 3: Update osgi.applications

Back to the top