Closed yuecelm closed 2 years ago
1) can be fixed by having BYTES before OBJECT in MessageType
would suggest testcases:
1) check all possible message types explicitly by triggering send(<T> message)
2) send/receive loop for each message type, currently only ObjectMessage is tested
I also suspect the same problem comes up with the Queue annotation
solved the issue, but it feels more like a workaround for calling the deserializer twice: https://github.com/yuecelm/micronaut-jms/commit/669be92ecb290ac86ad1923c96893cf0a2da5d2d
@spre001 please take a look
Expected Behavior
1) send(byte[] message) should serialize to BytesMessage 2) DefaultSerializerDeserializer.serializeBytes throws no exception 3) DefaultSerializerDeserializer.deserializeBytes should be called once 4) receive(byte[] message) should be the same byte array as in step 1
Actual Behaviour
1) send(byte[] message) serialize to ObjectMessage 2) DefaultSerializerDeserializer.serializeBytes throws an exception (after fixing step 1.) 3) DefaultSerializerDeserializer.deserializeBytes is called twice 4) receive(byte[] message) receives the same byte length as in step 1, but filled with zeroes
Steps To Reproduce
git clone -b issue/250 https://github.com/yuecelm/micronaut-jms.git cd micronaut-jms ./gradlew :tests:tasks-activemq-classic:test -i --rerun-tasks
observe the following output:
but would expect something like this:
Environment Information
No response
Example Application
Version
git head of Micronaut JMS, also observed with latest release 2.0.0 M1