Author: unico Date: Fri Aug 13 05:43:47 2004 New Revision: 36343 Added: cocoon/branches/BRANCH_2_1_X/src/blocks/eventcache/conf/jmslistener.xconf cocoon/branches/BRANCH_2_1_X/src/blocks/jms/conf/jms-connection-manager.xconf cocoon/branches/BRANCH_2_1_X/src/blocks/jms/conf/jms-connection-manager.xroles Log: port changes from 2.2: enhanced JMS support
Added: cocoon/branches/BRANCH_2_1_X/src/blocks/eventcache/conf/jmslistener.xconf ============================================================================== --- (empty file) +++ cocoon/branches/BRANCH_2_1_X/src/blocks/eventcache/conf/jmslistener.xconf Fri Aug 13 05:43:47 2004 @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<!-- + Copyright 1999-2004 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<xconf xpath="/cocoon" unless="[EMAIL PROTECTED]'org.apache.cocoon.caching.impl.JMSEventMessageListener']"> + <component class="org.apache.cocoon.caching.impl.JMSEventMessageListener" + role="org.apache.cocoon.caching.impl.JMSEventMessageListener" logger="core.jms"> + <parameter name="connection" value="local-topics"/> + <parameter name="topic" value="topic1"/> + <!-- + <parameter name="eventcache-role" value="org.apache.cocoon.caching.Cache/EventAware"/> + --> + </component> +</xconf> Added: cocoon/branches/BRANCH_2_1_X/src/blocks/jms/conf/jms-connection-manager.xconf ============================================================================== --- (empty file) +++ cocoon/branches/BRANCH_2_1_X/src/blocks/jms/conf/jms-connection-manager.xconf Fri Aug 13 05:43:47 2004 @@ -0,0 +1,48 @@ +<?xml version="1.0"?> +<!-- + Copyright 1999-2004 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<xconf xpath="/cocoon" unless="jms-connection-manager"> + <!-- + + | Configuration of a set JMS Connections. + | Three types of connections can be configured: + | - general <connection>s: created by a call to ConnectionFactory.createConnection() + | - <topic-connection>s: created by a call to TopicConnectionFactory.createTopicConnection() + | - <queue-connection>s: created by a call to QeueuConnectionFactory.createQueueConnection() + | + | Each connection must have a unique name. This is the name other components + | use to retrieve it. + | + | All connection types support the same set of parameters: + | - javax.naming.*: properties used to create the initial JNDI context. + | JNDI parameters must be specified with their literal values here. + | For example, javax.naming.Context.INITIAL_CONTEXT_FACTORY is + | equivalent to "java.naming.factory.initial". + | - connection-factory: the JNDI lookup name of the javax.jms.ConnectionFactory service. + | - username / password: optional connection credentials + + --> + <jms-connection-manager logger="core.jms"> + <topic-connection name="local-topics"> + <parameter name="java.naming.factory.initial" value="org.exolab.jms.jndi.InitialContextFactory"/> + <parameter name="java.naming.provider.url" value="rmi://localhost:1099/"/> + <!-- OpenJMS RMI topic connection factory --> + <parameter name="connection-factory" value="JmsTopicConnectionFactory"/> + <!-- + <parameter name="username" value="user"/> + <parameter name="password" value="secret"/> + --> + </topic-connection> + </jms-connection-manager> +</xconf> Added: cocoon/branches/BRANCH_2_1_X/src/blocks/jms/conf/jms-connection-manager.xroles ============================================================================== --- (empty file) +++ cocoon/branches/BRANCH_2_1_X/src/blocks/jms/conf/jms-connection-manager.xroles Fri Aug 13 05:43:47 2004 @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<!-- + Copyright 1999-2004 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<xroles xpath="/role-list" unless="[EMAIL PROTECTED]'jms-connection-manager']"> + + <role name="org.apache.cocoon.components.jms.JMSConnectionManager" + shorthand="jms-connection-manager" + default-class="org.apache.cocoon.components.jms.JMSConnectionManagerImpl"/> + +</xroles> \ No newline at end of file