Hello,

I am new to ServiceMix. My goal is to use the ESB for connection to chat
servers and then rule-based-route, transform, and send chat messages to
other components (RDBMS and RSS). The xmpp component looks like my ultimate
implementation but I'd like to try a couple of simple tests first, which
doesn't produce the results I expect in a static deployment. I am using
OpenFire for chat server.

First test was to poll a directory for XML files and post the contents of
the file to a chat room (I assume any XML payload would work here) using
FilePoller -> JabberGroupChatSender. The file gets picked up by the poller,
but no messages are sent to the chat room specified.

Other test was to listen to a chat server and route  messages to the
terminal using JabberReceiver->Trace. Sending messages through my chat
client does not result in output to the terminal. 

Through the OpenFire console I can see that "myuser" and "service-mix" user
do indeed connect to the chat server but what am I missing?

Here is the servicemix.xml snippet ...

- - - - 

<sm:activationSpec componentName="filePoller"
destinationService="foo:myJabberSender" service="foo:filePoller">
  <sm:component><bean
class="org.apache.servicemix.components.file.FilePoller">
    <property name="file"
value="/opt/servicemix/examples/jabber-reader/inbox" />
    <property name="period" value="1000" />
  </bean></sm:component>
</sm:activationSpec>

<sm:activationSpec componentName="myJabberSender"
service="foo:myJabberSender" endpoint="myJabberSender">
  <sm:component><bean
class="org.apache.servicemix.components.jabber.JabberGroupChatSender">
    <property name="host" value="myhost"/>
    <property name="port" value="5222"/>
    <property name="user" value="myuser"/>
    <property name="password" value="mypassword"/>
    <property name="room" value="[EMAIL PROTECTED]"/>
  </bean></sm:component>
</sm:activationSpec>

<sm:activationSpec componentName="myJabberReceiver"
service="foo:myJabberReceiver" endpoint="myJabberReceiver"
destinationService="foo:trace">
  <sm:component><bean
class="org.apache.servicemix.components.jabber.JabberReceiver">
    <property name="host" value="myhost"/>
    <property name="port" value="5222"/>
    <property name="user" value="servicemix-user"/>
    <property name="password" value="servicemix-pwd"/>
    <property name="resource" value="ServiceMix"/>
  </bean></sm:component>
</sm:activationSpec>

<sm:activationSpec componentName="trace" service="foo:trace">
        <sm:component>
                <bean 
class="org.apache.servicemix.components.util.StreamWriterComponent"
/>
        </sm:component>
</sm:activationSpec>

- - - - - 

Thank you in advance.
-- 
View this message in context: 
http://www.nabble.com/Jabber-Receiver-Sender-tf4958588s12049.html#a14201045
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to