Proton messangers after fork
Greetings, I have a process that receives amqp messages using proton messenger in passive mode (inside select-based event loop) and sends replies back using second messenger in non-passive mode. I want to handle certain messages in a separate process instance. Normally I would just fork current process and do all necessary job in a child, but I have certain doubts about messenger connections. Should I just close corresponding file descriptors and free the messengers? Will this also affect messenger connections in parent? Will it be safe if I will just create a new messenger in a child (most probably in non-passive blocking mode) to send back reply messages? I am concerned about any possible implicit proton initializations: should I somehow re-initialize the library in child? Or is it more safe just to exec a different process in this case? Many thanks, -- \ / | | (OvO) | Mikhail Iwanow | (^^^) | Voice: +7 (911) 223-1300 | \^/ | E-mail: iv...@logit-ag.de | ^ ^ | | - To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org
RE: qpid errors
The broker doesn't need to be run as a Windows service (but that's a perfectly good thing to do). The error below was likely because there is no \temp or \temp\qpidd.data directories and your account didn't have rights to create it. -Steve > -Original Message- > From: Suman.Patro-TRN [mailto:suman.patro-...@lntebg.com] > Sent: Tuesday, August 04, 2015 5:41 AM > To: users@qpid.apache.org > Subject: RE: qpid errors > > Hey Gordon, > Thanks a ton. The error got resolved. The broker > in qpid 0.34 is > named as qpidd.exe which needed to be run as a windows service. > > From: Gordon Sim [g...@redhat.com] > Sent: Tuesday, August 04, 2015 3:05 PM > To: users@qpid.apache.org > Subject: Re: qpid errors > > On 08/04/2015 07:30 AM, Suman.Patro-TRN wrote: > > Hey Gordon, > > 1. There is no amqp broker .exe , but there is qpidbroker.dir which > > has > broker.cpp.obj and qpidbrokerd.dll in D:\qpid_build\src\Debug. what do I > start and how?? > > 2. I tried running qpid.exe but with errors as : > > > > D:\qpid_build\src\Debug>qpidd.exe > > 2015-08-04 11:50:18 [Broker] notice Broker (pid=7536) start-up > > 2015-08-04 11:50:18 [Broker] notice Broker (pid=7536) shut-down > > 2015-08-04 11:50:18 [Broker] critical Unexpected error: Can't create > directory: > > \TEMP\QPIDD.DATA > > That is the right executable, the error is because it can't create the > directory > it wants. I'm not sure why that is the case (I'm not a windows user, but > hopefully someone more familiar with it will chip in with suggestions). > > There are two options you could use to avoid that: (1) use the no-data-dir > option, which avoids needing a directory and (2) use the data-dir option to > point at a valid directory the broker can use. > qpidd.exe -h should give you all the available options. > > > > - > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional > commands, e-mail: users-h...@qpid.apache.org > > Larsen & Toubro Limited > > www.larsentoubro.com > > This Email may contain confidential or privileged information for the intended > recipient (s). If you are not the intended recipient, please do not use or > disseminate the information, notify the sender and delete it from your > system. > > - > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional > commands, e-mail: users-h...@qpid.apache.org - To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org
RE: qpid errors
Hey Gordon, Thanks a ton. The error got resolved. The broker in qpid 0.34 is named as qpidd.exe which needed to be run as a windows service. From: Gordon Sim [g...@redhat.com] Sent: Tuesday, August 04, 2015 3:05 PM To: users@qpid.apache.org Subject: Re: qpid errors On 08/04/2015 07:30 AM, Suman.Patro-TRN wrote: > Hey Gordon, > 1. There is no amqp broker .exe , but there is qpidbroker.dir which > has broker.cpp.obj and qpidbrokerd.dll in D:\qpid_build\src\Debug. what > do I start and how?? > 2. I tried running qpid.exe but with errors as : > > D:\qpid_build\src\Debug>qpidd.exe > 2015-08-04 11:50:18 [Broker] notice Broker (pid=7536) start-up > 2015-08-04 11:50:18 [Broker] notice Broker (pid=7536) shut-down > 2015-08-04 11:50:18 [Broker] critical Unexpected error: Can't create > directory: > \TEMP\QPIDD.DATA That is the right executable, the error is because it can't create the directory it wants. I'm not sure why that is the case (I'm not a windows user, but hopefully someone more familiar with it will chip in with suggestions). There are two options you could use to avoid that: (1) use the no-data-dir option, which avoids needing a directory and (2) use the data-dir option to point at a valid directory the broker can use. qpidd.exe -h should give you all the available options. - To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org Larsen & Toubro Limited www.larsentoubro.com This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. - To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org
Re: qpid errors
On 08/04/2015 07:30 AM, Suman.Patro-TRN wrote: Hey Gordon, 1. There is no amqp broker .exe , but there is qpidbroker.dir which has broker.cpp.obj and qpidbrokerd.dll in D:\qpid_build\src\Debug. what do I start and how?? 2. I tried running qpid.exe but with errors as : D:\qpid_build\src\Debug>qpidd.exe 2015-08-04 11:50:18 [Broker] notice Broker (pid=7536) start-up 2015-08-04 11:50:18 [Broker] notice Broker (pid=7536) shut-down 2015-08-04 11:50:18 [Broker] critical Unexpected error: Can't create directory: \TEMP\QPIDD.DATA That is the right executable, the error is because it can't create the directory it wants. I'm not sure why that is the case (I'm not a windows user, but hopefully someone more familiar with it will chip in with suggestions). There are two options you could use to avoid that: (1) use the no-data-dir option, which avoids needing a directory and (2) use the data-dir option to point at a valid directory the broker can use. qpidd.exe -h should give you all the available options. - To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org