Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Manage deployed applications using wsadmin.sh > Manage composition units using wsadmin.sh


View JMS bindings on references and services of SCA composites using scripting

We can view information on a Java Message Service (JMS) binding for a Service Component Architecture (SCA) composite. Use scripts for viewing composition units in business-level applications. The scripts display information on settings of a binding.jms element.

An SCA composite that uses JMS bindings must be a composition unit in a business-level application.

To view settings for a JMS binding on references, the composite must have defined a JMS binding in the reference. Similarly, to view settings for a JMS binding on services, the composite must have defined a JMS binding in the service.

After deployment of an SCA composite that uses JMS bindings, you can view the JMS binding settings. For information on the settings, refer to JMS binding settings for SCA composites or Section 1.4 of the SCA JMS Binding specification, Version 1.00.


Procedure

  1. Start wsadmin.sh.

  2. Optional: View online help for the viewCompUnit command.

    ### Jython

    print AdminTask.help('viewCompUnit')
    

    ### Jacl

    $AdminTask help viewCompUnit
    

  3. View all information on a composition unit, including information on any JMS binding settings.

    Use the viewCompUnit command. The command has two parameters, -blaID and -cuID, both of type String.

    ### Jython

    AdminTask.viewCompUnit('[-blaID myBLA -cuID myCompUnit]')
    

    ### Jacl

    $AdminTask viewCompUnit {-blaID myBLA -cuID myCompUnit}
    


Results

After the viewCompUnit command runs, the product displays information on the composition unit, including information on references or services that are defined in the JMS binding of the SCA composite.


Example

Suppose that we have an SCA composite composition unit named myJmsBindingComposite that has defined JMS bindings and a business-level application named myJmsBLA that contains the composition unit.

Run the viewCompUnit command to view information on the JMS binding settings.

Run the viewCompUnit command displays information resembling the following on the JMS binding sections:

JMS Binding attributes (ReferenceJMSBinding)

Specify JMS binding attributes for the composite defined in this SCA application.

Correlation Schema (correlationSchema): [RequestMsgIDToCorrelID]
Initial Context Factory (initialContextFactory): [com.ibm.websphere.naming.WsnInitialContextFactory]
jndiURL (jndiURL): [iiop://localhost:2809]
Request Connection (requestConnection): [myService]
Response Connection (responseConnection): [myReference]
Request Wire Format (requestWireFormat): [wireFormat.jmsTextXML]
Response Wire Format (responseWireFormat): [wireFormat.jmsTextXML]
JMS Binding Resources attributes (ReferenceJMSBindingResources)

Specify JMS binding resource attributes for the composite defined in this SCA application.

Component Name/Reference Name (resourceName): [myJMSFrontendComponent/helloWorldService]
Destination Name (destinationName): [jms/SCA_JMS_Request1]
Connection Factory Name (connectionFactoryName): [jms/SCA_JMS_CF]
Destination Type (destinationType): [queue]
JMS Binding Response Resources attributes (ReferenceJMSBindingResponseResources)

Specify JMS binding response resource attributes for the composite defined in this SCA application.

Component Name/Reference Name (resourceName): [myJMSFrontendComponent/helloWorldService]
Response Destination Name (responseDestinationName): [jms/SCA_JMS_Response1]
Response Connection Factory Name (responseConnectionFactoryName): [jms/SCA_JMS_CF]
Response Destination Type (responseDestinationType): [queue]
...


What to do next

Examine the displayed information to ensure that the JMS binding settings are correct.

Edit the JMS binding resource and response resource JNDI name settings as needed using the editCompUnit command.
SCA composites
Configure the SCA JMS binding
Edit JMS bindings on references and services of SCA composites using scripting
View and editing JMS bindings on references and services of SCA composites
Example: Create an SCA business-level application with scripting
Example: Creating an SCA business-level application with the console
Manage composition units using wsadmin.sh


Related


JMS binding settings for SCA composites
BLAManagement command group using wsadmin.sh
SCA JMS Binding specification

+

Search Tips   |   Advanced Search