-
1. Re: How to get dest-name value in action class?
joe_boy12 Jun 8, 2011 1:18 PM (in response to rajakkanib)not much clear on your question but are you looking for something like this?
<!-- from jboss-esb.xml -->
<action name="TestAction" class="test.TestAction">
<property name="dest-name" value="test-destination"/>
</action>/* and in action class */
@ConfigProperty(name="dest-name", use=Use.REQUIRED)
private String destinationName = null; -
2. Re: How to get dest-name value in action class?
rajakkanib Jun 9, 2011 1:06 AM (in response to joe_boy12)Hi Joe,
You are right.
I am not bit clear on my question.
Now, My Question is "My Action class should know where the message comes from?". Surely it is from provider and listener which has busref id.
I need to get this busrefid value to my action class process Method.
Is it possible?
Thanks
-
3. Re: How to get dest-name value in action class?
rajakkanib Jun 9, 2011 3:19 AM (in response to rajakkanib)Hi,
<
>
>
>
jms-message-filter
"QUEUE"
"queue/quickstart_GW"
/>
>
>
jms-message-filter
"QUEUE"
"queue/quickstart_ESB"
/>
>
>
>
In the above code, how can i get the "dest-name" Queue name in the action's class process method?
Thanks & Regards
rajakkanib
-
4. Re: How to get dest-name value in action class?
joe_boy12 Jun 9, 2011 4:11 PM (in response to rajakkanib)action class can get it from message itself. look for message.getHeader().getCall().getFrom()
-
5. Re: How to get dest-name value in action class?
rajakkanib Jun 10, 2011 2:34 AM (in response to joe_boy12)Hi,
using the above code, i can not able to get the gateway queue name from jboss-esb.xml.
Let me try some work around
Thank you.
rajakkanib
-
6. Re: How to get dest-name value in action class?
joe_boy12 Jun 11, 2011 7:50 PM (in response to rajakkanib)you probably wont get that in action class as gateway queues are just pass thru on to ESB aware channels
-
7. Re: How to get dest-name value in action class?
rajakkanib Jun 13, 2011 3:37 AM (in response to joe_boy12)Sure
Thanks
rajakkanib