Re: [Quickfix-users] Dynamic loading of cfg files
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-06-10 04:19:40
|
Shamanth, We're you planning on managing all of your sessions within one or=20 multiple SocketInitiator objects? You can't dynamically add sessions=20 to a SocketInitiator object, but you can certainly create as many of=20 these objects as you need. And as Scott pointed out, you can construct=20= the settings with a StringBuffer. Can you also elaborate in what ways=20= you want to change an active session? Probably the only way to do this=20= right now would be to destroy the SocketInitiator and create a new one=20= in it's place with the same session but different settings. We may=20 need to do something that will clean up the resources, because I=20 believe some of them may be locked until the initiator gets garbage=20 collected. This should be easy enough to address. --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=20= > providers dynamically. Or I would like to change the port for a given=20= > provider. We are going to do this using an MBean. Basically we will=20 > have an MBean which will read the SESSION and DEFAULT properties from=20= > a custom property file. > > Problem: > We want to create a new SocketInitiator for each provider. Since a=20 > SocketInitiator expects a SessionSettings object we would ideally like=20= > to create a new SessionSettings object dynamically. But as the=20 > constructors of a SessionSettings object expects a inputstream, I=20 > don't see how we could do this. > > I would like a empty default constructor for SessionSettings and then=20= > we use the set methods to set any perticular property. Do you have any=20= > 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 > > > > =A0 NOTICE > > This e-mail message and any attachments, which may contain=20 > confidential information, are to be viewed solely by the intended=20 > recipient of Integral Development Corp.=A0 If the reader of this = message=20 > is not the intended recipient, you are hereby notified that any use,=20= > dissemination, distribution or copying of this communication is=20 > strictly prohibited.=A0 If you have received this message in error,=20 > please immediately notify the sender and delete the mail and all=20 > attachments. |