-
1. Re: Is the "Invalid concurrent session usage. Sessions are not supposed to be used by more than one thread concurrently." removed in 2.4 ?
jbertram Aug 26, 2013 4:26 PM (in response to dheinzh3)The warning has not been removed in HornetQ 2.4. I'm not familiar with any bugs related to the detection of concurrent session usage (although that's not to say there aren't any).
At this point I would say if you are getting this message then you are using your sessions concurrently. Have you investigated this possibility?
-
2. Re: Is the "Invalid concurrent session usage. Sessions are not supposed to be used by more than one thread concurrently." removed in 2.4 ?
clebert.suconic Aug 26, 2013 6:05 PM (in response to dheinzh3)We did that to warn users when they are using the session wrongly.
If you find an use case where you are using it correctly, then we may need to tweak the warning check and we would need a testcase. Otherwise you have an issue on your code.
-
3. Re: Is the "Invalid concurrent session usage. Sessions are not supposed to be used by more than one thread concurrently." removed in 2.4 ?
clebert.suconic Aug 26, 2013 6:07 PM (in response to dheinzh3)I believe there was a case where the warning check was being too aggressive which was fixed... I don't remember now.
But if you are still using the session wrongly you would get the warning. But the bug identifying the correct pattern wrongly was fixed. (I don't remember what was the case now.. maybe MessageListeners?)
-
4. Re: Is the "Invalid concurrent session usage. Sessions are not supposed to be used by more than one thread concurrently." removed in 2.4 ?
shlamalama Feb 26, 2014 9:36 PM (in response to clebert.suconic)How about if I'm only using HornetQ embedded, for inter thread processing? Would the WARN apply for that case? Or is it only for remote HornetQ interaction (due to socket writes, etc).
-
5. Re: Is the "Invalid concurrent session usage. Sessions are not supposed to be used by more than one thread concurrently." removed in 2.4 ?
clebert.suconic Feb 26, 2014 10:12 PM (in response to shlamalama)both really. The session is supposed to reflect a single Thread...
you can reuse it between multiple threads.. as long as you won't use concurrently.