Re: [Quickfix-developers] [qfj] Publishing Messages to JMS
Brought to you by:
orenmnero
|
From: Caleb E. <cal...@gm...> - 2005-09-12 17:44:44
|
On 9/12/05, Steve Bate <st...@te...> wrote:
>=20
> I'm looking at the C++ Session code as I see the following
> fragment for non-admin messages:
>=20
> m_application.toApp( message, m_sessionID );
> message.toString( messageString );
> if ( isLoggedOn() )
> result =3D send( messageString );
> }
>=20
> It looks like the message is not passed to the send() method
> if the session is not logged on. The send() method is where
> the message is persisted. Am I interpreting this correctly?
No, the persistence is done in this same method, a little bit below what yo=
u=20
pasted. I was actually mistaken when I said it is done before the send (it=
=20
probably should be):
if ( !num ) <-- num is !0 if we are resending
{
MsgSeqNum msgSeqNum;
header.getField( msgSeqNum );
m_state.set( msgSeqNum, messageString ); <-- persistence happens here
m_state.incrNextSenderMsgSeqNum();
}
--=20
Caleb Epstein
caleb dot epstein at gmail dot com
|