cancel
Showing results for 
Search instead for 
Did you mean: 

JMS Adapter...

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Frnds,

I am working on one scenario using JMS Adapter,

my requirement is i have to read messages from JMS Queue,suppose in Queue there is 20 messagesa have to read at a time 20 messages using JMS Adapter and merge into one message.

JMS Adapter wl support to read multiple messages at a time?

without BPM i have to ahieve this..is it possible?

Regards,

Raj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Raj,

I think your requirement cannot be fullfilled by the JMS adaptor. It only reads messages one after another from a JMS queue. You could then collect them all in XI, but without BPM.... not doable I guess.

Regards,

Kai

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Frnds,

thanks for your valuable replay,

with BPM i can achieve this but my client not accpeting to use BPM.

without BPM i am looking for solution, i written java map to merger all messages in to one message.

but as per your input JMS Ada[ter wl read only one message at a time.

Regards,

Raj

Former Member
0 Kudos

The only solution I can think of in your scenario:

Read all messages from the queue with java program => merge them to one with our java prog. => give this one message back to the queue => read it from the queue with XI

Not very smart - but looks like the only path...

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Kai,

JMS Adapter wil read messages from Queue,

if i write JAVA Map to read messages from Queue it should be Module right not Java Map.

Regards,

Raj

Former Member
0 Kudos

I thought of an external program that reads all the messages from MQ queue and then merges them into one message and then giving it back to MQ queue.

This could be an own adapter in PCK of XI or a standalone JAVA based solution.

Answers (3)

Answers (3)

rajasekhar_reddy14
Active Contributor
0 Kudos

thanks

former_member732072
Active Participant
0 Kudos

Hi Raja Sekhar,

Please have a look at the following link and see if it helps:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b028f6f6-7da5-2a10-19bd-cf322cf5...

Best Regards

Former Member
0 Kudos

Hi,

The JMS works on the concept of queues ie. FIFO.

So u will be able to read only one message at a time.

You can use collect pattern in BPM.

Regards,

Rajesh