RE: [Quickfix-users] Dynamic loading of cfg files
Brought to you by:
orenmnero
From: Shamanth <sha...@in...> - 2004-06-10 13:48:44
|
Hi jurgen First we are not using JBoss. But we need to make quickFix read the = configuration information from a MBean.=20 The idea is to have seperate quickfix SocketInitiators for each = provider. And instead of connecting to each provider during the startup = of our application, we connect to a given provider only when the admin = or user wishes to get rates from that perticular provider. We thought we can use an MBean to get all the quickfix configuration = values and then our application code will extract these information = selectively from the MBean and creates a new SocketInitiator depending = on which provider it is for. Please let me know if you did something similar to this and any pointers = to solve this problem. thanks R Shamanth -----Original Message----- From: "J=FCrgen Jetmar" [mailto:je...@gm...] Sent: Thursday, June 10, 2004 6:53 PM To: Joerg Thoennes Cc: or...@qu...; Shamanth; qui...@li...; sco...@fo... Subject: Re: [Quickfix-users] Dynamic loading of cfg files 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,=20 Juergen jetmar > > We're you planning on managing all of your sessions within one or=20 > > multiple SocketInitiator objects? You can't dynamically add sessions = to=20 > > a SocketInitiator object, but you can certainly create as many of = these=20 > > objects as you need. And as Scott pointed out, you can construct the = > > settings with a StringBuffer. >=20 > So we did it within our java processes. >=20 > > Can you also elaborate in what ways you=20 > > 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=20 > > something that will clean up the resources, because I believe some = of=20 > > them may be locked until the initiator gets garbage collected. This=20 > > should be easy enough to address. >=20 > Oren, we are talking here about some prerequisites of an JBoss=20 > integration (I conclude that from the term MBean -- Am I right,=20 > Shamanth?) This is quite on top of my wish (and todo) list: To = integrate=20 > the QuickFIX engine into JBoss, probably using detached invoker for=20 > different transport levels and forwarding the application level = messages=20 > to JMS queues or Message Driven Beans. >=20 > So far I did not try to run QuickFIX as a JBoss, but other in this = list=20 > probably did it (and had success). JNI and C++ shared libs could be a=20 > problem here. There is only one instance of the quickfix shared libs=20 > used from several places inside the JBoss JVM. The shared libs are=20 > unloaded as early as the java classloader which loaded them is garbage = > collected. So it is important to cleanup carefully, esp. the threading = > stuff. >=20 > 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=20 > underlying JNI implementation. Do you think this is feasible? >=20 > Shamanth, Scott and others: Are you using QuickFIX inside JBoss? Which = > versions? How are your experiences and how did you integrate QF into = the=20 > JBoss framework? >=20 > Cheers, J=F6rg >=20 > >=20 > > --oren > >=20 > > On Jun 9, 2004, at 11:31 AM, Shamanth wrote: > >=20 > >=20 > >=20 > > Hi > >=20 > > 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. > >=20 > > 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. > >=20 > > 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. > >=20 > > Or is there an alternate way of acheiving the same result. > >=20 > > I am using Java version of quickFix. > >=20 > > thanks > > R Shamanth > >=20 > >=20 > >=20 > > * NOTICE* > >=20 > > 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. > >=20 > >=20 > >=20 >=20 >=20 > --=20 > 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 >=20 >=20 > ------------------------------------------------------- > 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 >=20 --=20 +++ Jetzt WLAN-Router f=FCr alle DSL-Einsteiger und Wechsler +++ GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl |