yes Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau
2014-01-31 Leonardo K. Shikida <[email protected]>: > please ignore [1] (typo) > > [] > > Leo > > > On Fri, Jan 31, 2014 at 9:26 AM, Leonardo K. Shikida <[email protected]>wrote: > >> Hi Andy and Romain >> >> Thanks for explanation. >> >> I am sorry, but what exactly should I do? >> >> In my tomee.xml, I have something like >> >> <Resource id="Default JMS Resource Adapter" >> type="ActiveMQResourceAdapter"> >> BrokerXmlConfig = broker:(tcp://localhost:61616)?persistent=true >> ServerUrl = tcp://localhost:61616 >> DataSource = MyDataSource >> </Resource> >> >> should I >> >> [1] add >> >> [2] and replace with >> >> <Resource id="Default JMS Resource Adapter" >> type="ActiveMQResourceAdapter"> >> >> BrokerXmlConfig = xbean:file:conf/activemq.xml >> ServerUrl = tcp://localhost:61616 >> DataSource = MyDataSource >> </Resource> >> >> [3] and add an activemq.xml at $TOMEE/conf like this >> >> <!-- Licensed to the Apache Software Foundation (ASF) under one or more >> contributor license agreements. See the NOTICE file distributed with this >> work for additional information regarding >> copyright ownership. The ASF licenses this file to You 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. --> >> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:amq=" >> http://activemq.apache.org/schema/core" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.springframework.org/schema/beans >> http://www.springframework.org/schema/beans/spring-beans.xsd >> http://activemq.apache.org/schema/core >> http://activemq.apache.org/schema/core/activemq-core.xsd"> >> >> <!-- Allows us to use system properties as variables in this >> configuration file --> >> <bean >> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> >> <property name="locations"> >> <value>file:${activemq.conf}/credentials.properties</value> >> </property> >> </bean> >> <broker xmlns="http://activemq.apache.org/schema/core" >> brokerName="localhost" dataDirectory="${activemq.data}"> >> <destinationPolicy> >> <policyMap> >> <policyEntries> >> <policyEntry queue=">" producerFlowControl="false" >> prioritizedMessages="true" useCache="false" expireMessagesPeriod="0" >> queuePrefetch="1" /> >> <pendingQueuePolicy> >> <vmQueueCursor /> >> </pendingQueuePolicy> >> </policyEntries> >> </policyMap> >> </destinationPolicy> >> >> <systemUsage> >> <systemUsage> >> <memoryUsage> >> <memoryUsage limit="128 mb" /> >> >> </memoryUsage> >> <storeUsage> >> <storeUsage limit="100 gb" /> >> </storeUsage> >> <tempUsage> >> <tempUsage limit="50 gb" /> >> </tempUsage> >> </systemUsage> >> </systemUsage> >> >> <transportConnectors> >> <transportConnector name="anythingHere" >> uri="broker:(tcp://localhost:61616)?persistent=true"/> >> </transportConnectors> >> </broker> >> </beans> >> >> ? >> >> TIA >> >> Leo >> >> >> >> [] >> >> Leo >> >> >> On Fri, Jan 31, 2014 at 6:33 AM, Andy <[email protected]>wrote: >> >>> On 30.01.2014 22:59, Leonardo K. Shikida wrote: >>> >>>> is it better with xbeans? >>>> >>>> [] >>>> >>>> Leo >>>> >>> The default TomEE ActiveMQ configuration using BrokerXmlConfig = >>> broker:(tcp://someHostName:61616) is quite rudimentary, but more than >>> adequate for MDB usage. Using the xbean syntax gives you complete control >>> over the ActiveMQ configuration, but it is therefore much more advanced and >>> requires a deep understanding of the ActiveMQ options. >>> >>> BrokerXmlConfig = xbean:file:conf/activemq.xml - Check out here... >>> >>> http://tomee.apache.org/jms-resources-and-mdb-container.html >>> ("Internal ActiveMQ Broker with activemq.xml") >>> >>> And here... >>> >>> http://activemq.apache.org/xml-configuration.html >>> >>> Exposing advanced ActiveMQ configuration directly through the TomEE >>> resource adapter would be a costly exercise, and is IMHO a waste of time >>> and effort when the xbean:file provides this feature. >>> >>> Andy. >>> >>> >>
