Comments (5)
Thank's a lot, I will have a look at this
from citrus.
I've seen the same thing with ActiveMQ
from citrus.
I will have to think about implementing explicit purge actions using the JMS message broker API instead of having a generic purge approach as before. Unfortunately purge operaitons in JMS message broker API are not standardized. Hm, that's a tough one I think. However thank you for pointing to this one again.
from citrus.
Hi @christophd
Why don't you just do as I propose above? Just removing the messageConsumer out of the do-while loop? That fixes this issue we had.
Before fix:
try {
javax.jms.Message message;
do {
messageConsumer = session.createConsumer(destination);
message = (receiveTimeout >= 0) ? messageConsumer
.receive(receiveTimeout) : messageConsumer.receive();
After fix:
try {
javax.jms.Message message;
messageConsumer = session.createConsumer(destination);
do {
message = (receiveTimeout >= 0) ? messageConsumer
.receive(receiveTimeout) : messageConsumer.receive();
It has almost no impact on the rest of the code and everything will work fine. It is not usual to create a new messageConsumer everytime you want to receive a message message from the same destination.
from citrus.
Hi Humphrey,
this issue has already been fixed in Citrus 1.2. I fixed the message consumer creation as you suggested. Sorry for not closing this issue on github accordingly.
Cheers,
Christoph
from citrus.
Related Issues (20)
- Proxied or subclassed Rest Scenarios cannot be mapped by HttpRequestAnnotationScenarioMapper HOT 1
- Documentation fixes HOT 1
- SFTP server breaks the XML marshaller with non Unicode characters in remote file paths
- How to test a Camel route using Quarkus? HOT 8
- Citrus Cucumber Spring uses the same TestContext for all tests
- CitrusLifecycleHooks break the Cucumber API HOT 1
- Json/Yaml schema for the Yaml test cases? HOT 1
- Mailserver schema requires attachment if attachments is present, but SimpleJavaMail always generates empty collection "attachments"
- Test-Context Error handling is not graceful
- Static Access Required for BeanFactoryPostProcessor Bean in CitrusSpringConfig
- update cucumber documentation
- Citrus kafka functionality maven dependency HOT 6
- Issue receiving kafka messages via the same endpoint for multiple tests (quarkus) HOT 2
- Junit parallel test HOT 4
- NullPointerException. Cannot invoke "org.apache.hc.client5.http.io.ManagedHttpClientConnection.isConsistent()" because "conn" is null HOT 3
- HttpServer in kubernetes HOT 1
- Ensuring Unique Message IDs in Citrus Templates for Reliable Test Correlation
- Json transformation with conditions HOT 1
- Citrus for java 11 does not support later versions of TestNG HOT 8
- Binary message not the same as documentation?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citrus.