AS11 B2B - AQ Enqueue/Dequeue Utility

AS11 B2B users can follow the below instructions to enqueue and dequeue from the default IP_OUT_QUEUE/IP_IN_QUEUE queues.


Enqueue:
1. Create a file called "enq_sample.properties" with the below content. You may refer AS11 B2B documentation for the list of supported properties.

####### Enqueue Sample Properties #######
user=soainfracool
password=soainfracool
url=jdbc:oracle:thin:@localhost:1521:XE
replyToMsgID =
from =Acme
to =GlobalChips
doctypeName =CustomDocumentType
doctypeRevision =1.0
payload = /tmp/GlobalChips_12345.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 enq_sample.sh.

####### Content of SH File ########
export ORACLE_HOME=/scratch/$USER/fmwhome
export SOA_HOME=$ORACLE_HOME/AS11gR1SOA
export JAVA_HOME=$ORACLE_HOME/jdk160_11
export PATH=$JAVA_HOME/bin:$PATH

java -cp $SOA_HOME/soa/modules/oracle.soa.b2b_11.1.1/b2b.jar:$ORACLE_HOME/wlserver_10.3/server/lib/ojdbc6.jar oracle.tip.b2b.data.IPEnqueue enq_sample.properties

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

Dequeue:
1. Create a file called "deq_sample.properties" with the below content. You may refer AS11 B2B documentation for the list of supported properties.

####### Dequeue Sample Properties #######
user=soainfracool
password=soainfracool
url=jdbc:oracle:thin:@localhost:1521:XE
queue=IP_OUT_QUEUE
count = 1
output = dequeue.dat

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

####### Content of SH File ########
export ORACLE_HOME=/scratch/$USER/fmwhome
export SOA_HOME=$ORACLE_HOME/AS11gR1SOA
export JAVA_HOME=$ORACLE_HOME/jdk160_11
export PATH=$JAVA_HOME/bin:$PATH

java -cp $SOA_HOME/soa/modules/oracle.soa.b2b_11.1.1/b2b.jar:$ORACLE_HOME/wlserver_10.3/server/lib/ojdbc6.jar oracle.tip.b2b.data.IPDequeue deq_sample.properties

3. Run the dequeue script created in the previous step as "./deq_sample.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