이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 12. Configuring a Java Message Service Provider
12.1. Java Message Service 링크 복사링크가 클립보드에 복사되었습니다!
12.2. Configuring a Java Message Service Provider 링크 복사링크가 클립보드에 복사되었습니다!
You can choose from a number of Java Message Service applications to use in conjunction with the JBoss Enterprise SOA Platform.
Important
Important
- the JMS provider is running on localhost
- the connection-factory is
ConnectionFactory
- the destination-type is
queue
- the destination-name is
queue/A
12.3. Supported Java Message Services 링크 복사링크가 클립보드에 복사되었습니다!
12.4. HornetQ 링크 복사링크가 클립보드에 복사되었습니다!
12.5. Configure HornetQ for Use as the Java Message Service Provider 링크 복사링크가 클립보드에 복사되었습니다!
Warning
Procedure 12.1. Task
- Go to the HornetQ Directory:
cd SOA_ROOT/jboss-as/extras/hornetq
. Deploy It
Runant
.
12.6. Configure JBoss Messaging for Use as the Java Message Service Provider 링크 복사링크가 클립보드에 복사되었습니다!
Procedure 12.2. Task
Configure the JMS Provider
To configure JBoss Messaging, open the configuration file in a text editor:vi jboss-esb.xml
.- Modify these settings:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Important
Always include thejboss-messaging-client.jar
file on the class-path. (This file is found in theSOA_ROOT/jboss-as/client/jboss-messaging-client.jar
archive.)Note
If you want to use load balancing and fail-over capabilities, you must configure JBoss Messaging for clustering. This functionality is constantly evolving. To learn how to configure it, please consult the JBoss Messaging documentation. - Check that JBoss Messaging's Service Binding Manager configuration matches that found in the
SOA_ROOT/seam/bootstrap/deploy/remoting-service.xml
file.
12.7. ActiveMQ Java Message Service Provider 링크 복사링크가 클립보드에 복사되었습니다!
Important
12.8. IBM Websphere MQ Installation Options 링크 복사링크가 클립보드에 복사되었습니다!
- As a JCA Provider by using the Websphere MQ JCA Adapter through the <jms-jca-provider> configuration.
- As a standard JMS provider through the jms-provider configuration.
12.9. Configure IBM Websphere MQ for Use as the Java Message Service Provider 링크 복사링크가 클립보드에 복사되었습니다!
Procedure 12.3. Task
- Copy the IBM Websphere wmq.jmsra.rar file to the JBoss Enterprise SOA Platform:
cp wmq.jmsra.rar SOA_ROOT/jboss-as/server/PROFILE/deploy/
- Copy the IBM Websphere com.ibm.mqetclient.jar to the JBoss Enterprise SOA Platform:
cp com.ibm.mqetclient.jar SOA_ROOT/jboss-as/lib/
. - Open run.conf in your text editor:
vi SOA_ROOT/jboss-as/bin/run.conf
- Add this setting by modifying the JAVA_OPTS in
run.conf
:JAVA_OPTS="-DtraceEnabled=true -DtraceDestination=wmq_jca.trc -DtraceLevel=10 -DlogWriterEnabled=false"
JAVA_OPTS="-DtraceEnabled=true -DtraceDestination=wmq_jca.trc -DtraceLevel=10 -DlogWriterEnabled=false"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the file and exit.
- Open the jboss-esb.xml file in your text editor:
vi SOA_ROOT/jboss-as/server/PROFILE/deploy/jbossesb.esb/META-INF/jboss-esb.xml
- Add these settings:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the file and exit.
- Run
crtmqm -q QM1
- Run
strmqm QM1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
12.10. IBM Websphere MQ Configuration Checklist 링크 복사링크가 클립보드에 복사되었습니다!
com.ibm.mq.pcf.jar
mqcontext.jar
dhbcore.jar
com.ibm.mq.jar
(clientJAR
)com.ibm.mqjms.jar
(clientJAR
)
Websphere MQ v7.0 Client JAR
files, add the following to the items to the class-path:
com.ibm.mq.commonservices.jar
com.ibm.mq.headers.jar
com.ibm.mq.jmqi.jar
Note
JAR
files differ between MQ 5.3 and MQ 6.0. However the 6.0 JAR
files should be backward-compatible. They are not open source and therefore Red Hat does not provide them. You will have to obtain them from your WAS and MQ installs.
12.11. Java Message Service and JNDI 링크 복사링크가 클립보드에 복사되었습니다!
12.12. Configure IBM Websphere MQ to Use JNDI 링크 복사링크가 클립보드에 복사되었습니다!
Prerequisites
- IBM Websphere MQ must be installed on your system.
- Ensure Java is on your classpath.
Procedure 12.4. Task
- Run this command:
/opt/mqm/java/bin/JMSAdmin -v
java -Dcom.ibm.msg.client.commonservices.log.outputName=$MQ_JAVA_DATA_PATH/log -Dcom.ibm.msg.client.commonservices.trace.outputName=$MQ_JAVA_DATA_PATH/trace -DMQJMS_INSTALL_PATH=$MQ_JAVA_INSTALL_PATH com.ibm.mq.jms.admin.JMSAdmin $*
java -Dcom.ibm.msg.client.commonservices.log.outputName=$MQ_JAVA_DATA_PATH/log -Dcom.ibm.msg.client.commonservices.trace.outputName=$MQ_JAVA_DATA_PATH/trace -DMQJMS_INSTALL_PATH=$MQ_JAVA_INSTALL_PATH com.ibm.mq.jms.admin.JMSAdmin $*
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Open JMSAdmin.config in your text editor:
vi JMSAdmin.config
- Edit the file as per this sample code:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
If you have a listener on a different port, use it instead. (The default is 1414). - Save the file and exit.
- Define objects with these commands:
InitCtx> def cf(ConnectionFactory) qmgr(QM1) tran(CLIENT) host(10.12.58.105) BROKERQMGR(QM1)
andInitCtx> def qcf(QueueConnectionFactory) qmgr(QM1) tran(CLIENT) host(10.12.58.105)
- If you are having problems with JMSAdmin, troubleshoot the logs:
less /var/mqm/errors/AMQERR01.LOG
andless /var/mqm/qmgrs/QUEUE MANAGER NAME/errors/AMQERR01.LOG
Note
For more information, refer to http://www.ibm.com/developerworks/websphere/techjournal/0502_woolf/0502_woolf.html.
12.13. JNDI Objects Viewable with JMSAdmin 링크 복사링크가 클립보드에 복사되었습니다!
InitCtx> display qcf(QM1)
- ASYNCEXCEPTION(-1)
- CCSID(819)
- CHANNEL(SYSTEM.DEF.SVRCONN)
- CLIENTRECONNECTTIMEOUT(1800)
- COMPHDR(NONE )
- COMPMSG(NONE )
- CONNECTIONNAMELIST(10.12.58.105(1414))
- CONNOPT(STANDARD)
- FAILIFQUIESCE(YES)
- HOSTNAME(10.12.58.105)
- LOCALADDRESS()
- MAPNAMESTYLE(STANDARD)
- MSGBATCHSZ(10)
- MSGRETENTION(YES)
- POLLINGINT(5000)
- PORT(1414)
- PROVIDERVERSION(UNSPECIFIED)
- QMANAGER(QM1)
- RESCANINT(5000)
- SENDCHECKCOUNT(0)
- SHARECONVALLOWED(YES)
- SSLFIPSREQUIRED(NO)
- SSLRESETCOUNT(0)
- SYNCPOINTALLGETS(NO)
- TARGCLIENTMATCHING(YES)
- TEMPMODEL(SYSTEM.DEFAULT.MODEL.QUEUE)
- TEMPQPREFIX()
- TRANSPORT(CLIENT)
- USECONNPOOLING(YES)
- VERSION(7)
- WILDCARDFORMAT(TOPIC_ONLY)
InitCtx> display q(Q1)
- CCSID(1208)
- ENCODING(NATIVE)
- EXPIRY(APP)
- FAILIFQUIESCE(YES)
- MDMSGCTX(DEFAULT)
- MDREAD(NO)
- MDWRITE(NO)
- MSGBODY(UNSPECIFIED)
- PERSISTENCE(APP)
- PRIORITY(APP)
- PUTASYNCALLOWED(AS_DEST)
- QMANAGER(QM1)
- QUEUE(Q1)
- READAHEADALLOWED(AS_DEST)
- READAHEADCLOSEPOLICY(DELIVER_ALL)
- REPLYTOSTYLE(DEFAULT)
- TARGCLIENT(JMS)
- VERSION(7)
InitCtx> display cf(ConnectionFactory)
- ASYNCEXCEPTION(-1)
- BROKERCCSUBQ(SYSTEM.JMS.ND.CC.SUBSCRIBER.QUEUE)
- BROKERCONQ(SYSTEM.BROKER.CONTROL.QUEUE)
- BROKERPUBQ(SYSTEM.BROKER.DEFAULT.STREAM)
- BROKERQMGR(QM1)
- BROKERSUBQ(SYSTEM.JMS.ND.SUBSCRIBER.QUEUE)
- BROKERVER(UNSPECIFIED)
- CCSID(819)
- CHANNEL(SYSTEM.DEF.SVRCONN)
- CLEANUP(SAFE)
- CLEANUPINT(3600000)
- CLIENTRECONNECTTIMEOUT(1800)
- CLONESUPP(DISABLED)
- COMPHDR(NONE )
- COMPMSG(NONE )
- CONNECTIONNAMELIST(10.12.58.105(1414))
- CONNOPT(STANDARD)
- FAILIFQUIESCE(YES)
- HOSTNAME(10.12.58.105)
- LOCALADDRESS()
- MAPNAMESTYLE(STANDARD)
- MSGBATCHSZ(10)
- MSGRETENTION(YES)
- MSGSELECTION(CLIENT)
- OPTIMISTICPUBLICATION(NO)
- OUTCOMENOTIFICATION(YES)
- POLLINGINT(5000)
- PORT(1414)
- PROCESSDURATION(UNKNOWN)
- PROVIDERVERSION(UNSPECIFIED)
- PUBACKINT(25)
- QMANAGER(QM1)
- RECEIVEISOLATION(COMMITTED)
- RESCANINT(5000)
- SENDCHECKCOUNT(0)
- SHARECONVALLOWED(YES)
- SPARSESUBS(NO)
- SSLFIPSREQUIRED(NO)
- SSLRESETCOUNT(0)
- STATREFRESHINT(60000)
- SUBSTORE(BROKER)
- SYNCPOINTALLGETS(NO)
- TARGCLIENTMATCHING(YES)
- TEMPMODEL(SYSTEM.DEFAULT.MODEL.QUEUE)
- TEMPQPREFIX()
- TEMPTOPICPREFIX()
- TRANSPORT(CLIENT)
- USECONNPOOLING(YES)
- VERSION(7)
- WILDCARDFORMAT(TOPIC_ONLY)
12.14. Configure IBM Websphere MQ Using the jms-jca-provider 링크 복사링크가 클립보드에 복사되었습니다!
Procedure 12.5. Task
Configure the Adapter
The adapter name iswmq.jmsra.rar
. Copy this file into the JBoss Enterprise SOA Platform'sSOA_ROOT/jboss-as/server/PROFILE/deploy
directory.Check the Context Factory
Ensure that the initial context factory iscom.ibm.mq.jms.context.WMQInitialContextFactory
.Configure the QueueManager
Ensure that the queueManager configuration is in the <activation-config>. You will need to configure a queue manager in your own Websphere MQ installation. (Note that all of your destination queues are configured in your queue manager.)Configure the Channel
Ensure that the channel configuration is in the <activation-config> property.Note
You can configure a queue manager to use a number of different types of channel. Clients connect through server connection channels. A default server connection channel (SYSTEM.DEF.SVRCONN), is added as part of the Websphere MQ installation but it is a good idea to also create your own dedicated channels, especially if you are using extended (XA) transactions.Configure the transportType
Edit the transportType. The configuration for this is in the <activation-config> property. Websphere MQ supports two transport types ( Client and Binding).Edit the Settings
Open the configuration file in a text editor and edit it.Here is an example of a <jms-jca-provider> configuration. It shows how to set a gateway provider configuration:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
It is actually the <jms-listener> configuration that determines the gateway/message-aware characteristics of a listener. However, as far as Websphere MQ is concerned, this is only of use as a gateway listener provider. In other words, this configuration would not work as a message-aware listener for Websphere MQ. This is because it does not specify an appropriate JNDI provider URL (as used by the ServiceInvoker) for routing ESB messages to the destinations (buses) defined on the provider.Configure the JCA Adapter
The <activation-config> configures the JCA adapter so that it obtains messages from the destinations. It does not determine how messages are to be delivered to the destinations. Here is an example of a configuration that could be used as a message-aware listener's provider:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Creating a Standard JMS Provider
The settings for creating a standard JMS provider configuration are similar:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
With the standard provider, there is neither an adapter nor any <activation-config> configurations. Listeners receiving messages from the destinations defined in a standard provider do not use a JCA Adapter Inflow to obtain the messages. Instead, they need to use JNDI to find the destination and obtain the messages. This means that, for Websphere MQ, the jndi-URL must always be specified (remember that for JCA it is only required for destinations that service a Message-Aware listener).Save
Save the file and exit.
Warning
Message: Unable to get a MQ series Queue Manager or Queue Connection. Reason: failed to create connection javax.jms. JMSSecurityException: MQJMS2013: invalid security authentication supplied for MQQueueManager
Message: Unable to get a MQ series Queue Manager or Queue Connection. Reason: failed to create connection javax.jms. JMSSecurityException: MQJMS2013: invalid security authentication supplied for MQQueueManager
12.15. Configure IBM Websphere MQ to Use the JMS Router 링크 복사링크가 클립보드에 복사되었습니다!
Procedure 12.6. Task
Edit the JMSRouter Configuration
Open the JMSRouter's configuration file in a text editor and modify the settings in yourjboss-esb.xml
. Here is an example of a JMSRouter configuration for routing messages to Websphere MQ from inside an ESB action pipeline:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Save
Save the file and exit.
12.16. Configure IBM Websphere MQ to Use an Extended Transaction Client 링크 복사링크가 클립보드에 복사되었습니다!
Prerequisites
- The Extended Transactional Client bundle from IBM (not part of the default Websphere MQ installation) must be installed on the class-paths of your application server and any external client applications
- The XA Connection Factories must be configured for your WMQ JNDI namespace. See http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/umj_pjcfm.html. (Once you have configured the XA Connection Factories, you can reference them using their JNDI name in the connection-factory property of the JNDI connection property.)
Procedure 12.7. Task
Edit the jms-jca-provider Configuration
Edit thejboss-esb.xml
file in a text editor. Here is how the jms-jca-provider configuration would look for an Extended Transaction Client configuration. (In this example, the XA Connection Factory that has been configured in the WMQ JNDI namespace is called WMQXAConnectionFactory.)Note
Inflow related configurations (adapter, <activation-config> etc) were intentionally omitted as they are not relevant to the Extended Client configuration:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configuring for Use with the JMSRouter
This example shows how to use the same XA Connection Factory on the JMSRouter:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Important
An important point to note about Websphere MQ and XA is that it does not support both getting and putting messages concurrently on the same Queue Manager Channel. For this reason, it is a good idea to configure a dedicated channel for each component that gets or puts messages into a Websphere MQ destination in the context of XA transactions.- Set the max-xa-sessions-per-connection property in
jboss-esb.xml
to1
. Save
Save the file and exit.- Configure a dedicated queue manager channel for each component that obtains or sends messages to a Websphere MQ destination.
- Make sure the GET and PUT properties on each of the Websphere MQ destinations are not set to
Inhibit
. (This can be happen when the destination is created and it results in the ESB being unable to obtain or send messages.)
12.17. Configure IBM Websphere MQ to Use Plain JMS Interactions 링크 복사링크가 클립보드에 복사되었습니다!
Prerequisites
- IBM Websphere MQ pre-configured as the JBoss Enterprise SOA Platform's JMS provider
Procedure 12.8. Task
- Navigate to the
bin
directory:cd /opt/mqm/java/bin
. - Launch
JMSAdmin
. - Use this program to administer your JNDI settings and obtain a ConnectionFactory for Plain JMS interactions.
Note
For more information about using JMSAdmin, refer to http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp.
12.18. Validate Your IBM Websphere MQ Installation 링크 복사링크가 클립보드에 복사되었습니다!
Prerequisites
- IBM Websphere MQ pre-configured as the JBoss Enterprise SOA Platform's JMS provider
Procedure 12.9. Task
- Make a queue manager called QM1:
crtmqm -q QM1
- Start runmqsc:
runmqsc QM1
- Input the following settings when prompted:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Exit the program.
- Copy
com.ibm.mqetclient.jar
from your Websphere MQ installation to your server:cp com.ibm.mqetclient.jar SOA_ROOT/jboss-as/PROFILE/lib/
- Copy
wmq.jmsra.ivt.ear
from your Websphere MQ installation to your server:cp wmq.jmsra.ivt.ear SOA_ROOT/jboss-as/server/PROFILE/deploy
- Copy
wmq.jmsra.rar
from your Websphere MQ installation to your server:cp wmq.jmsra.rar SOA_ROOT/jboss-as/server/PROFILE/deploy
- Create a data source file in a text editor (be sure to change the IP address to that of your WSMQ server):
vi SOA_ROOT/jboss-as/server/PROFILE/deploy/wsmq-ds.xml
Here is a sample configuration:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the file as
and exit your text editor.
- Launch a web browser and go to http://localhost:8080/WMQ_IVT/.This brings up the IVT ("Install Verification Test").
- Run the normal test and the transactional test.
Note
For more information, refer to http://www.ibm.com/developerworks/websphere/library/techarticles/0710_ritchie/0710_ritchie.html.
12.19. IBM Websphere MQ Java Message Service Provider Diagnostic Tracing Functionality 링크 복사링크가 클립보드에 복사되었습니다!
12.20. Enable Diagnostic Tracing for the IBM Websphere MQ JCA Adapter 링크 복사링크가 클립보드에 복사되었습니다!
./run.sh
shell script, you should use the following approach:
Procedure 12.10. Task
Open the run.conf File
Open the file in a text editor:vi SOA_ROOT/jboss-as/bin/run.conf
.Edit the run.conf File
Appending the following lines onto the end of the file:Settings to enable WebSphere MQ resource adapter trace
# Settings to enable WebSphere MQ resource adapter trace JAVA_OPTS="$JAVA_OPTS -DtraceEnabled=true -DtraceDestination=wmq_jca.trc -DtraceLevel=10 -DlogWriterEnabled=false"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable Client Logging
Still in the text editor, set the MQJMS_TRACE_LEVEL property:Settings to enable WebSphere MQ resource adapter and client trace
# Settings to enable WebSphere MQ resource adapter and client trace JAVA_OPTS="$JAVA_OPTS -DtraceEnabled=true -DtraceDestination=wmq_jca.trc -DtraceLevel=10 -DlogWriterEnabled=false -DMQJMS_TRACE_LEVEL=base"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Save
Save the file and exit.
12.21. Enable Diagnostic Tracing for the IBM Websphere MQ Java Client 링크 복사링크가 클립보드에 복사되었습니다!
Procedure 12.11. Task
Call the enableTrace Static Method
Call thecom.ibm.mq.MQEnvironment
's enableTrace static method.
Procedure 12.12. Task
Edit the Configuration
Open the configuration file in a text editor:vi SOA_ROOT/jboss-as/server/PROFILE/deploy/jbossesb.esb/META-INF/jboss-esb.xml
.- Add these parameters:
<property name="jndi-prefixes" value="connectionFactory. , destination"/> <property name="jndi-connection-factory" value="org.apache.qpid.jndi.PropertiesFileInitialContextFactory"/> <property name="connectionFactory.qpidConnectionFactory" value="amqp:// guest:guest@clientid/virtualHost?brokerlist='tcp://localhost:5672'"/> <property name="destination.[queueName]Queue" value="direct://amq.direct//[queueName]? routingkey=[routingkeyname]"/>
<property name="jndi-prefixes" value="connectionFactory. , destination"/> <property name="jndi-connection-factory" value="org.apache.qpid.jndi.PropertiesFileInitialContextFactory"/> <property name="connectionFactory.qpidConnectionFactory" value="amqp:// guest:guest@clientid/virtualHost?brokerlist='tcp://localhost:5672'"/> <property name="destination.[queueName]Queue" value="direct://amq.direct//[queueName]? routingkey=[routingkeyname]"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Save
Save the file and exit.Add the Requisite Files to the Class-Path
Add these .JAR files to the classpath:qpid-common-0.6.jar
qpid-client-0.6.jar
Procedure 12.13. Task
Edit the Configuration
Open the configuration file in a text editor (vi SOA_ROOT/jboss-as/server/PROFILE/deploy/jbossesb.esb/META-INF/jboss-esb.xml
) and set these parameters:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Save
Save the file and exit.Add the Requisite Files to the Class-Path
Add these .JAR files to the classpath (they are located in thetibco/ems/clients/java
directory):jaxp.jar
jndi.jar
tibcrypt.jar
tibjmsapps.jar
tibrvjms.jar
jms.jar
jta-spec1_0_1.jar
tibjmsadmin.jar
tibjms.jar
12.24. Configuring JBoss to Use the SOA Service Manager Registry 링크 복사링크가 클립보드에 복사되었습니다!
- To configure the settings, open the properties file:
vi SOA_ROOT/jboss-as/server/PROFILE/deploy/jbossesb.sar/jbossesb-properties.xml
- Locate the following lines:
<property name="org.jboss.soa.esb.registry.queryManagerURI" value="org.apache.juddi.registry.local.InquiryService#inquire"/> <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="org.apache.juddi.registry.local.PublishService#publish"/>
<property name="org.jboss.soa.esb.registry.queryManagerURI" value="org.apache.juddi.registry.local.InquiryService#inquire"/> <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="org.apache.juddi.registry.local.PublishService#publish"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change them to this:<property name="org.jboss.soa.esb.registry.queryManagerURI" value="http://<server-name>:9901/uddi/inquiry_v2"/> <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="http://<server-name>:9901/uddi/publish_v2"/> <property name="org.jboss.soa.esb.registry.uddi.maxRows" value="100"/>
<property name="org.jboss.soa.esb.registry.queryManagerURI" value="http://<server-name>:9901/uddi/inquiry_v2"/> <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="http://<server-name>:9901/uddi/publish_v2"/> <property name="org.jboss.soa.esb.registry.uddi.maxRows" value="100"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Edit the queryManagerURI and the lifeCycleManagerURI to match the URLs from your installation of SOA Workbench:
<property name="org.jboss.soa.esb.registry.uddi.maxRows" value="100"/> <property name="org.jboss.soa.esb.registry.queryManagerURI" value="http://<server-name>:9901/uddi/inquiry_v2"/> <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="http://<server-name>:9901/uddi/publish_v2"/>
<property name="org.jboss.soa.esb.registry.uddi.maxRows" value="100"/> <property name="org.jboss.soa.esb.registry.queryManagerURI" value="http://<server-name>:9901/uddi/inquiry_v2"/> <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="http://<server-name>:9901/uddi/publish_v2"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Locate this line:
<property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.LocalTransport"/>
<property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.LocalTransport"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change it to this:<property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.AxisTransport"/>
<property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.AxisTransport"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Within jbossesb-properties.xml, change this to match the SOA Workbench username and password that you will be using:
<property name="org.jboss.soa.esb.registry.user" value="administrator"/> <property name="org.jboss.soa.esb.registry.password" value="password"/>
<property name="org.jboss.soa.esb.registry.user" value="administrator"/> <property name="org.jboss.soa.esb.registry.password" value="password"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the file and exit.
12.25. Adding Axis and Common-Discovery Files 링크 복사링크가 클립보드에 복사되었습니다!
- Download axis-bin-1_4.tar.gz from http://ws.apache.org/axis/ and extract axis-1.4.jar and commons-discovery-0.2.jar (or later).
- Copy these two files into the lib directory:
cp *jar SOA_ROOT/jboss-as/server/PROFILE/lib
.
12.26. Configuring the SOA Workbench 링크 복사링크가 클립보드에 복사되었습니다!
- To apply the guest role to a guest user to grant anonymous access, go into the Organization Tree and click on the top-level registry node in the SOA Workbench hierarchy.
Note
SOA Workbench is a section of the SOA Service Manager Registry that acts as a third party UDDI registry provider. - Click on the second-level “Security” tab (within the Workbench hierarchy).
- Click “Manage Role” for “Guest” under “Role Memberships.
- Search for the user “guest”.
- Select the checkbox next to “guest” and click “Apply".
12.27. Configuring the Workflow 링크 복사링크가 클립보드에 복사되었습니다!
- To change the workflow so that services are published upon creation, click on the “Configure” tab and then select “Workflow”.
- View the Workflow Definition, save it to your local disk, and then change the function type line under @create to <function type="publish" /> and the step attribute to “100”.
- Save this.
- Update the workflow to the local copy you have just saved.
12.28. Managing Services 링크 복사링크가 클립보드에 복사되었습니다!
- Use the "Search" option to find services. This feature also displays information about each service, including a description, its current state, its version number and the number of alerts it has generated. Services are registered in the SOA Service Workbench so manage them directly through its graphical user interface.
12.29. Diagnostics 링크 복사링크가 클립보드에 복사되었습니다!
- If you encounter an error when configuring and updating the
Workflow
, you can verify it has been modified correctly by checking that its configuration has changed from the original configuration (which looked like this):Copy to Clipboard Copied! Toggle word wrap Toggle overflow Rather, it should now look like this:Copy to Clipboard Copied! Toggle word wrap Toggle overflow