<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--

/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com

  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
        background-color: #E5E5E5;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11;
        color: #000000;
}

/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
p, td                { font-size : 11; color : #000000; }
a:link,a:active,a:visited { color : #006699; }
a:hover                { text-decoration: underline; color : #DD6900; }
hr        { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
h1,h2                { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-size : 22px; font-weight : bold; text-decoration : none; line-height : 120%; color : #000000;}


/* This is the border line & background colour round the entire page */
.bodyline        { background-color: #FFFFFF; border: 1px #98AAB1 solid; }


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; line-height: 12px}
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover        { color: #DD6900; text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink                { font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink         { text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link        { text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* Quote & Code blocks */
.code {
        font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
        font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

-->
</style>
</head>
        <body>

        <div class="postbody">Hello, <br />
<br />
I'm using Petals 3.0.3 and ActiveMQ...<br />
<br />
And this is my scenary:  Java client --> ActiveMQ --> JMS BC Consumer Queue (Petals) --> SOAP BC Provider --> External Web Service<br />
<br />
I receive this Warning and monitoring with TCPMon I watch that I don't receive any message in my SOAP endpoint....<br />
<br />
WARNING 2010-03-08 12:11:15,656 [Petals.Container.Components.petals-bc-soap]<br />
    Catch an exception on the WS invocation : null<br />
<br />
<br />
        <jbi:consumes<br />
                        interface-name="generatedNs:Contador"<br />
                        service-name="generatedNs:ContadorService"<br />
                        endpoint-name="Contador"><br />
        <br />
                        <!-- CDK specific elements --><br />
                        <petalsCDK:mep>InOnly</petalsCDK:mep><br />
                <br />
                        <!-- Component specific elements -->        <br />
                        <jms:jndi-provider-url>tcp://localhost:61616</jms:jndi-provider-url><br />
                        <jms:jndi-initial-context-factory>org.apache.activemq.jndi.ActiveMQInitialContextFactory</jms:jndi-initial-context-factory><br />
                        <jms:jndi-destination-name>dynamicQueues/PEtALSQueue</jms:jndi-destination-name><br />
                        <jms:jndi-connection-factory>ConnectionFactory</jms:jndi-connection-factory><br />
                        <jms:transacted>false</jms:transacted><br />
                </jbi:consumes><br />
<br />
<br />
        <jbi:provides                 <br />
                        interface-name="generatedNs:Contador"<br />
                        service-name="generatedNs:ContadorService"<br />
                        endpoint-name="Contador"><br />
        <br />
                        <!-- CDK specific elements --><br />
                        <petalsCDK:wsdl>wsdl.wsdl</petalsCDK:wsdl><br />
<br />
                        <!-- Component specific elements -->        <br />
                        <soap:address>http://localhost:8082/ContadorWS/services/Contador</soap:address><br />
                        <soap:soap-version>1.1</soap:soap-version><br />
                        <soap:add-root>false</soap:add-root><br />
                        <soap:chunked-mode>false</soap:chunked-mode><br />
                        <soap:cleanup-transport>true</soap:cleanup-transport><br />
                        <soap:mode>SOAP</soap:mode>                        <br />
                </jbi:provides><br />
<br />
Client:<br />
<br />
String username = "root";<br />
                String password = "root";<br />
                <br />
                String queueName = "dynamicQueues/PEtALSQueue";<br />
                <br />
                Properties env = new Properties( );<br />
                env.put(Context.SECURITY_PRINCIPAL, username);  <br />
                env.put(Context.SECURITY_CREDENTIALS, password);<br />
                env.put(Context.INITIAL_CONTEXT_FACTORY,<br />
                    "org.apache.activemq.jndi.ActiveMQInitialContextFactory");<br />
                env.put(Context.PROVIDER_URL,<br />
                     "tcp://localhost:61616");<br />
                 <br />
                InitialContext jndi = new InitialContext(env);<br />
            QueueConnectionFactory connectionFactory = (QueueConnectionFactory)jndi.lookup("QueueConnectionFactory");<br />
         // Create a JMS connection<br />
        QueueConnection queueConnection =  connectionFactory.createQueueConnection(username,password);<br />
 QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);       <br />
        Queue requestQueue = (Queue)jndi.lookup(queueName);<br />
                 <br />
                QueueSender queueSender = queueSession.createSender(requestQueue);        <br />
                Destination tempResponseQueue = queueSession.createTemporaryQueue();       <br />
                MessageConsumer responseMessageConsumer = queueSession.createConsumer(tempResponseQueue);<br />
                <br />
                // Set up JMS requestMessage        <br />
                TextMessage msg = queueSession.createTextMessage();        <br />
                msg.setText(body);        <br />
                msg.setJMSReplyTo(tempResponseQueue);        <br />
                <br />
                // Start connection, send the message and wait for a response    <br />
                queueConnection.start();      <br />
queueSender.send(msg);       <br />
                    Message responseMessage = (Message) responseMessageConsumer.receive();<br />
...<br />
<br />
<br />
Some help pease!!  thanks!!</div>
        <br /><div class="gensmall"><br />
<br />
<br />
-------------------- m2f --------------------<br />
<br />
<a href="http://forum.petalslink.com/m2f_usercp.php">Subscribe/Unsubscribe</a> emails notifications.<br />
<br />
Response to this email will be posted on the Petals forum.<br />
Please delete the existing text before responding :)<br />
<br />
Read the topic online:<br />
<a href="http://forum.petalslink.com/viewtopic.php?p=30529#30529" target="_blank">http://forum.petalslink.com/viewtopic.php?p=30529#30529</a><br />
<br />
-------------------- m2f --------------------</div>
        </body>
</html>