Re: [Quickfix-users] Dynamic loading of cfg files
Brought to you by:
orenmnero
From: Scott H. <sco...@fo...> - 2004-06-10 13:54:36
|
I'm not using JBoss, but if you are trying to have native code (System.loadLibrary()) coexist peacably between multiple classloaders with different lifecycles in the same JVM then you're in for quite an adventure which I suspect will prove futile. Though maybe not with Java 1.5. I did patch my QuickFIX to work under Java WebStart though, which involved adding a setClassLoader() method to the interface and bypassing the usual JNI FindClass() call in order to get at the WebStart JNLP resources (quickfix.jar) from the C++ threads. I'll be happy to post this patch and share my advice on this list if anyone needs help deploying QF under WebStart. However my next week is somewhat busy since I'll be at MFA in NY (www.mfainfo.org). Anyone else going there as exhibitor or attendee? On Thu, 10 Jun 2004, [ISO-8859-1] "J=FCrgen Jetmar" wrote: > 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 the= se > > > 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 ri= ght > > > now would be to destroy the SocketInitiator and create a new one in i= t'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 integrat= e > > the QuickFIX engine into JBoss, probably using detached invoker for > > different transport levels and forwarding the application level message= s > > 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 th= e > > JBoss framework? > > > > Cheers, J=F6rg > > > > > > > > --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 t= he > > > 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 yo= u > > > 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 th= at > > > 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=FCr alle DSL-Einsteiger und Wechsler +++ > GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl > |