상세 컨텐츠

본문 제목

BW6 list of itmes using Java to Xml

TIBCO/BW6

by 야솔아빠 2020. 6. 19. 08:44

본문

반응형

[Response body]
{
"QueuePool": [
{
"nodeName": "NODE_1",
"dynamicQueueList": "SAMPLE1"
},
{
"nodeName": "NODE_2",
"dynamicQueueList": "SAMPLE5"
}
]
}

-----------------------
[Java]

public QueuePoolList getAllQueuePool() {

QueuePoolList list = new QueuePoolList();

QueuePool queuePoolVO1 = new QueuePool();
queuePoolVO1.setNodeName("NODE_1");
queuePoolVO1.setDynamicQueueList("EVMQ.DX.EQP.SAMPLE1,EVMQ.DX.EQP.SAMPLE2,EVMQ.DX.EQP.SAMPLE3");



QueuePool queuePoolVO2 = new QueuePool();
queuePoolVO2.setNodeName("NODE_2");
queuePoolVO2.setDynamicQueueList("EVMQ.DX.EQP.SAMPLE5,EVMQ.DX.EQP.SAMPLE6");

QueuePool[] pools = new QueuePool[2];
pools[0] = queuePoolVO1;
pools[1] = queuePoolVO2;

list.setQueuePool(pools);
return list;
}



------------------

package com.tibco.qmm.vo;

import java.io.Serializable;

public class QueuePool implements Serializable{

private String nodeName;
private String dynamicQueueList;

public String getNodeName() {
return nodeName;
}
public void setNodeName(String nodeName) {
this.nodeName = nodeName;
}
public String getDynamicQueueList() {
return dynamicQueueList;
}
public void setDynamicQueueList(String dynamicQueueList) {
this.dynamicQueueList = dynamicQueueList;
}


}

반응형

'TIBCO > BW6' 카테고리의 다른 글

EMS driver install error on BW6  (0) 2020.07.31
Error In bwagent register to TEA  (0) 2020.07.15
BW 6.6.1 JMS Sender test  (0) 2020.06.05
javax.xml.xpath with BW6  (0) 2020.05.31
Memory Saving mode  (0) 2020.05.26

관련글 더보기

댓글 영역