|
|
|
mjhittes
|
Has anyone successfully deployed the Marketcetera OMS component to JBoss
as part of an EAR? I'd also like to know if it is feasible to swap out ActiveMQ for JBoss Messaging? The last thing we'd like to do is register the OMS with JBoss's MBean server rather than the platform (Java/Sun) MBean server. Is this configurable? Thanks! Mick Sky Road LLC Email Disclaimer This message and any attachment transmitted with it (collectively, this “Email”) may contain confidential or privileged information. It is for the sole use of the intended recipient(s). Any unauthorized review, use or disclosure is prohibited. If you are not the intended recipient, please advise the sender by reply email and destroy all copies of this Email. The information in this Email is not intended to replace a recipient’s own internal processes for evaluating a transaction. This Email should not be regarded as (i) a recommendation to buy or refrain from buying any security; (ii) an offer to sell or solicitation of an offer to buy any security; or (iii) an official confirmation of any transaction. Sky Road cannot guarantee that the transmission and content of this Email is secure or error-free. Sky Road does not represent that this Email is accurate, uncorrupted, or free of viruses or other harmful code. _______________________________________________ m-etc-users mailing list [hidden email] http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users |
||||||||||||||||
|
gm-mrktc
|
So we actually abstract away the details of the underlying JMS implementation by having our code rely on Spring functionality, rather than directly on ActiveMQ. Then in our spring configuration file (oms.xml), for example, we have something like this:
<bean id="requestQueue" class="org.apache.activemq.command.ActiveMQQueue"> <constructor-arg value="oms-commands"/> </bean> ... to create a connection to a queue. The other way in which we use ActiveMQ is that we actually embed a broker into the OMS itself, in order to eliminate 1 network hop in the data path. But again this is done through Spring configuration. That being said, I don't know of anyone who is using JBoss as the messaging infrastructure. The MBean server issue is less rosy. This is hard-coded in places like this: http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/oms/src/main/java/org/marketcetera/oms/OrderManagementSystem.java (look at the main() method). I actually would appreciate input on how to improve it, for example, by allowing registration with other MBean servers. Thanks. graham On 1/23/08, Mick Hittesdorf <[hidden email]> wrote:
Has anyone successfully deployed the Marketcetera OMS component to JBoss -- Marketcetera Trading Platform download.run.trade. www.marketcetera.org _______________________________________________ m-etc-users mailing list [hidden email] http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users |
||||||||||||||||
|
Stephen Bate
|
Some javascript/style in this post has been disabled (why?)
Hi Graham and Mick,
If you move most of the main() functionality into a method
(like "run()", for example), you could support injection
of the MBeanServer into OrderManagementSystem. The new main
might then look something like
public static void main(String args[])
{
new
OrderManagementSystem(ManagementFactory.getPlatformMBeanServer()).run();
}
In a JBoss context I assume you aren't using the main()
method so you'd inject the MBeanServer into
OrderManagementSystem and use Spring's lifecycle events to
start it. I don't know much about the
specifics of JBoss, but from what I've seen you'd be able
to use...
org.jboss.mx.util.MBeanServerLocator.locateJBoss()
to get the MBeanServer to inject.
Steve
_______________________________________________ m-etc-users mailing list [hidden email] http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users |
||||||||||||||||
|
toli
|
Steve,
That's a great suggestion. We've filed it as an RFE (http://trac.marketcetera.org/trac.fcgi/ticket/490 ) and will have it implemented. thanks. On 2/10/08, Steve Bate <[hidden email]> wrote: > > > Hi Graham and Mick, > > If you move most of the main() functionality into a method (like "run()", > for example), you could support injection > of the MBeanServer into OrderManagementSystem. The new main might then look > something like > > public static void main(String args[]) { > new > OrderManagementSystem(ManagementFactory.getPlatformMBeanServer()).run(); > } > > In a JBoss context I assume you aren't using the main() method so you'd > inject the MBeanServer into > OrderManagementSystem and use Spring's lifecycle events to start it. I don't > know much about the > specifics of JBoss, but from what I've seen you'd be able to use... > > org.jboss.mx.util.MBeanServerLocator.locateJBoss() > > to get the MBeanServer to inject. > > http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanIGetAReferenceToTheMBeanServer > > Steve > > > ________________________________ > From: [hidden email] > [mailto:[hidden email]] On > Behalf Of Graham Miller > Sent: Wednesday, January 23, 2008 6:42 PM > To: Mick Hittesdorf > Cc: [hidden email] > Subject: Re: [m-etc-users] anyone running oms in JBoss w/JBoss Messaging? > > > So we actually abstract away the details of the underlying JMS > implementation by having our code rely on Spring functionality, rather than > directly on ActiveMQ. Then in our spring configuration file (oms.xml), for > example, we have something like this: > > <bean id="requestQueue" > class="org.apache.activemq.command.ActiveMQQueue"> > <constructor-arg value="oms-commands"/> > </bean> > > ... to create a connection to a queue. The other way in which we use > ActiveMQ is that we actually embed a broker into the OMS itself, in order to > eliminate 1 network hop in the data path. But again this is done through > Spring configuration. That being said, I don't know of anyone who is using > JBoss as the messaging infrastructure. > > The MBean server issue is less rosy. This is hard-coded in places like > this: > > http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/oms/src/main/java/org/marketcetera/oms/OrderManagementSystem.java > > (look at the main() method). I actually would appreciate input on how to > improve it, for example, by allowing registration with other MBean servers. > > Thanks. > > graham > > > > > On 1/23/08, Mick Hittesdorf <[hidden email]> wrote: > > Has anyone successfully deployed the Marketcetera OMS component to JBoss > > as part of an EAR? I'd also like to know if it is feasible to swap out > > ActiveMQ for JBoss Messaging? The last thing we'd like to do is register > > the OMS with JBoss's MBean server rather than the platform (Java/Sun) > > MBean server. Is this configurable? > > > > Thanks! Mick > > > > Sky Road LLC Email Disclaimer > > > > This message and any attachment transmitted with it (collectively, this > "Email") may contain confidential or privileged information. It is for the > sole use of the intended recipient(s). Any unauthorized review, use or > disclosure is prohibited. If you are not the intended recipient, please > advise the sender by reply email and destroy all copies of this Email. The > information in this Email is not intended to replace a recipient's own > internal processes for evaluating a transaction. This Email should not be > regarded as (i) a recommendation to buy or refrain from buying any security; > (ii) an offer to sell or solicitation of an offer to buy any security; or > (iii) an official confirmation of any transaction. Sky Road cannot > guarantee that the transmission and content of this Email is secure or > error-free. Sky Road does not represent that this Email is accurate, > uncorrupted, or free of viruses or other harmful code. > > _______________________________________________ > > m-etc-users mailing list > > [hidden email] > > > http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users > > > > > > -- > Marketcetera Trading Platform > download.run.trade. > www.marketcetera.org > _______________________________________________ > 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 |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |