I am trying to send a message out using a xmpp service unit.  The su is
successfully logging into the jabber server according to the console output. 
How do I send a message to it?  When I look on jconsole I see that there is
a send() operation with 3 message parts, but what goes in these parts? 
I tried putting a username in part1, a random port in part2 and the message
in part3, but I got an exception saying:

problem invoking send: java.rmi.UnmarshallException: Error unmarshalling
return: nested exception is Java.lang.ClassNotFoundException
javax.jbi.messaging.MessagingException (no security manager: RMI classloader
disabled)

Where are these messages defined?
    Thanks you for your help


depstei2 wrote:
> 
> Ah, That works, the xmpp service unit deploys ok now and I can see it in
> jconsole.  Now the problem is how do I send a message to that xmpp
> service?  Is there a wsdl that gets published? I am trying to use a http
> binding component to expose the xmpp service.
> 
> 
> 
> gnodet wrote:
>> 
>> You need to just include:
>>    <beans>
>>      <xmpp:endpoint ... />
>>   </beans>
>> 
>> The <xmpp:component> is used when not using a Service Unit.
>> 
>> On 10/5/07, depstei2 <[EMAIL PROTECTED]> wrote:
>>>
>>> Thanks for the links!  I am trying to get this running in a service
>>> assembly,
>>> but I keep getting the error that "No endpoints were found" for my xmpp
>>> service unit. This is the xbean I am using (copied from the integration
>>> test):
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0";
>>>         xmlns:test="http://student.kuali.org/xmpptest";>
>>>         <xmpp:component user="[EMAIL PROTECTED]"
>>>                 password="password">
>>>                 <xmpp:endpoints>
>>>                         <xmpp:privateChatEndpoint service="test:service"
>>>                                 endpoint="endpoint"
>>>                                 uri="xmpp://host/[EMAIL PROTECTED]" />
>>>                 </xmpp:endpoints>
>>>         </xmpp:component>
>>> </beans>
>>>
>>>
>>>
>>> gnodet wrote:
>>> >
>>> > The unit tests comes with the source tree:
>>> >
>>> >
>>> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-xmpp/src/test/
>>> >
>>> > Take a look at
>>> >    http://incubator.apache.org/servicemix/source.html
>>> > and
>>> >    http://incubator.apache.org/servicemix/building.html
>>> >
>>> > On 10/5/07, depstei2 <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >> I am trying to create a very simple example where a call to a web
>>> service
>>> >> will then cause an IM to be sent out.
>>> >> I am having trouble finding any examples of how to set up an xmpp
>>> >> endpoint.
>>> >> The documentation says:
>>> >>
>>> >> XMPP Integration Testing
>>> >> To run the integration tests of ServiceMix XMPP you will need to do
>>> the
>>> >> following
>>> >>     * install Wildfire
>>> >>     * create the following users (user/pwd)
>>> >>           o servicemix-user / servicemix-pwd
>>> >>           o test-user / test-pwd
>>> >> You should now be able to run the unit tests
>>> >>
>>> >> But where are the unit tests?
>>> >> Could someone please post an example of using the xmpp component in
>>> >> servicemix to create a service unit?
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/XMPP-Servicemix-Example-tf4576074s12049.html#a13062035
>>> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > Cheers,
>>> > Guillaume Nodet
>>> > ------------------------
>>> > Blog: http://gnodet.blogspot.com/
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/XMPP-Servicemix-Example-tf4576074s12049.html#a13064537
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
>> -- 
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/XMPP-Servicemix-Example-tf4576074s12049.html#a13098420
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to