imqobjmgr - manage Message Queue administered objects
/usr/bin/imqobjmgr subcommand [[option]...]
/usr/bin/imqobjmgr -i fileName
/usr/bin/imqobjmgr -h | [-H] | -help | -Help
/usr/bin/imqobjmgr -v
imqobjmgr manages Message Queue administered objects in an object store accessible using JNDI. Administered objects allow JMS clients to be provider-independent by insulating them from provider-specific naming and configuration formats.
imqobjmgr supports five management subcommands. These subcommands, and their corresponding options follow the imqobjmgr command on the command line. See USAGE and OPTIONS.
The following subcommands are supported:
add
delete
list
query
update
You can use the -i option to specify the name of an input file that uses java property file syntax to represent all or part of any imqobjmgr subcommand clause. The -f, -s, and -pre options can be used with any imqobjmgr subcommand.
The following options are supported:
-f
-h | -help
-H | -Help
-i fileName
-j attribute=value
-javahome
-l lookupName
-o attribute=value
-pre
-r read-only_state
-s
-t type
q = queue t = topic cf = ConnectionFactory qf = queueConnectionFactory tf = topicConnectionFactory xcf = XA ConnectionFactory (distributed transactions) xqf = XA queueConnectionFactory (distributed transactions) xtf = XA topicConnectionFactory (distributed transactions) e = SOAP endpoint (used to support SOAP messaging)
-v
This section provides information on subcommands, options, and attribute value pairs.
The following subcommands and corresponding options are supported:
add -t type -l lookupName [-o attribute=value]... - j attribute=value...
delete -t type -l lookupName -j attribute=value...
list [-t type] -j attribute=value...
query -l lookupName -j attribute=value...
update -l lookupName [-o attribute=value]... -j attribute=value...
The following attribute value pairs are supported for the specified administered object types:
Type = ConnectionFactories: ConnectionFactory, TopicConnectionFactory, QueueConnectionFactory, XAConnectionFactory, XATopicConnectionFactory, and XAQueueConnectionFactory
imqAckOnAcknowledge
Default: not specified
imqAckOnProduce
Default: not specified
imqAckTimeout
Default: 0 (no timeout)
imqAddressList
Default: not specified
imqAddressListBehavior
Default: Priority
imqAddressListIterations
Default: 1
imqBrokerHostName
Value: String
Default:localhost
imqBrokerHostPort
Value: Integer
Default: 7676
imqBrokerServicePort
Value: Integer
Default: 0
imqConfiguredClientID
Default: no ID specified
imqConnectionFlowCount
Default: 100
imqConnectionFlowLimit
Default: 1000
imqConnectionFlowLimitEnabled
Default: false
imqConnectionType
Value: String (TCP, TLS, HTTP).
Default: TCP
imqConnectionURL
Value: String
Default: http://localhost/imq/tunnel
imqConsumerFlowLimit
Default: 1000
imqConsumerFlowThreshold
Default: 50
imqDefaultPassword
Default: guest
imqDefaultUsername
Default: guest
imqDisableSetClientID
Default: false
imqJMSDeliveryMode
Default: 2
imqJMSExpiration
Default: 0 (does not expire)
imqJMSPriority
Default: 4
imqLoadMaxToServerSession
Default: true
imqOverrideJMSDeliveryMode
Default: false
imqOverrideJMSExpiration
Default: false
imqOverrideJMSHeadersToTemporaryDestinations
Default: false
imqOverrideJMSPriority
Default: false
imqQueueBrowserMaxMessagesPerRetrieve
Default: 1000
imqBrowserRetrieveTimeout
Default: 60,000
imqReconnectAttempts
Default: 0
imqReconnectEnabled
Default: false
imqReconnectInterval
Default: 3000
imqSetJMSXAppID
Default: false
imqSetJMSXConsumerTXID
Default: false
imqSetJMSXProducerTXID
Default: false
imqSetJMSXRcvTimestamp
Default: false
imqSetJMSXUserID
Default: false
imqSSLIsHostTrusted
Value: Boolean
Default: true
Type = Destinations: Topic and Queue
imqDestinationDescription
Default: no description
imqDestinationName
Default: Untitled_Destination_Object
Type = Endpoint (SOAP Endpoint)
imqEndpointDescription
Default: A description for the endpoint object
imqEndpointName
Default: Untitled_Endpoint_Object
imqSOAPEndpointList
Default: no url
Example 1 Adding a Topic Administered Object to an Object Store
Where JNDI lookup name=myTopic and imqDestinationName=MyTestTopic, the following command adds to an LDAP server object store:
imqobjmgr add -t t -l "cn=myTopic"\ -o "imqDestinationName=MyTestTopic"\ -j "java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory"\ -j "java.naming.provider.url=ldap://mydomain.com:389/o=imq"
Where JNDI lookup name=myTopic and imqDestinationName=MyTestTopic, the following command adds to a file system object store:
imqobjmgr add -t -l "cn=myTopic"\ -o "imqDestinationName=MyTestTopic"\ -j \ "java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory"\ -j "java.naming.provider.url=file:/home/foo/imq_admin_objects"
Where JNDI lookup name=myTopic and imqDestinationName=MyTestTopic, the following command adds to a file system object store, using an input file:
imqobjmgr -i inputfile
The associated input file consists of the following:
cmdtype=add obj.type=t obj.lookupName=cn=myTopic obj.attrs.imqDestinationName=MyTestTopic objstore.attrs.java.naming.factory.initial=com.sun.jndi.fscontext.\ RefFSContextFactory objstore.attrs.java.naming.provider.url=file:/home/foo/imq_admin_objects
Example 2 Adding a QueueConnectionFactory Administered Object to an Object Store
Where JNDI lookup name=myQCF, read-only state=true, imqAddressList=mq://foohost:777/jms, the following command adds to an LDAP server object store:
imqobjmgr add -t qf -l "cn=myQCF" -r true\ -o "imqAddressList=mq://foohost:777/jms"\ -j "java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory"\ -j "java.naming.provider.url=ldap://mydomain.com:389/o=imq"\
Where JNDI lookup name=myQCF, read-only state=true, imqAddressList=mq://foohost:777/jms, the following command adds to an LDAP server object store using an input file:
imqobjmgr -i inputfile
The associated input file consists of the following:
cmdtype=add obj.type=qf obj.lookupName=cn=myQCF obj.readOnly=true obj.attrs.imqAddressList=mq://foohost:777/jms objstore.attrs.java.naming.factory.initial=com.sun.jndi.\ ldap.LdapCtxFactory objstore.attrs.java.naming.provider.url=ldap://mydomain.com:389/o=imq
Where JNDI lookup name=myQCF, read-only state=true, imqAddressList=mq://foohost:777/jms, the following command adds to an LDAP server object store, using both an input file and command options:
imqobjmgr add -t qf -l "cn=myQCF"\ -o "imqAddressList=mq://foohost:777/jms"\ -i inputfile
The associated input file consists of the following:
objstore.attrs.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory objstore.attrs.java.naming.provider.url=ldap://mydomain.com:389/o=imq
Example 3 Deleting a Topic Administered Object from an Object Store
Where JNDI lookup name=myTopic and no confirmation is requested, the following command deletes from an LDAP server object store:
imqobjmgr delete -f -l "cn=myTopic"\ -j "java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory"\ -j "java.naming.provider.url=ldap://mydomain.com:389/o=imq"
Example 4 Querying Information About a Topic Administered Object
Where JNDI lookup name=myTopic, the following command queries from an LDAP server object store using simple authentication scheme:
imqobjmgr query -l "cn=myTopic"\ -j "java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory"\ -j "java.naming.provider.url=ldap://mydomain.com:389/o=imq"\ -j "java.naming.security.authentication=simple"\ -j "java.naming.security.principal=uid=foo,ou=imqobjmgr,o=imq"\ -j "java.naming.security.credentials=foo"
The following exit values are returned:
0
>0
See attributes(5) for descriptions of the following attributes:
|
imqadmin(1M), imqcmd(1M), imqbrokerd(1M), imqkeytool(1M), imqusermgr(1M), attributes(5)
Sun Java System Message Queue Administrator's Guide
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |