Switchyard Camel JMS binding to Remote Topic
Howdy!
Now trying to take swithcyard-quickstart-camel-jms-binding and modify it to upon initialization create a HornetQ remoting client consumer/subscriber connection to, well, a remote EAP-5 HornetQ server. Seems like it would be an 'advanced details Additiona URI Parameter", adding java.naming.provider.url jnp://192.168.235.140:1099 but this failes XSD validation. Then tried various configurations from http://camel.apache.org/jms, such as Using JNDI to find the ConnectionFactory... just not finding the secret ingredients again.
Sincere thanks!
John
Attachments
Responses
John, I am told that you could try to lookup the ConnectionFactory and set it on a camel JmsComponent; for example:
@Produces @Named("jms")
public JmsComponent create() {
JmsComponent jms = new JmsComponent();
jms.setConnectionFactory(new InitialContext(remoteJndiProps).lookup("/MyRemoteConnectionFactory"));
return jms;
}
Let me know if this helps.
Hi John!
@Named("Block1_TS1") should be @Named("jms"), otherwise camel doesn't use it to create jms component.
And I am told that this does not look like valid configuration:
<jms:binding.jms>
SMM_UI
Block1_TS1
</jms:binding.jms>
The SME I'm working with can't quite understand what you want to do here.
Cheers,
Ben
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
