//1. create External Resource to represent the J2EE container:
// 1.1 new External Resources, name is "weblogicJ2EE", type "J2EE Application Server"
// 1.2 select Support Type as "GENERIC_J2EE"
// 1.3 input the initial Context Factory: "weblogic.jndi.WLInitialContextFactory"
// 1.4 input the URL: "t3://localhost:7001"
//2. create Enternal Recourse to represent the JMS service
// 2.1 new External Resource, name is "JMSReceive"
// 2.2 select type as "JMS Messaging Services"
// 2.3 select J2EE detail as "weblogicJ2EE" (same name as the External Resource you created)
// 2.4 select Destination Type: "QUEUE"
// 2.5 input the Lookup Name: "weblogic.examples.jms.exampleQueue"
// 2.6 input the Connection Factory Lookup Name: "weblogic.examples.jms.QueueConnectionFactory"
//3 setup the Global Automatic as a JMS listen process
// 3.1 right click the Global automatic activity
// 3.2 choose "runtime", select Global Automatic Type : Automatic JMS listener
// 3.3 select "JMS configuration" to "JMSReceive" (the one you created in step 1)
// 3.4 choose the Acknowledgement mode : AUTO_ACKNOWLEDGE
//message sending method
msg as String = "Hello World"
jmsMsg as Fuego.Msg.JmsMessage
msg = "<?xml version=\"1.0\"?><Msg>" + msg + "</Msg></xml>"
jmsMsg = JmsMessage(type : JmsMessageType.TEXT)
jmsMsg.textValue = msg
sendMessage DynamicJMS
using configuration = "JMSReceive",
message = jmsMsg
//message receiving method
messageData as String
// Message is stored in message variable.
messageData = message.textValue;
logMessage "the incoming message from the JMS server is:" + messageData using severity = WARNING
return true
// 1.1 new External Resources, name is "weblogicJ2EE", type "J2EE Application Server"
// 1.2 select Support Type as "GENERIC_J2EE"
// 1.3 input the initial Context Factory: "weblogic.jndi.WLInitialContextFactory"
// 1.4 input the URL: "t3://localhost:7001"
//2. create Enternal Recourse to represent the JMS service
// 2.1 new External Resource, name is "JMSReceive"
// 2.2 select type as "JMS Messaging Services"
// 2.3 select J2EE detail as "weblogicJ2EE" (same name as the External Resource you created)
// 2.4 select Destination Type: "QUEUE"
// 2.5 input the Lookup Name: "weblogic.examples.jms.exampleQueue"
// 2.6 input the Connection Factory Lookup Name: "weblogic.examples.jms.QueueConnectionFactory"
//3 setup the Global Automatic as a JMS listen process
// 3.1 right click the Global automatic activity
// 3.2 choose "runtime", select Global Automatic Type : Automatic JMS listener
// 3.3 select "JMS configuration" to "JMSReceive" (the one you created in step 1)
// 3.4 choose the Acknowledgement mode : AUTO_ACKNOWLEDGE
//message sending method
msg as String = "Hello World"
jmsMsg as Fuego.Msg.JmsMessage
msg = "<?xml version=\"1.0\"?><Msg>" + msg + "</Msg></xml>"
jmsMsg = JmsMessage(type : JmsMessageType.TEXT)
jmsMsg.textValue = msg
sendMessage DynamicJMS
using configuration = "JMSReceive",
message = jmsMsg
//message receiving method
messageData as String
// Message is stored in message variable.
messageData = message.textValue;
logMessage "the incoming message from the JMS server is:" + messageData using severity = WARNING
return true