citrusframework / citrus

Framework for automated integration tests with focus on messaging integration
https://citrusframework.org
Apache License 2.0
456 stars 134 forks source link

I need example for QueueBrowser in CitrusFramework #719

Closed srilagi closed 2 years ago

srilagi commented 4 years ago

Citrus Version

Question

What I've tried so far

Additional information

christophd commented 4 years ago

@srilagi Can you please elaborate on this?

What messaging transport are you referring to? JMS, Kafka, something else?

Please describe your use case and what you want to be able to do in more detail.

srilagi commented 4 years ago

Hi Christoph,

I am trying to configure the IBM MQ QueueBrowser using citrus framework. Current Citrus ReceiveMessageBuilder not supporting to retrieve the message from the Queuebrowser.

I have used Junit concept to retrieve the messages from the Queuebrowser.

Can you please provide me the code snipper to retrieve the messages from the Queuebrowser using ReceiveMessageBuilder.

Thanks, Srikanth.

On Wed, Apr 29, 2020 at 12:34 PM Christoph Deppisch < notifications@github.com> wrote:

@srilagi https://github.com/srilagi Can you please elaborate on this?

What messaging transport are you referring to? JMS, Kafka, something else?

Please describe your use case and what you want to be able to do in more detail.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/citrusframework/citrus/issues/719#issuecomment-621356936, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA5REBOXRKQJUBWZVANZ4DRPBQJTANCNFSM4MT4ZHJQ .

srilagi commented 4 years ago

Hi Christoph,

I am trying to develop code to read the messages from IBM MQ Queue using Queue Browser mechanism.

Can you please provide the example for the above connector.

Thanks, Srikanth.

On Wed, Apr 29, 2020 at 12:34 PM Christoph Deppisch < notifications@github.com> wrote:

@srilagi https://github.com/srilagi Can you please elaborate on this?

What messaging transport are you referring to? JMS, Kafka, something else?

Please describe your use case and what you want to be able to do in more detail.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/citrusframework/citrus/issues/719#issuecomment-621356936, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA5REBOXRKQJUBWZVANZ4DRPBQJTANCNFSM4MT4ZHJQ .

christophd commented 4 years ago

So to understand your need correctly you are trying to read messages from IBM MQ queue without consuming those? Is that what you want to achieve with "browsing"

srilagi commented 4 years ago

Yes Christoph.

Sorry for the late reply.

We are developing microservices and most of the services communication between and rest and mq queues. So, i want do testing in testing environment with out distributing original flow.

I have created test cases by using junit, but i am more interested in developing using citrus framework.

So, please provide me lead to develop the test case using citrus.

Thanks, Srikanth.

On Thu, May 7, 2020 at 10:07 AM Christoph Deppisch notifications@github.com wrote:

So to understand your need correctly you are trying to read messages from IBM MQ queue without consuming those? Is that what you want to achieve with "browsing"

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/citrusframework/citrus/issues/719#issuecomment-625312741, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA5REF4YYSLEV5KCF3JUXDRQLFDBANCNFSM4MT4ZHJQ .

christophd commented 4 years ago

Browsing messages on queues without consuming those messages is not part of the JMS standard to my knowledge. So queue browser implementations are always vendor specific features. This is why Citrus is will not be able to use those vendor specific browsers out of the box in order to consume messages.