Ok lets get to the work.
We are going to use the Integration API to achieve this task from 'Java Compute Node' from IIB 10 Toolkit.
Below is sample flow

And code inside java compute node -
// Add user code below
BrokerConnectionParameters bcp = new IntegrationNodeConnectionParameters("localhost",4416);
BrokerProxy b = BrokerProxy.getInstance(bcp);
ExecutionGroupProxy e = b.getExecutionGroupByName("default");
ApplicationProxy a = e.getApplicationByName("UDPViaJavaApp");
MessageFlowProxy m = a.getMessageFlowByName("UDPChangeViaJAVA_MF");
m.setUserDefinedProperty("hostName", "localhost:555");
// End of user code
// ----------------------------------------------------------
I suggest you to try by yourself but if you don't want here is the code you can download from -
Download Integration PI
We are going to use the Integration API to achieve this task from 'Java Compute Node' from IIB 10 Toolkit.
Below is sample flow
And code inside java compute node -
// Add user code below
BrokerConnectionParameters bcp = new IntegrationNodeConnectionParameters("localhost",4416);
BrokerProxy b = BrokerProxy.getInstance(bcp);
ExecutionGroupProxy e = b.getExecutionGroupByName("default");
ApplicationProxy a = e.getApplicationByName("UDPViaJavaApp");
MessageFlowProxy m = a.getMessageFlowByName("UDPChangeViaJAVA_MF");
m.setUserDefinedProperty("hostName", "localhost:555");
// End of user code
// ----------------------------------------------------------
I suggest you to try by yourself but if you don't want here is the code you can download from -
Download Integration PI
Thanks a lot Satendra! The sample is working like a charm. Able to access and update UDP of a remote broker application as well.
ReplyDeleteGlad it helped !!
DeleteThis IBM App Connect Enterprise V11 training covers concepts from Basic level to advance level. Whether you are an individual or corporate client we can customize training course content as per your requirement. And can arrange this IBM App Connect Enterprise V11 training at your pace.
ReplyDeleteIBM APP Connect Enterprise (ACE) V11, which was earlier known as “IBM Integration Bus” or “WebSphere Message Broker” is basically IBM's Integration Broker from the WebSphere product family that authorizes business information to flow between various applications across multiple hardware and software platforms.
Complete Customization of IBM App Connect Enterprise V11 training’s course content is possible for Individual students and for Corporate.
Email: contact@maxmunus.com
Call / WhatsApp: +91903588898