Re: [Quickfix-users] Dynamic loading of cfg files
Brought to you by:
orenmnero
From: <je...@gm...> - 2004-06-10 13:23:17
|
Hello, i'm using JBOSS with QF as ORS (Order Routing System) currently over two years. Yes, the intergration was not easy (JMX, MBean, JCA, JNI, ..) but i found a way how to bring it to fly. If somebody needs some help, let me know.. cheers, Juergen jetmar > > We're you planning on managing all of your sessions within one or > > multiple SocketInitiator objects? You can't dynamically add sessions to > > a SocketInitiator object, but you can certainly create as many of these > > objects as you need. And as Scott pointed out, you can construct the > > settings with a StringBuffer. > > So we did it within our java processes. > > > Can you also elaborate in what ways you > > want to change an active session? Probably the only way to do this right > > now would be to destroy the SocketInitiator and create a new one in it's > > place with the same session but different settings. We may need to do > > something that will clean up the resources, because I believe some of > > them may be locked until the initiator gets garbage collected. This > > should be easy enough to address. > > Oren, we are talking here about some prerequisites of an JBoss > integration (I conclude that from the term MBean -- Am I right, > Shamanth?) This is quite on top of my wish (and todo) list: To integrate > the QuickFIX engine into JBoss, probably using detached invoker for > different transport levels and forwarding the application level messages > to JMS queues or Message Driven Beans. > > So far I did not try to run QuickFIX as a JBoss, but other in this list > probably did it (and had success). JNI and C++ shared libs could be a > problem here. There is only one instance of the quickfix shared libs > used from several places inside the JBoss JVM. The shared libs are > unloaded as early as the java classloader which loaded them is garbage > collected. So it is important to cleanup carefully, esp. the threading > stuff. > > In addition, it would be useful to decouple the java Message and Field > classes from the underlying JNI layer. So the Java FIX object could be > serialized and sent (e.g. using JMS) to remote instances with an > underlying JNI implementation. Do you think this is feasible? > > Shamanth, Scott and others: Are you using QuickFIX inside JBoss? Which > versions? How are your experiences and how did you integrate QF into the > JBoss framework? > > Cheers, Jörg > > > > > --oren > > > > On Jun 9, 2004, at 11:31 AM, Shamanth wrote: > > > > > > > > Hi > > > > I have a requirement, where we want to change or add new sessions or > > providers dynamically. Or I would like to change the port for a > > given provider. We are going to do this using an MBean. Basically we > > will have an MBean which will read the SESSION and DEFAULT > > properties from a custom property file. > > > > Problem: > > We want to create a new SocketInitiator for each provider. Since a > > SocketInitiator expects a SessionSettings object we would ideally > > like to create a new SessionSettings object dynamically. But as the > > constructors of a SessionSettings object expects a inputstream, I > > don't see how we could do this. > > > > I would like a empty default constructor for SessionSettings and > > then we use the set methods to set any perticular property. Do you > > have any plans to incorporate this in your future releases. > > > > Or is there an alternate way of acheiving the same result. > > > > I am using Java version of quickFix. > > > > thanks > > R Shamanth > > > > > > > > * NOTICE* > > > > This e-mail message and any attachments, which may contain > > confidential information, are to be viewed solely by the intended > > recipient of Integral Development Corp. If the reader of this > > message is not the intended recipient, you are hereby notified that > > any use, dissemination, distribution or copying of this > > communication is strictly prohibited. If you have received this > > message in error, please immediately notify the sender and delete > > the mail and all attachments. > > > > > > > > > -- > Joerg Thoennes > http://macd.com > Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH > Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen > > > ------------------------------------------------------- > This SF.Net email is sponsored by: GNOME Foundation > Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. > GNOME Users and Developers European Conference, 28-30th June in Norway > http://2004/guadec.org > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > -- +++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++ GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl |