[openamq-dev] Need Big Help On OpenAMQ Callbacks
Nick Levine
ndl at ravenbrook.com
Tue Aug 14 13:54:23 CEST 2007
Martin,
Date: Tue, 14 Aug 2007 13:32:44 +0200
From: Martin Sustrik <sustrik at imatix.com>
To: "OpenAMQ development discussion, bug reports, support" <openamq-dev at lists.openamq.org>
Hi,
> (*) I just expose my Middleware wrapper (written in C) from
> JNI to access by the Java. It working perfectly fine. Issue is
> when it comes to multi threading on Java we have big big
> issues. its not working as we expected.
OpenAMQ client is not thread-safe by design. However, with the new
release hopefully coming out this week you should be able to open
several connections (each for one thread) and it should work fine.
Ouch. I'm more than somewhat concerned by this. The phrase "should
work fine" doesn't fill me with confidence. Hmm, did I miss out on
anything in the doc?
The application I'm working on will need to be multi-threaded. Can you
give me any indications as to what operations will not be thread-safe
in this new release?
I thought the idea was that you have few connections (because they're
time-consuming to instantiate) and many sessions (because these are
cheap).
Till then, I would say, synchronising accessing threads using critical
section would do.
Do I understand correctly that with the new release this isn't necessary?
Many thanks,
- nick
More information about the openamq-dev
mailing list