User: chirino
Date: 02/04/12 16:30:31
Added: src/etc/server/default/deploy
jbossmq-destinations-service.xml
jbossmq-service.xml
Log:
Updated jbossmq config so that it is better organized.
Revision Changes Path
1.1
jbossmq/src/etc/server/default/deploy/jbossmq-destinations-service.xml
Index: jbossmq-destinations-service.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: jbossmq-destinations-service.xml,v 1.1 2002/04/12 23:30:31 chirino Exp $
-->
<!--
| This file defines the default Queues and Topics that JBossMQ
| ships with. The default Queues and Topics are used by the
| JBoss test suite and by the sample jms programs.
|
| You can add other destinations to this file, or you can create other
| *-service.xml files to contain your application's destinations.
-->
<server>
<!-- Destination without a configured SecurityManager or without a
a SecurityConf will default to role guest with read=true, write=true,
create=false.
-->
<mbean code="org.jboss.mq.server.TopicManager"
name="jboss.mq.destination:service=Topic,name=testTopic">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
<depends
optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="durpublisher" read="true" write="true" create="true"/>
</security>
</attribute>
</mbean>
<mbean code="org.jboss.mq.server.TopicManager"
name="jboss.mq.destination:service=Topic,name=securedTopic">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
<depends
optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="publisher" read="true" write="true" create="false"/>
</security>
</attribute>
</mbean>
<mbean code="org.jboss.mq.server.TopicManager"
name="jboss.mq.destination:service=Topic,name=testDurableTopic">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
<depends
optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="durpublisher" read="true" write="true" create="true"/>
</security>
</attribute>
</mbean>
<mbean code="org.jboss.mq.server.QueueManager"
name="jboss.mq.destination:service=Queue,name=testQueue">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
<depends
optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="noacc" read="false" write="false" create="false"/>
</security>
</attribute>
</mbean>
<mbean code="org.jboss.mq.server.QueueManager"
name="jboss.mq.destination:service=Queue,name=A">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
</mbean>
<mbean code="org.jboss.mq.server.QueueManager"
name="jboss.mq.destination:service=Queue,name=B">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
</mbean>
<mbean code="org.jboss.mq.server.QueueManager"
name="jboss.mq.destination:service=Queue,name=C">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
</mbean>
<mbean code="org.jboss.mq.server.QueueManager"
name="jboss.mq.destination:service=Queue,name=D">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
</mbean>
<mbean code="org.jboss.mq.server.QueueManager"
name="jboss.mq.destination:service=Queue,name=ex">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
</mbean>
</server>
1.1 jbossmq/src/etc/server/default/deploy/jbossmq-service.xml
Index: jbossmq-service.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: jbossmq-service.xml,v 1.1 2002/04/12 23:30:31 chirino Exp $ -->
<server>
<!-- ==================================================================== -->
<!-- JBossMQ -->
<!-- ==================================================================== -->
<mbean code="org.jboss.mq.server.JBossMQService"
name="jboss.mq:service=Server">
<depends
optional-attribute-name="PersistenceManager">jboss.mq:service=PersistenceManager</depends>
<depends
optional-attribute-name="StateManager">jboss.mq:service=StateManager</depends>
</mbean>
<mbean code="org.jboss.mq.server.JBossMQServiceAdapter"
name="jboss.mq:service=SecurityAdapter">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
<depends
optional-attribute-name="InvokerService">jboss.mq:service=SecurityManager</depends>
</mbean>
<mbean code="org.jboss.mq.security.SecurityManager"
name="jboss.mq:service=SecurityManager">
</mbean>
<!--
| The MessageCache decides where to put JBossMQ message that
| are sitting around waiting to be consumed by a client.
|
| The memory marks are in Megabytes. Once the JVM memory usage hits
| the high memory mark, the old messages in the cache will start getting
| stored in the DataDirectory. As memory usage gets closer to the
| Max memory mark, the amount of message kept in the memory cache aproaches 0.
-->
<mbean code="org.jboss.mq.server.MessageCache"
name="jboss.mq:service=MessageCache">
<attribute name="HighMemoryMark">500</attribute>
<attribute name="MaxMemoryMark">600</attribute>
<depends
optional-attribute-name="CacheStore">jboss.mq:service=CacheStore</depends>
</mbean>
<!--
| The CacheStore decides where to store JBossMQ message that
| that the MessageCache has decided to move in secondary storage.
-->
<mbean code="org.jboss.mq.pm.file.CacheStore"
name="jboss.mq:service=CacheStore">
<attribute name="DataDirectory">tmp/jbossmq</attribute>
</mbean>
<!--
| The StateManager is used to keep JMS persistent state data.
| For example: what durable subscriptions are active.
-->
<!-- Old statemanager, may be used for compatibility
<mbean code="org.jboss.mq.sm.file.OldStateManager"
name="jboss.mq:service=OldStateManager">
<attribute name="StateFile">jbossmq-oldstate.xml</attribute>
</mbean>
-->
<mbean code="org.jboss.mq.sm.file.DynamicStateManager"
name="jboss.mq:service=StateManager">
<!-- This file is pulled from the configuration URL of the server -->
<attribute name="StateFile">jbossmq-state.xml</attribute>
</mbean>
<!-- The PersistenceManager is used to store messages to disk. -->
<mbean code="org.jboss.mq.pm.file.PersistenceManager"
name="jboss.mq:service=PersistenceManager">
<attribute name="DataDirectory">db/jbossmq/file</attribute>
<depends
optional-attribute-name="MessageCache">jboss.mq:service=MessageCache</depends>
</mbean>
<!--
A JDBC PersistenceManager.
The "DataSource" reference should refer to your datasource
configuration name. The datasource should have autocommit ON for the
JDBC PM to work properly. The supplied Hypersonic SQL datasource
NoTransDS is configured with that in mind. (See
hsqldb-default-service.xml for details)
The two attributes, TransactionTableName and MessageTableName, are
optional. Their default values are "jms_transaction" and
"jms_messages" respectively. There is no need to create these tables
manually, they will be created automatically for you if they are not
found. If that doesn't work for you, you can try the following SQL
setup script (HypersonicSQL):
CREATE TABLE JMS_MESSAGES
(
MESSAGEID CHAR(32) NOT NULL,
DESTINATION VARCHAR(32) NOT NULL,
MESSAGEBLOB OBJECT,
PRIMARY KEY (MESSAGEID, DESTINATION)
);
CREATE INDEX JMS_MESSAGES_DEST ON JMS_MESSAGES(DESTINATION);
CREATE TABLE JMS_TRANSACTIONS
(
ID CHAR(32)
)
-->
<!--
<mbean code="org.jboss.mq.pm.jdbc.PersistenceManager"
name="jboss.mq:service=PersistenceManager">
<depends
optional-attribute-name="DataSource">jboss.mq:service=ConnectionFactoryLoader,name=NoTransDS</depends>
<depends
optional-attribute-name="MessageCache">jboss.mq:service=MessageCache</depends>
<attribute name="TransactionTableName">jms_transaction</attribute>
<attribute name="MessageTableName">jms_messages</attribute>
</mbean>
-->
<!-- ==================================================================== -->
<!-- Invocation Layers -->
<!-- ==================================================================== -->
<!--
| InvocationLayers are the different transport methods that can
| be used to access the server.
-->
<mbean code="org.jboss.mq.il.jvm.JVMServerILService"
name="jboss.mq:service=InvocationLayer,type=JVM">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=SecurityAdapter</depends>
<attribute name="ConnectionFactoryJNDIRef">java:/ConnectionFactory</attribute>
<attribute
name="XAConnectionFactoryJNDIRef">java:/XAConnectionFactory</attribute>
<attribute name="PingPeriod">0</attribute>
</mbean>
<mbean code="org.jboss.mq.il.rmi.RMIServerILService"
name="jboss.mq:service=InvocationLayer,type=RMI">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=SecurityAdapter</depends>
<attribute name="ConnectionFactoryJNDIRef">RMIConnectionFactory</attribute>
<attribute name="XAConnectionFactoryJNDIRef">RMIXAConnectionFactory</attribute>
<attribute name="PingPeriod">60000</attribute>
</mbean>
<mbean code="org.jboss.mq.il.oil.OILServerILService"
name="jboss.mq:service=InvocationLayer,type=OIL">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=SecurityAdapter</depends>
<attribute name="ConnectionFactoryJNDIRef">ConnectionFactory</attribute>
<attribute name="XAConnectionFactoryJNDIRef">XAConnectionFactory</attribute>
<attribute name="ServerBindPort">8090</attribute>
<attribute name="PingPeriod">60000</attribute>
<attribute name="EnableTcpNoDelay">true</attribute>
</mbean>
<mbean code="org.jboss.mq.il.uil.UILServerILService"
name="jboss.mq:service=InvocationLayer,type=UIL">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=SecurityAdapter</depends>
<attribute name="ConnectionFactoryJNDIRef">UILConnectionFactory</attribute>
<attribute name="XAConnectionFactoryJNDIRef">UILXAConnectionFactory</attribute>
<attribute name="ServerBindPort">8091</attribute>
<attribute name="PingPeriod">60000</attribute>
<attribute name="EnableTcpNoDelay">true</attribute>
</mbean>
<!-- ==================================================================== -->
<!-- System Destinations -->
<!-- ==================================================================== -->
<!-- Dead Letter Queue -->
<mbean code="org.jboss.mq.server.QueueManager"
name="jboss.mq.destination:service=Queue,name=DLQ">
<depends
optional-attribute-name="JBossMQService">jboss.mq:service=Server</depends>
<depends
optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
</mbean>
</server>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development