...
For example, if you deployed a JavaScript service using the command shown in Example 4, your service would be deployed at http://cxf.apache.org/goodness
Image Removed
.
Panel |
---|
title | Example 4:Deploying a Service at a Specified Address |
---|
|
java org.apache.cxf.js.rhino.ServerApp -a http://cxf.apache.org/goodness Image Removed hello_world.jsx
|
To deploy a number of services using a common base URL you could use the command shown in Example 5. If the service defined by hello_world.jsx
had port name of helloWorld
, ServerApp
would publish it at http://cxf.apache.org/helloWorld
Image Removed
. If the service defined by goodbye_moon.js
had a port name of blue
, ServerApp
would publish at http://cxf.apache.org/blue
Image Removed
.
Panel |
---|
title | Example 5:Deploying a Group of Services to a Base Address |
---|
|
java org.apache.cxf.js.rhino.ServerApp -b http://cxf.apache.org Image Removed hello_world.jsx goodbye_moon.js
|
You can also combine the arguments as shown in Example 6 and your service would be deployed at http://cxf.apache.org/goodness
Image Removed
. ServerApp
would publish three service endpoints: