cancel
Showing results for 
Search instead for 
Did you mean: 

How to set QueueId (Queue Name) dynamically for EOIO JDBC/File senders?

Former Member
0 Kudos

I have File and JDBC senders that are using EOIO QoS.

I must enter a value of QueueId (Queue Name) in the configuration of the communication channels. But I want to set (or overwrite) this QueueId value dynamically to a value from the payload - in other words, to set a serialized context based on some identifier in the payload.

Does anybody know whether it's possible to set the QueueId (Queue Name) value dynamically to a value from the payload?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Does anybody know whether it's possible to set the QueueId (Queue Name) value dynamically to a value from the payload?

yes of course it can be set like that

recently I implemented an adapter module which does exactly that (from the payload)

for JMS adapter (but it works with file and jdbc too)

all you need it to set is the sequenceID from the payload value - and that's it

Regards,

Michal Krawczyk

former_member181985
Active Contributor
0 Kudos

Hi Michal,

Can you please share us the module code as a blog....:)

Regards,

Praveen Gujjeti

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

there is one that shows that from alex - so no need to do that

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

Thanks for the pointer to sequenceId. I see the get/set methods on the Message interface mentioned in the documentation.

Could you provide a URL to the alex blog you mentioned?

Thanks,

Mark

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

I'd rather you'd try to use the search option on sdn yourself...

/people/alessandro.guarneri/blog/2006/11/26/content-based-serialization-dynamic-queue-name-in-xi

Regards,

Michal Krawczyk

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Michal,

Many thanks for providing this answer and for the link to the blog.

I've looked through the blog code and it seems to be using the setConversationId method, so I presume this Message interface may have changed to use setSequenceId since the blog was written. I'm going to have to write an adaptor module to do this, so I guess I'll be finding out

Regards,

Mark

prateek
Active Contributor
0 Kudos

Queue name parameter of File/JDBC adapter cannot be set dynamically using Dynamic Configuration.

Regards,

Prateek