Testing the Installation
To test the installation of Celtix, try running the Hello World demonstration, located in
$CELTIX_HOME/celtix/samples/hello_world
. To build and run the Hello World demonstration, perform the following steps:
- Open a command prompt and change directory to
$CELTIX_HOME/celtix/samples/hello_world
.- Enter the following command to build the demonstration:
ant build- Open a new command prompt, change directory to the
$CELTIX_HOME/celtix/samples/hello_world
directory, and enter the following command:
ant server- From the first command prompt, enter the following command:
ant clientSample output
When you run the demonstration, the server process should produce output like the following:
Buildfile: build.xml server: [java] Starting Server [java] 12-Sep-2005 16:59:31 org.objectweb.celtix.bus.workqueue.AutomaticWorkQueueImpl <init> [java] INFO: Constructing automatic work queue with: [java] max queue size: 250 [java] initialThreads: 1 [java] lowWaterMark: 5 [java] highWaterMark: 25 [java] 12-Sep-2005 16:59:32 org.apache.catalina.startup.Embedded start [java] INFO: Starting tomcat server [java] 12-Sep-2005 16:59:33 org.apache.catalina.core.StandardEngine start [java] INFO: Starting Servlet Engine: Apache Tomcat/5.5.9 [java] 12-Sep-2005 16:59:33 org.apache.catalina.core.StandardHost start [java] INFO: XML validation disabled [java] 12-Sep-2005 16:59:34 org.apache.catalina.startup.ContextConfig defaultWebConfig [java] INFO: No default web.xml [java] 12-Sep-2005 16:59:34 org.apache.catalina.startup.ContextConfig applicationWebConfig [java] INFO: Missing application web.xml, using defaults only StandardEngine[Celtix-9000].StandardHost[localhost].StandardContext[] [java] 12-Sep-2005 16:59:35 org.apache.coyote.http11.Http11Protocol init [java] INFO: Initializing Coyote HTTP/1.1 on http-9000 [java] 12-Sep-2005 16:59:35 org.apache.coyote.http11.Http11Protocol start [java] INFO: Starting Coyote HTTP/1.1 on http-9000 [java] 12-Sep-2005 16:59:36 org.apache.catalina.startup.ContextConfig defaultWebConfig [java] INFO: No default web.xml [java] 12-Sep-2005 16:59:36 org.apache.catalina.startup.ContextConfig applicationWebConfig [java] INFO: Missing application web.xml, using defaults only StandardEngine[Celtix-9000].StandardHost[localhost].StandardContext[/SoapContext] [java] running bus [java] 12-Sep-2005 17:03:13 org.objectweb.celtix.bindings.AbstractServerBinding$1 dispatch [java] INFO: Constructing ServerBindingCallback with transport: StandardEngine[Celtix-9000].StandardHost[localhost].StandardContext[/SoapContext].StandardWra pper[/SoapContext/SoapPort] [java] 12-Sep-2005 17:03:13 org.objectweb.celtix.bindings.AbstractServerBinding dispatch [java] INFO: Dispatched to binding on thread : Thread[http-9000-Processor4,5,main] [java] retrieved operation name from soap message:{http://objectweb.org/hello_world_soap_http/types}greetMe [java] 12-Sep-2005 17:03:14 demo.hw.server.GreeterImpl greetMe [java] INFO: Executing operation sayHi [java] 12-Sep-2005 17:03:14 org.objectweb.celtix.bindings.AbstractServerBinding dispatch [java] INFO: Dispatch complete on thread : Thread[http-9000-Processor4,5,main]The client process should produce output like the following:
Buildfile: build.xml client: [java] 12-Sep-2005 17:03:09 org.objectweb.celtix.bus.workqueue.AutomaticWorkQueueImpl <init> [java] INFO: Constructing automatic work queue with: [java] max queue size: 250 [java] initialThreads: 1 [java] lowWaterMark: 5 [java] highWaterMark: 25 [java] service factory: org.objectweb.celtix.bus.ServiceFactoryImpl@ca8327 [java] 12-Sep-2005 17:03:10 org.objectweb.celtix.bindings.GenericClientBinding createTransport [java] INFO: creating client transport for org.objectweb.celtix.addressing. EndpointReferenceType@1f9dc36 [java] response from service: Hello blah BUILD SUCCESSFUL Total time: 9 seconds