AS11 B2B - JMS Enqueue/Dequeue (Send/Receive) Utility

AS11 B2B users can follow the below instructions to send and receive from the default B2B_OUT_QUEUE/B2B_IN_QUEUE JMS queues.

Enqueue (Send) :
1. Create a file called "jmsenqueue.properties" with the sample content given below. You may refer AS11 B2B documentation for the list of supported properties.

####### Destination Details #######
destination = jms/b2b/B2B_IN_QUEUE
cf = jms/b2b/B2BQueueConnectionFactory
count=1

###### Server and Factory Details #######
factory=weblogic.jndi.WLInitialContextFactory
url=t3://stacz36:8001/
#user=
#password=

####### Payload Details #######
####### The below is a sample value, please correct the same to suit your environment #######
from=Acme
to=GlobalChips
#eventName=SampleEvent
doctypeName=Custom
doctypeRevision=1.0
payload=/scratch/skiruban/work/GlobalChips_1234.dat


2. Create an shell script file with below contents that can set the classpath and other environment settings required by enqueue and/or dequeue utilities shipped with AS11 B2B. You name the file as you wish, i am just naming it as jmsenqueue.sh.

####### Content of SH File ########
export ORACLE_HOME=
export SOA_HOME=$ORACLE_HOME/
export JAVA_HOME=$ORACLE_HOME/
export PATH=$JAVA_HOME/bin:$PATH

Note: Binaries location are different in PS1 and R1 so please pick up appropriate below command based on your environment.

For PS1:
java -cp ${SOA_HOME}/soa/modules/oracle.soa.b2b_11.1.1/b2b.jar:${ORACLE_HOME}/wlserver_10.3/server/lib/weblogic.jar:${ORACLE_HOME}/oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:${SOA_HOME}/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:${SOA_HOME}/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:${ORACLE_HOME}/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar:${ORACLE_HOME}/oracle_common/modules/oracle.pki_11.1.1/oraclepki.jar:${ORACLE_HOME}/oracle_common/modules/oracle.dms_11.1.1/dms.jar:${ORACLE_HOME}/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar oracle.tip.b2b.data.JMSEequeue jmsenqueue.properties

For R1:
java -cp ${SOA_HOME}/soa/modules/oracle.soa.b2b_11.1.1/b2b.jar:${ORACLE_HOME}/wlserver_10.3/server/lib/weblogic.jar:${SOA_HOME}/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:${SOA_HOME}/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:${SOA_HOME}/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:${SOA_HOME}/modules/oracle.jmx_11.1.1/jmxframework.jar:${SOA_HOME}/modules/oracle.pki_11.1.1/oraclepki.jar:${SOA_HOME}/modules/oracle.dms_11.1.1/dms.jar:${SOA_HOME}/modules/oracle.odl_11.1.1/ojdl.jar oracle.tip.b2b.data.JMSEnqueue jmsenqueue.properties

3. Run the enqueue scripts created in the previous step as ./jmsenqueue.sh


Dequeue (Receive)
:
1. Create a file called "jmsdequeue.properties" with the sample content given below (make sure to change the value to suit your environment). You may refer AS11 B2B documentation for the list of supported properties.

####### Destination Details #######
destination = jms/b2b/B2B_IN_QUEUE
cf = jms/b2b/B2BQueueConnectionFactory
count=1

####### Server and Factory Details #######
factory=weblogic.jndi.WLInitialContextFactory
url=t3://stacz36:8001/
#user=
#password=

2. Create an shell script file with below contents that can set the classpath and other environment settings required by enqueue and/or dequeue utilities shipped with AS11 B2B. You name the file as you wish, i am just naming it as jmsenqueue.sh.

####### Content of SH File ########
export ORACLE_HOME=
export SOA_HOME=$ORACLE_HOME/
export JAVA_HOME=$ORACLE_HOME/
export PATH=$JAVA_HOME/bin:$PATH

Note: Binaries location are different in PS1 and R1 so please pick up appropriate below command based on your environment.

For PS1:
java -cp ${SOA_HOME}/soa/modules/oracle.soa.b2b_11.1.1/b2b.jar:${ORACLE_HOME}/wlserver_10.3/server/lib/weblogic.jar:${ORACLE_HOME}/oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:${SOA_HOME}/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:${SOA_HOME}/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:${ORACLE_HOME}/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar:${ORACLE_HOME}/oracle_common/modules/oracle.pki_11.1.1/oraclepki.jar:${ORACLE_HOME}/oracle_common/modules/oracle.dms_11.1.1/dms.jar:${ORACLE_HOME}/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar oracle.tip.b2b.data.JMSDequeue jmsdequeue.properties

For R1:
java -cp ${SOA_HOME}/soa/modules/oracle.soa.b2b_11.1.1/b2b.jar:${ORACLE_HOME}/wlserver_10.3/server/lib/weblogic.jar:${SOA_HOME}/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:${SOA_HOME}/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:${SOA_HOME}/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:${SOA_HOME}/modules/oracle.jmx_11.1.1/jmxframework.jar:${SOA_HOME}/modules/oracle.pki_11.1.1/oraclepki.jar:${SOA_HOME}/modules/oracle.dms_11.1.1/dms.jar:${SOA_HOME}/modules/oracle.odl_11.1.1/ojdl.jar oracle.tip.b2b.data.JMSDequeue jmsdequeue.properties

3. Run the dequeue script created in the previous step as "./jmsdequeue.sh"

Note:
1. You may have to adjust the environment settings in the scripts to execute the sample on windows environments.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

To Discover and discuss the capability of B2B in the world of Trading Partner Integration. This blog is primarily intended to share thoughts on Oracle B2B Product and to share best practices in performance, scalability and various topologies.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today