|
From: Alex M. <ale...@eu...> - 2006-08-29 10:19:10
|
Hi Steve,
Thanks for the reply. My client has now made a change to the data
dictionary such that I can see his message in my fromApp callback method
and I am required to reply to this message with another new message
type. I am using the following code to create this message, however, it
is not being received:
quickfix.fix42.Message message =3D new quickfix.fix42.Message();
message.setField(new MsgType("U2"));
message.setString(7532, applicationID);
message.setUtcTimeStamp(60, new Date());
try {
Session.sendToTarget(message, session);
} catch (SessionNotFound ex) {
System.out.println("Alex debug: exception =3D " + =
ex.getMessage());
ex.printStackTrace();
}
Any ideas?
Alex
-----Original Message-----
From: qui...@li...
[mailto:qui...@li...] On Behalf Of
Steve Bate
Sent: 25 August 2006 16:23
To: qui...@li...
Subject: Re: [Quickfixj-users] Adding messages to data dictionary
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/
Eurobase International Limited and its subsidiaries (Eurobase) are =
unable to exercise control over the content of information in E-Mails. =
Any views and opinions expressed may be personal to the sender and are =
not necessarily those of Eurobase. Eurobase will not enter into any =
contractual obligations in respect of any part of its business in any =
E-mail.=20
Privileged / confidential information may be contained in this message =
and /or any attachments. This E-mail is intended for the use of the =
addressee(s) only and may contain confidential information. If you are =
not the / an intended recipient, you are hereby notified that any use or =
dissemination of this communication is strictly prohibited. If you =
receive this transmission in error, please notify us immediately, and =
then delete this E-mail.=20
Neither the sender nor Eurobase accepts any liability whatsoever for any =
defects of any kind either in or arising from this E-mail transmission. =
E-Mail transmission cannot be guaranteed to be secure or error-free, as =
messages can be intercepted, lost, corrupted, destroyed, contain =
viruses, or arrive late or incomplete. Eurobase does not accept any =
responsibility for viruses and it is your responsibility to scan any =
attachments.
Registered Address: Essex House, 2 County Place, Chelmsford, Essex CM2 =
0RE, United Kingdom
|
|
From: Alex M. <ale...@eu...> - 2006-08-29 12:10:15
|
I've just spotted my error - I should be setting MsgType in the header. Apologies if anyone has looked at this. -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Alex McGlashan Sent: 29 August 2006 11:18 To: qui...@li... Subject: Re: [Quickfixj-users] Adding messages to data dictionary QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Steve, Thanks for the reply. My client has now made a change to the data dictionary such that I can see his message in my fromApp callback method and I am required to reply to this message with another new message type. I am using the following code to create this message, however, it is not being received: quickfix.fix42.Message message =3D new quickfix.fix42.Message(); message.setField(new MsgType("U2")); message.setString(7532, applicationID); message.setUtcTimeStamp(60, new Date()); try { Session.sendToTarget(message, session); } catch (SessionNotFound ex) { System.out.println("Alex debug: exception =3D " + = ex.getMessage()); ex.printStackTrace(); } Any ideas? Alex -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Steve Bate Sent: 25 August 2006 16:23 To: qui...@li... Subject: Re: [Quickfixj-users] Adding messages to data dictionary QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail.=20 Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail.=20 Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Registered Address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, United Kingdom ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Quickfixj-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfixj-users |
|
From: Alex M. <ale...@eu...> - 2006-08-29 13:41:56
|
Hi Steve, The new message was added to the data dictionary using Notepad. There were no dictionary-related messages in the log. Is there anything I can do to get some diagnostics? Regards, Alex -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Steve Bate Sent: 25 August 2006 16:23 To: qui...@li... Subject: Re: [Quickfixj-users] Adding messages to data dictionary QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Eurobase International Limited and its subsidiaries (Eurobase) are = unable to exercise control over the content of information in E-Mails. = Any views and opinions expressed may be personal to the sender and are = not necessarily those of Eurobase. Eurobase will not enter into any = contractual obligations in respect of any part of its business in any = E-mail.=20 Privileged / confidential information may be contained in this message = and /or any attachments. This E-mail is intended for the use of the = addressee(s) only and may contain confidential information. If you are = not the / an intended recipient, you are hereby notified that any use or = dissemination of this communication is strictly prohibited. If you = receive this transmission in error, please notify us immediately, and = then delete this E-mail.=20 Neither the sender nor Eurobase accepts any liability whatsoever for any = defects of any kind either in or arising from this E-mail transmission. = E-Mail transmission cannot be guaranteed to be secure or error-free, as = messages can be intercepted, lost, corrupted, destroyed, contain = viruses, or arrive late or incomplete. Eurobase does not accept any = responsibility for viruses and it is your responsibility to scan any = attachments. Registered Address: Essex House, 2 County Place, Chelmsford, Essex CM2 = 0RE, United Kingdom |
|
From: Steve B. <st...@te...> - 2006-08-29 14:49:30
|
Hi Alex, Are these postings out of order or are you still having problems after setting the MsgType in the message header? Steve |
|
From: Alex M. <ale...@eu...> - 2006-08-29 15:02:25
|
Hi Steve, Sorry for the confusion - I had temporarily resolved the problem by hard-coding a check for the new message type in my fromApp method but have now reverted to calling the MessageCracker as recommended and am now getting the original problem again. To recap: my QuickFIX is sending a BusinessMessageReject message (type=3D"j", reason=3DUnsupported Message Type) on receipt of the new message type. I have tried to add the new message type to my FIX42.xml file to no avail. Is there any way of specifying the new message type to QuickFIX such that I can then code an onMessage method for it? Thanks again for your help! Alex =20 -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Steve Bate Sent: 29 August 2006 15:51 To: qui...@li... Subject: Re: [Quickfixj-users] Adding messages to data dictionary QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Alex, Are these postings out of order or are you still having problems after setting the MsgType in the message header? Steve=20 ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Quickfixj-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfixj-users Eurobase International Limited and its subsidiaries (Eurobase) are = unable to exercise control over the content of information in E-Mails. = Any views and opinions expressed may be personal to the sender and are = not necessarily those of Eurobase. Eurobase will not enter into any = contractual obligations in respect of any part of its business in any = E-mail.=20 Privileged / confidential information may be contained in this message = and /or any attachments. This E-mail is intended for the use of the = addressee(s) only and may contain confidential information. If you are = not the / an intended recipient, you are hereby notified that any use or = dissemination of this communication is strictly prohibited. If you = receive this transmission in error, please notify us immediately, and = then delete this E-mail.=20 Neither the sender nor Eurobase accepts any liability whatsoever for any = defects of any kind either in or arising from this E-mail transmission. = E-Mail transmission cannot be guaranteed to be secure or error-free, as = messages can be intercepted, lost, corrupted, destroyed, contain = viruses, or arrive late or incomplete. Eurobase does not accept any = responsibility for viruses and it is your responsibility to scan any = attachments. Registered Address: Essex House, 2 County Place, Chelmsford, Essex CM2 = 0RE, United Kingdom |
|
From: Steve B. <st...@te...> - 2006-08-29 18:36:29
|
Hi Alex, Like Toby said, the MessageCracker is intended to be used with generated Message subtypes. However, in your application class you could override the public void onMessage( quickfix.Message message, SessionID sessionID ) method defined from the message cracker to process your custom message instead of it throwing the UnsupportedMessageType. I haven't tried this myself, but it looks like it should work. This method would be called for any unknown message types. Please let us know if you try this solution and it works. Thanks, Steve > -----Original Message----- > From: qui...@li... > [mailto:qui...@li...] On > Behalf Of Alex McGlashan > Sent: Tuesday, August 29, 2006 5:01 PM > To: qui...@li... > Subject: Re: [Quickfixj-users] Adding messages to data dictionary > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Steve, > > Sorry for the confusion - I had temporarily resolved the > problem by hard-coding a check for the new message type in my > fromApp method but have now reverted to calling the > MessageCracker as recommended and am now getting the original > problem again. > > To recap: my QuickFIX is sending a BusinessMessageReject > message (type="j", reason=Unsupported Message Type) on > receipt of the new message type. I have tried to add the new > message type to my FIX42.xml file to no avail. > > Is there any way of specifying the new message type to > QuickFIX such that I can then code an onMessage method for it? > > Thanks again for your help! > > Alex > > > -----Original Message----- > From: qui...@li... > [mailto:qui...@li...] On > Behalf Of Steve Bate > Sent: 29 August 2006 15:51 > To: qui...@li... > Subject: Re: [Quickfixj-users] Adding messages to data dictionary > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Alex, > > Are these postings out of order or are you still having > problems after setting the MsgType in the message header? > > Steve > > > -------------------------------------------------------------- > ---------- > - > Using Tomcat but need to do more? Need to support web > services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier Download IBM WebSphere Application Server > v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& > dat=121642 > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > Eurobase International Limited and its subsidiaries > (Eurobase) are unable to exercise control over the content of > information in E-Mails. Any views and opinions expressed may > be personal to the sender and are not necessarily those of > Eurobase. Eurobase will not enter into any contractual > obligations in respect of any part of its business in any E-mail. > > Privileged / confidential information may be contained in > this message and /or any attachments. This E-mail is intended > for the use of the addressee(s) only and may contain > confidential information. If you are not the / an intended > recipient, you are hereby notified that any use or > dissemination of this communication is strictly prohibited. > If you receive this transmission in error, please notify us > immediately, and then delete this E-mail. > > Neither the sender nor Eurobase accepts any liability > whatsoever for any defects of any kind either in or arising > from this E-mail transmission. E-Mail transmission cannot be > guaranteed to be secure or error-free, as messages can be > intercepted, lost, corrupted, destroyed, contain viruses, or > arrive late or incomplete. Eurobase does not accept any > responsibility for viruses and it is your responsibility to > scan any attachments. > > Registered Address: Essex House, 2 County Place, Chelmsford, > Essex CM2 0RE, United Kingdom > > > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web > services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier Download IBM WebSphere Application Server > v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& > dat=121642 > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > |
|
From: Toli K. <to...@ma...> - 2006-08-29 18:49:42
|
Alex,
I've tried Steve's suggestion, and it works for me. Here's the pseudocode:
override the fromApp() or fromAdmin() functions:
public void fromApp(Message message, SessionID sessionId) throws
FieldNotFound,
IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType
{
messageCracker.crack(message, sessionId);
}
the messageCracker is a subclass of MessageCracker where you override
the exact onMessage() functions that you need, or just override the
generic function receiving a plain Message like Steve suggests. Here's
an example:
private class MyMessageCracker extends MessageCracker {
/** Handle the incoming new order */
public void onMessage(NewOrderSingle message, SessionID
sessionID) throws FieldNotFound, UnsupportedMessageType,
IncorrectTagValue {
...... code ....
try {
... more code ....
} catch (Exception e) {
LoggerAdapter.error(MessageKey.ERROR_PROCESSING_ORDER.getLocalizedMessage(),
e, this);
try {
rejectOrder(message, e.getMessage(), sessionID);
} catch (NoMoreIDsException e1) {
LoggerAdapter.error(MessageKey.ERROR_NEXT_ORDERID_GEN.getLocalizedMessage(),
e1, this);
}
}
}
hope this helps.
On 8/29/06, Steve Bate <st...@te...> wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
> Hi Alex,
>
> Like Toby said, the MessageCracker is intended to be used with
> generated Message subtypes. However, in your application class
> you could override the
>
> public void onMessage(
> quickfix.Message message, SessionID sessionID )
>
> method defined from the message cracker to process your
> custom message instead of it throwing the UnsupportedMessageType.
> I haven't tried this myself, but it looks like it should work.
> This method would be called for any unknown message types.
> Please let us know if you try this solution and it works.
>
> Thanks,
>
> Steve
>
> > -----Original Message-----
> > From: qui...@li...
> > [mailto:qui...@li...] On
> > Behalf Of Alex McGlashan
> > Sent: Tuesday, August 29, 2006 5:01 PM
> > To: qui...@li...
> > Subject: Re: [Quickfixj-users] Adding messages to data dictionary
> >
> > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> > QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Steve,
> >
> > Sorry for the confusion - I had temporarily resolved the
> > problem by hard-coding a check for the new message type in my
> > fromApp method but have now reverted to calling the
> > MessageCracker as recommended and am now getting the original
> > problem again.
> >
> > To recap: my QuickFIX is sending a BusinessMessageReject
> > message (type="j", reason=Unsupported Message Type) on
> > receipt of the new message type. I have tried to add the new
> > message type to my FIX42.xml file to no avail.
> >
> > Is there any way of specifying the new message type to
> > QuickFIX such that I can then code an onMessage method for it?
> >
> > Thanks again for your help!
> >
> > Alex
> >
> >
> > -----Original Message-----
> > From: qui...@li...
> > [mailto:qui...@li...] On
> > Behalf Of Steve Bate
> > Sent: 29 August 2006 15:51
> > To: qui...@li...
> > Subject: Re: [Quickfixj-users] Adding messages to data dictionary
> >
> > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> > QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Alex,
> >
> > Are these postings out of order or are you still having
> > problems after setting the MsgType in the message header?
> >
> > Steve
> >
> >
> > --------------------------------------------------------------
> > ----------
> > -
> > Using Tomcat but need to do more? Need to support web
> > services, security?
> > Get stuff done quickly with pre-integrated technology to make
> > your job easier Download IBM WebSphere Application Server
> > v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> > dat=121642
> > _______________________________________________
> > Quickfixj-users mailing list
> > Qui...@li...
> > https://lists.sourceforge.net/lists/listinfo/quickfixj-users
> >
> > Eurobase International Limited and its subsidiaries
> > (Eurobase) are unable to exercise control over the content of
> > information in E-Mails. Any views and opinions expressed may
> > be personal to the sender and are not necessarily those of
> > Eurobase. Eurobase will not enter into any contractual
> > obligations in respect of any part of its business in any E-mail.
> >
> > Privileged / confidential information may be contained in
> > this message and /or any attachments. This E-mail is intended
> > for the use of the addressee(s) only and may contain
> > confidential information. If you are not the / an intended
> > recipient, you are hereby notified that any use or
> > dissemination of this communication is strictly prohibited.
> > If you receive this transmission in error, please notify us
> > immediately, and then delete this E-mail.
> >
> > Neither the sender nor Eurobase accepts any liability
> > whatsoever for any defects of any kind either in or arising
> > from this E-mail transmission. E-Mail transmission cannot be
> > guaranteed to be secure or error-free, as messages can be
> > intercepted, lost, corrupted, destroyed, contain viruses, or
> > arrive late or incomplete. Eurobase does not accept any
> > responsibility for viruses and it is your responsibility to
> > scan any attachments.
> >
> > Registered Address: Essex House, 2 County Place, Chelmsford,
> > Essex CM2 0RE, United Kingdom
> >
> >
> > --------------------------------------------------------------
> > -----------
> > Using Tomcat but need to do more? Need to support web
> > services, security?
> > Get stuff done quickly with pre-integrated technology to make
> > your job easier Download IBM WebSphere Application Server
> > v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> > dat=121642
> > _______________________________________________
> > Quickfixj-users mailing list
> > Qui...@li...
> > https://lists.sourceforge.net/lists/listinfo/quickfixj-users
> >
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
|
|
From: Shepheard, T. \(London\) <Tob...@ml...> - 2006-08-29 17:06:28
|
One option would be to regenerate the generated source code using your new data dictionary and rebuild the quickfix jar. That would be my preferred approach as it gives proper class representations for the mew messsages and fields. The build.xml file contains targets for doing all of this painlessly. Not sure how to go about getting the MessageCracker code to handle new messages it doesn't know about. They're all explicitly coded in the crack4x methods, falling through to the exception-throwing onMesssage default if they don't handle it. =20 HTH, Toby -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Alex McGlashan Sent: 29 August 2006 16:01 To: qui...@li... Subject: Re: [Quickfixj-users] Adding messages to data dictionary QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Steve, Sorry for the confusion - I had temporarily resolved the problem by hard-coding a check for the new message type in my fromApp method but have now reverted to calling the MessageCracker as recommended and am now getting the original problem again. To recap: my QuickFIX is sending a BusinessMessageReject message (type=3D"j", reason=3DUnsupported Message Type) on receipt of the new message type. I have tried to add the new message type to my FIX42.xml file to no avail. Is there any way of specifying the new message type to QuickFIX such that I can then code an onMessage method for it? Thanks again for your help! Alex =20 -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Steve Bate Sent: 29 August 2006 15:51 To: qui...@li... Subject: Re: [Quickfixj-users] Adding messages to data dictionary QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Alex, Are these postings out of order or are you still having problems after setting the MsgType in the message header? Steve=20 ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Quickfixj-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfixj-users Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail.=20 Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail.=20 Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Registered Address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, United Kingdom ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Quickfixj-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfixj-users -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the = sender, delete it and do not read, act upon, print, disclose, copy, = retain or redistribute it. Click here for important additional terms = relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- |
|
From: Alex M. <ale...@eu...> - 2006-08-30 10:06:06
|
Hi Steve, Thanks for that - your suggestion worked perfectly! It results in a catch-all for unsupported messages types. Thanks also to Toby and Toli for providing a more type-safe approach. Cheers, Alex -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Steve Bate Sent: 29 August 2006 19:36 To: qui...@li... Subject: Re: [Quickfixj-users] Adding messages to data dictionary QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Alex, Like Toby said, the MessageCracker is intended to be used with generated Message subtypes. However, in your application class you could override the public void onMessage(=20 quickfix.Message message, SessionID sessionID ) method defined from the message cracker to process your custom message instead of it throwing the UnsupportedMessageType. I haven't tried this myself, but it looks like it should work. This method would be called for any unknown message types. Please let us know if you try this solution and it works. Thanks, Steve > -----Original Message----- > From: qui...@li...=20 > [mailto:qui...@li...] On=20 > Behalf Of Alex McGlashan > Sent: Tuesday, August 29, 2006 5:01 PM > To: qui...@li... > Subject: Re: [Quickfixj-users] Adding messages to data dictionary >=20 > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Steve, >=20 > Sorry for the confusion - I had temporarily resolved the=20 > problem by hard-coding a check for the new message type in my=20 > fromApp method but have now reverted to calling the=20 > MessageCracker as recommended and am now getting the original=20 > problem again. >=20 > To recap: my QuickFIX is sending a BusinessMessageReject=20 > message (type=3D"j", reason=3DUnsupported Message Type) on=20 > receipt of the new message type. I have tried to add the new=20 > message type to my FIX42.xml file to no avail. >=20 > Is there any way of specifying the new message type to=20 > QuickFIX such that I can then code an onMessage method for it? >=20 > Thanks again for your help! >=20 > Alex > =20 >=20 > -----Original Message----- > From: qui...@li... > [mailto:qui...@li...] On=20 > Behalf Of Steve Bate > Sent: 29 August 2006 15:51 > To: qui...@li... > Subject: Re: [Quickfixj-users] Adding messages to data dictionary >=20 > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ Hi Alex, >=20 > Are these postings out of order or are you still having=20 > problems after setting the MsgType in the message header? >=20 > Steve=20 >=20 >=20 > -------------------------------------------------------------- > ---------- > - > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier Download IBM WebSphere Application Server=20 > v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642 > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users >=20 > Eurobase International Limited and its subsidiaries=20 > (Eurobase) are unable to exercise control over the content of=20 > information in E-Mails. Any views and opinions expressed may=20 > be personal to the sender and are not necessarily those of=20 > Eurobase. Eurobase will not enter into any contractual=20 > obligations in respect of any part of its business in any E-mail.=20 >=20 > Privileged / confidential information may be contained in=20 > this message and /or any attachments. This E-mail is intended=20 > for the use of the addressee(s) only and may contain=20 > confidential information. If you are not the / an intended=20 > recipient, you are hereby notified that any use or=20 > dissemination of this communication is strictly prohibited. =20 > If you receive this transmission in error, please notify us=20 > immediately, and then delete this E-mail.=20 >=20 > Neither the sender nor Eurobase accepts any liability=20 > whatsoever for any defects of any kind either in or arising=20 > from this E-mail transmission. E-Mail transmission cannot be=20 > guaranteed to be secure or error-free, as messages can be=20 > intercepted, lost, corrupted, destroyed, contain viruses, or=20 > arrive late or incomplete. Eurobase does not accept any=20 > responsibility for viruses and it is your responsibility to=20 > scan any attachments. >=20 > Registered Address: Essex House, 2 County Place, Chelmsford,=20 > Essex CM2 0RE, United Kingdom >=20 >=20 > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier Download IBM WebSphere Application Server=20 > v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642 > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users >=20 ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Quickfixj-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfixj-users |