XMPP

5 messages Options
Embed this post
Permalink
robparrott

XMPP

Reply Threaded More More options
Print post
Permalink
Hi Folks,

I've tried adding an XMPP listener to the embedded broker with limited
success. I added the class files, and then  added the line

 <transportConnector name="xmpp" uri="xmpp://localhost:61222"/>

to the transports.

This results in the XMPP transport being started, but it isn't
responsive. On telnetting to the the port, I don't get a response
(unlinke the example from the ActiveMQ site, which immediately writes
some XML on telnetting.)

So is there some extra Spring related config that needs to be enabled?
Also, how would I add the requirement of the activemq-xmpp jar file to
the maven configs?

My goal is an intermediate stage alert mechanism for order executions et.al.

thanks,
rob
_______________________________________________
m-etc-users mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users
toli

Re: XMPP

Reply Threaded More More options
Print post
Permalink
Robert,

I've added the activemq-xmpp jar to the repo, so you should be able to
add this to platform/oms/pom.xml file in order to let maven know where
to get it. Put it in the dependencies section:
            <dependency>
                <groupId>incubator</groupId>
                <artifactId>activemq-xmpp</artifactId>
                <version>4.1.0</version>
            </dependency>

I haven't played with XMPP at all yet, so i'm not sure if you need to
add anything else to the broker.xml file in order to set it up. I
don't think you do, but i'll play with it some on Monday to see what
else needs to be done.

let me know if you are not able to pull the actimveq-xmpp jar down.

On 2/4/07, Robert Parrott <[hidden email]> wrote:

> Hi Folks,
>
> I've tried adding an XMPP listener to the embedded broker with limited
> success. I added the class files, and then  added the line
>
>  <transportConnector name="xmpp" uri="xmpp://localhost:61222"/>
>
> to the transports.
>
> This results in the XMPP transport being started, but it isn't
> responsive. On telnetting to the the port, I don't get a response
> (unlinke the example from the ActiveMQ site, which immediately writes
> some XML on telnetting.)
>
> So is there some extra Spring related config that needs to be enabled?
> Also, how would I add the requirement of the activemq-xmpp jar file to
> the maven configs?
>
> My goal is an intermediate stage alert mechanism for order executions et.al.
>
> thanks,
> rob
> _______________________________________________
> m-etc-users mailing list
> [hidden email]
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users
>


--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
m-etc-users mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users
robparrott

Re: XMPP

Reply Threaded More More options
Print post
Permalink
I've added and run with the library, but simply adding the transport
still doesn't seems to work.

How would one increase the verbosity of logging in the OMS?

For reference, I;m using the transport stanza

    <transportConnectors>
      <transportConnector name="openwire" uri="tcp://localhost:61616"/>
      <transportConnector name="xmpp" uri="xmpp://localhost:61222"/>
    </transportConnectors>

cheers,
rob


On 2/4/07, Toli Kuznets <[hidden email]> wrote:

> Robert,
>
> I've added the activemq-xmpp jar to the repo, so you should be able to
> add this to platform/oms/pom.xml file in order to let maven know where
> to get it. Put it in the dependencies section:
>             <dependency>
>                 <groupId>incubator</groupId>
>                 <artifactId>activemq-xmpp</artifactId>
>                 <version>4.1.0</version>
>             </dependency>
>
> I haven't played with XMPP at all yet, so i'm not sure if you need to
> add anything else to the broker.xml file in order to set it up. I
> don't think you do, but i'll play with it some on Monday to see what
> else needs to be done.
>
> let me know if you are not able to pull the actimveq-xmpp jar down.
>
> On 2/4/07, Robert Parrott <[hidden email]> wrote:
> > Hi Folks,
> >
> > I've tried adding an XMPP listener to the embedded broker with limited
> > success. I added the class files, and then  added the line
> >
> >  <transportConnector name="xmpp" uri="xmpp://localhost:61222"/>
> >
> > to the transports.
> >
> > This results in the XMPP transport being started, but it isn't
> > responsive. On telnetting to the the port, I don't get a response
> > (unlinke the example from the ActiveMQ site, which immediately writes
> > some XML on telnetting.)
> >
> > So is there some extra Spring related config that needs to be enabled?
> > Also, how would I add the requirement of the activemq-xmpp jar file to
> > the maven configs?
> >
> > My goal is an intermediate stage alert mechanism for order executions et.al.
> >
> > thanks,
> > rob
> > _______________________________________________
> > m-etc-users mailing list
> > [hidden email]
> > http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users
> >
>
>
> --
> Toli Kuznets
> http://www.marketcetera.com: Open-Source Trading Platform
> download.run.trade.
>
_______________________________________________
m-etc-users mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users
toli

Re: XMPP

Reply Threaded More More options
Print post
Permalink
Robert,

You can modify the conf/log4j.properties file to increase the verbosity.
It's set to "error", but you can modify line 18 to increase it.
If you are running this from code, then you can modify the
log4j.properties file in core/src/main/resources, do a "mvn install"
on the core library to update your local maven repository to have the
new version of core library.

I added the transport line to the broker.xml file and added the
activemq-xmpp jar to the appliance OMS and it starts up and i can
telnet on the 61222 port.

How does one test XMPP? i'll look into that tomorrow.

Also, are you doing tnis in code or on appliance? If you are doing
this in code and run the OMS with "mvn exec:java", keep in mind that
the modified config files don't get used nless you do
"mvn resources:resources exec:java".




On 2/4/07, Robert Parrott <[hidden email]> wrote:

> I've added and run with the library, but simply adding the transport
> still doesn't seems to work.
>
> How would one increase the verbosity of logging in the OMS?
>
> For reference, I;m using the transport stanza
>
>     <transportConnectors>
>       <transportConnector name="openwire" uri="tcp://localhost:61616"/>
>       <transportConnector name="xmpp" uri="xmpp://localhost:61222"/>
>     </transportConnectors>
>
> cheers,
> rob
>
>
> On 2/4/07, Toli Kuznets <[hidden email]> wrote:
> > Robert,
> >
> > I've added the activemq-xmpp jar to the repo, so you should be able to
> > add this to platform/oms/pom.xml file in order to let maven know where
> > to get it. Put it in the dependencies section:
> >             <dependency>
> >                 <groupId>incubator</groupId>
> >                 <artifactId>activemq-xmpp</artifactId>
> >                 <version>4.1.0</version>
> >             </dependency>
> >
> > I haven't played with XMPP at all yet, so i'm not sure if you need to
> > add anything else to the broker.xml file in order to set it up. I
> > don't think you do, but i'll play with it some on Monday to see what
> > else needs to be done.
> >
> > let me know if you are not able to pull the actimveq-xmpp jar down.
> >
> > On 2/4/07, Robert Parrott <[hidden email]> wrote:
> > > Hi Folks,
> > >
> > > I've tried adding an XMPP listener to the embedded broker with limited
> > > success. I added the class files, and then  added the line
> > >
> > >  <transportConnector name="xmpp" uri="xmpp://localhost:61222"/>
> > >
> > > to the transports.
> > >
> > > This results in the XMPP transport being started, but it isn't
> > > responsive. On telnetting to the the port, I don't get a response
> > > (unlinke the example from the ActiveMQ site, which immediately writes
> > > some XML on telnetting.)
> > >
> > > So is there some extra Spring related config that needs to be enabled?
> > > Also, how would I add the requirement of the activemq-xmpp jar file to
> > > the maven configs?
> > >
> > > My goal is an intermediate stage alert mechanism for order executions et.al.
> > >
> > > thanks,
> > > rob
> > > _______________________________________________
> > > m-etc-users mailing list
> > > [hidden email]
> > > http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users
> > >
> >
> >
> > --
> > Toli Kuznets
> > http://www.marketcetera.com: Open-Source Trading Platform
> > download.run.trade.
> >
>


--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
m-etc-users mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users
toli

Re: XMPP

Reply Threaded More More options
Print post
Permalink
Rob,

I think i finally got XMPP to work.
After adding the following line to the log4j.properties file:
log4j.logger.org.apache.activemq.transport=debug

i was able to see a bunch of ClassNotFoundExceptions in the logs.
After adding the following entries to the runOMS.sh file i was able to
get the appliance to work with XMPP:
:lib/jaxb-api-2.0.jar\
:lib/jaxb-impl-2.0.2.jar\
:lib/activation.jar\
:lib/stax-1.1.1-dev.jar\
:lib/jsr173_api-1.0.jar\
:lib/activemq-xmpp-4.1.0-incubator.jar\

Actually, i think the first line (jaxb-api-2.0) is optional, as that
is also included in stax-1.1.1.jar

If you need to add these to the OMS pom.xml file, here are the
group/artifactID repository locations for them:
stax/stax/1.1.1-dev/stax-1.1.1-dev.jar
javax/xml/jaxb-api/2.0/jaxb-api-2.0.jar
com/sun/xml/bind/jaxb-impl/2.0.2/jaxb-impl-2.0.2.jar
javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar

the activation.jar i just copied manually, i think you can get it from
javax/activation/activation/1.1/activation-1.1.jar

After adding these libs to the classpath, i was able to telnet to the
XMPP port and get some XML spit out back at me.

I'm attaching my runOMS.sh file as well for you reference.
Let me know if you have any issues getting this to work.

> On 2/4/07, Robert Parrott <[hidden email]> wrote:
> > I've added and run with the library, but simply adding the transport
> > still doesn't seems to work.
> >
> > How would one increase the verbosity of logging in the OMS?
> >
> > For reference, I;m using the transport stanza
> >
> >     <transportConnectors>
> >       <transportConnector name="openwire" uri="tcp://localhost:61616"/>
> >       <transportConnector name="xmpp" uri="xmpp://localhost:61222"/>
> >     </transportConnectors>
> >
> > cheers,
> > rob
> >
--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.


_______________________________________________
m-etc-users mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users

runOMS.sh (1K) Download Attachment