RE: [Quickfix-developers] RE: I have a question about QF-J
Brought to you by:
orenmnero
|
From: Steve B. <st...@te...> - 2005-06-28 21:25:38
|
I'll look into some better error messages for the session configuration. For the initial release of QFJ we are being careful to maintain API upward compatibility with the JNI version. However, we may be able to implement your suggestion by only adding to the existing API, which doesn't break compatibility. Steve > -----Original Message----- > From: qui...@li... [mailto:quickfix- > dev...@li...] On Behalf Of VP Marketing IT Asset > Enterprise Technologies > Sent: Tuesday, June 28, 2005 12:35 PM > To: Steve Bate > Cc: qui...@li... > Subject: Re: [Quickfix-developers] RE: I have a question about QF-J > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > I switched to an executor in the LAN and it worked fine. You are correct > the trouble earlier was with the settings file... > > The file is there. But there is only one session and that is with an > external > party and it could be failing for a number of reasons. > > The error (console) output did not indicate that. It misdirects to an > initiator not > being there. > > We can talk about how to structure a generic Error control and > communication > exception hierarchy. > > Consider the following three classes: > > class QuickfixJErrorList > { > final String error_string[] = > { > "ILLEGAL ARGUMENT/INTERNAL ERROR", > "CONFIG FILE NOT READABLE", > "CONFIG NOT ACCORDING TO SPECIFICATION", // somethign simpler may be > "SESSION COULD NOT BE INITIALIZED", > > }; > final int base_error=1300; > final int error_no[] = {1300,1301,1302, 1303} ; // this coudl be > base_error, base_error+1, etc > > static public String getErrorMessage(int code) { > return > error_string[(code>base_error&&(code<(base_error+error_no.length)))?code:0 > ); > } > static public String getErrorMessage(String code){ > try { > return getErrorMessage(Integer.parseInt(code.trim())); > } catch(Exception e) { } > return getErrorMessage(0); > } > } > class QuickfixException extends Exception > { > QuickfixException (String msgCode) > { > super(QuickfixJErrorList.getErrorMessage(msg); > } > } > > And we can implement the JErrorList in XML and load the DOM > or put it on HSQLDB or some such thing and manage it from anywhere. > instead of being static class... > > I am hacking as I am writing this email.. the idea may be clearer... > I can do this..if you send me a specification what you want. > -- > rk > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id 492&op=ick > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |