Simon, yes, it works. Sorry it was my stupidity.

Thanks a lot.

Regards
Raman

-----Original Message-----
From: Simon Laws [mailto:simonsl...@googlemail.com] 
Sent: Monday, 18 January 2010 8:27 PM
To: user@tuscany.apache.org
Subject: Re: exposing service on multiple bindings

Hi

The problem may be because the dependency I suggested referred to the
2.0-SNAPSHOT version of the web service feature. Looking back at your
previous post your using 2.0-M4 so we need to get the right version in
there. Can you try...

        <dependency>
            <groupId>org.apache.tuscany.sca</groupId>
            <artifactId>tuscany-feature-webservice</artifactId>
            <type>pom</type>
            <version>2.0-M4</version>
        </dependency>

 I just tried adding a ws binding to my local copy of the test. The
composite file is...

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912";
           targetNamespace="http://itest";
           name="ExternalServiceComposite">

    <component name="HelloWorldService">
        <implementation.java
class="org.apache.tuscany.sca.binding.jms.HelloWorldServiceImpl"/>
        <service name="HelloWorldService">
            <binding.jms name="myJMSBinding"

initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFa
ctory"
                         jndiURL="tcp://localhost:61616">
               <destination jndiName="DestQueueA" create="always"/>
               <response>
                  <destination jndiName="RespQueueA" create="always"/>
               </response>
            </binding.jms>
            <binding.ws name="myWSBInding"/>
        </service>
    </component>

</composite>

When run mvn I see the following test output...

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.tuscany.sca.binding.jms.ExternalBrokerTestCase
- Using Persistence Adapter: MemoryPersistenceAdapter
- ActiveMQ 5.2.0 JMS Message Broker (localhost) is starting
- For help or more information please see: http://activemq.apache.org/
- Listening for connections at: tcp://L3AW203:61616
- Connector tcp://L3AW203:61616 Started
- ActiveMQ JMS Message Broker (localhost,
ID:L3AW203-2716-1263826192218-0:0) sta
rted
18-Jan-2010 14:49:52 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
domain: tu
scany.apache.org
18-Jan-2010 14:49:52 org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContri
butions
INFO: Loading contribution:
file:/D:/sca-java-2.x/itest/jms/externalBroker/targe
t/classes/
18-Jan-2010 14:49:54
org.apache.tuscany.sca.binding.jms.host.DefaultJMSServiceLi
stener registerListerner
INFO: JMS service 'HelloWorldService' listening on destination
DestQueueA
18-Jan-2010 14:49:54
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl addEndpoint
INFO: Add endpoint - (@33468166)Endpoint:  URI =
HelloWorldService#service-bindi
ng(HelloWorldService/myJMSBinding)
2010-01-18 14:49:54.765::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
- No JMS connection factories are defined.Will not listen for any JMS
messages
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyLogger info
INFO: jetty-6.1.19
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyLogger info
INFO: Started selectchannelconnec...@0.0.0.0:8080
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyServer
addServletMap
ping
INFO: Added Servlet mapping:
http://L3AW203:8080/HelloWorldService/HelloWorldSer
vice/myWSBInding
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl addEndpoint
INFO: Add endpoint - (@1340668)Endpoint:  URI =
HelloWorldService#service-bindin
g(HelloWorldService/myWSBInding)
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl addEndpoint
INFO: Add endpoint - (@18686163)Endpoint:  URI =
HelloWorldClient#service-bindin
g(HelloWorldService/HelloWorldService)
18-Jan-2010 14:49:55 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl endpointRemoved
INFO: Remove endpoint - (@33468166)Endpoint:  URI =
HelloWorldService#service-bi
nding(HelloWorldService/myJMSBinding)
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl endpointRemoved
INFO: Remove endpoint - (@1340668)Endpoint:  URI =
HelloWorldService#service-bin
ding(HelloWorldService/myWSBInding)
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyServer
removeServlet
Mapping
INFO: Removed Servlet mapping:
/HelloWorldService/HelloWorldService/myWSBInding
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl endpointRemoved
INFO: Remove endpoint - (@18686163)Endpoint:  URI =
HelloWorldClient#service-bin
ding(HelloWorldService/HelloWorldService)
- ActiveMQ Message Broker (localhost, ID:L3AW203-2716-1263826192218-0:0)
is shut
ting down
- Connector tcp://L3AW203:61616 Stopped
- ActiveMQ JMS Message Broker (localhost,
ID:L3AW203-2716-1263826192218-0:0) sto
pped
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.5 sec


The important line is....

INFO: Added Servlet mapping:
http://L3AW203:8080/HelloWorldService/HelloWorldSer
vice/myWSBInding

This is the web service being exposed. Haven't actually tried calling
the web service but this looks like it's doing the right thing so far.

Regards

Simon

Reply via email to