From activemq-commits-return-3145-apmail-geronimo-activemq-commits-archive=geronimo.apache.org@geronimo.apache.org Fri Aug 11 00:11:02 2006 Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 91629 invoked from network); 11 Aug 2006 00:11:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2006 00:11:01 -0000 Received: (qmail 8182 invoked by uid 500); 11 Aug 2006 00:11:01 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 8143 invoked by uid 500); 11 Aug 2006 00:11:01 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 8125 invoked by uid 99); 11 Aug 2006 00:11:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 17:11:01 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 17:10:55 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 479321A9820; Thu, 10 Aug 2006 17:10:29 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r430599 [2/3] - in /incubator/activemq/site: ./ cimero-editor.data/ Date: Fri, 11 Aug 2006 00:10:26 -0000 To: activemq-commits@geronimo.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060811001029.479321A9820@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: incubator/activemq/site/developing-activemq.html URL: http://svn.apache.org/viewvc/incubator/activemq/site/developing-activemq.html?rev=430599&r1=430598&r2=430599&view=diff ============================================================================== --- incubator/activemq/site/developing-activemq.html (original) +++ incubator/activemq/site/developing-activemq.html Thu Aug 10 17:10:25 2006 @@ -277,7 +277,7 @@
Developing ActiveMQ
--> + + + + +How do I add my own plugins + + + + + +
+ + + + + + +
+ + + +
+ +
+ + + + + + +
+ + + + + +
+ + +
+ + +

See Developing Plugins for how to add your own functionality into Apache ActiveMQ

+ +
+
+
+ + + + + + \ No newline at end of file Modified: incubator/activemq/site/how-do-i-embed-a-broker-inside-a-connection.html URL: http://svn.apache.org/viewvc/incubator/activemq/site/how-do-i-embed-a-broker-inside-a-connection.html?rev=430599&r1=430598&r2=430599&view=diff ============================================================================== --- incubator/activemq/site/how-do-i-embed-a-broker-inside-a-connection.html (original) +++ incubator/activemq/site/how-do-i-embed-a-broker-inside-a-connection.html Thu Aug 10 17:10:25 2006 @@ -353,6 +353,76 @@ </beans> +

Using Spring 2.0

+ +

If you are using Spring 2.0 and ActiveMQ 4.1 or later (and xbean-spring 2.5 or later) you can embed the ActiveMQ broker XML inside any regular Spring.xml file without requiring the above factory bean. e.g. here is an example of a regular Spring XML file in Spring 2.0 which also configures a broker.

+ +
+
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:amq="http://activemq.org/config/1.0"
+  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.org/config/1.0 http://people.apache.org/repository/org.apache.activemq/xsds/activemq-core-4.1-incubator-SNAPSHOT.xsd">
+
+  <!--  lets create an embedded ActiveMQ Broker -->
+  <amq:broker useJmx="false" persistent="false">
+    <amq:transportConnectors>
+      <amq:transportConnector uri="tcp://localhost:0" />
+    </amq:transportConnectors>
+  </amq:broker>
+
+  <!-- JMS ConnectionFactory to use, configuring the embedded broker using XML -->
+  <bean id="jmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
+    <property name="brokerURL" value="vm://localhost" />
+  </bean>
+
+  <!-- Spring JMS Template -->
+  <bean id="myJmsTemplate" class="org.springframework.jms.core.JmsTemplate">
+    <property name="connectionFactory">
+      <!-- lets wrap in a pool to avoid creating a connection per send -->
+      <bean class="org.springframework.jms.connection.SingleConnectionFactory">
+        <property name="targetConnectionFactory">
+          <ref local="jmsFactory" />
+        </property>
+      </bean>
+    </property>
+  </bean>
+
+  <!-- a sample POJO which uses a Spring JmsTemplate -->
+  <bean id="producer" class="org.apache.activemq.spring.SpringProducer">
+    <property name="template">
+      <ref bean="myJmsTemplate"></ref>
+    </property>
+
+    <property name="destination">
+      <ref bean="destination" />
+    </property>
+
+    <property name="messageCount">
+      <value>10</value>
+    </property>
+  </bean>
+
+
+  <!-- a sample POJO consumer -->
+  <bean id="consumer" class="org.apache.activemq.spring.SpringConsumer">
+    <property name="template">
+      <ref bean="myJmsTemplate"></ref>
+    </property>
+
+    <property name="destination">
+      <ref bean="destination" />
+    </property>
+  </bean>
+
+  <!--  TODO lets use the better element... -->
+  <bean id="destination" class="org.apache.activemq.command.ActiveMQQueue" autowire="constructor">
+    <constructor-arg>
+      <value>org.apache.activemq.spring.Test.spring.embedded</value>
+    </constructor-arg>
+  </bean>
+</beans>
+
+

Using ActiveMQConnectionFactory

An embedded broker can also be created using an ActiveMQConnectionFactory and using a vm connector as a uri. e.g. ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");

@@ -401,8 +471,8 @@ Modified: incubator/activemq/site/kaha-persistence.html URL: http://svn.apache.org/viewvc/incubator/activemq/site/kaha-persistence.html?rev=430599&r1=430598&r2=430599&view=diff ============================================================================== --- incubator/activemq/site/kaha-persistence.html (original) +++ incubator/activemq/site/kaha-persistence.html Thu Aug 10 17:10:25 2006 @@ -276,10 +276,9 @@ -
Very New!
-

This feature is only available in snapshots and releases on and after April 22nd 2006

+

Kaha Peristence is a storage solution written especially for message persistence and is part of the ActiveMQ project. It's tuned to provide optimal performance for typical message usage patterns, which involves writing/reading and discarding messages that are persisted very quickly.

-

Kaha Peristence is a storage solution written especially for message persistence and is part of the ActiveMQ project. It's tuned to provide optimal performance for typical message usage patterns, which involves writing/reading and discarding messages that are persisted very quickly.

+

Data stored in Kaha is appended to data logs - the log files are discarded once there is no longer interest in the data contained in the log.

@@ -293,7 +292,7 @@ <transportConnector uri="tcp://localhost:61616"/> </transportConnectors> <persistenceAdapter> - <kahaPersistentAdaptor dir = "activemq-data"/> + < kahaPersistenceAdapter dir = "activemq-data" maxDataFileLength = "33554432"/> </persistenceAdapter> </broker>
@@ -306,8 +305,8 @@ Modified: incubator/activemq/site/spring-support.html URL: http://svn.apache.org/viewvc/incubator/activemq/site/spring-support.html?rev=430599&r1=430598&r2=430599&view=diff ============================================================================== --- incubator/activemq/site/spring-support.html (original) +++ incubator/activemq/site/spring-support.html Thu Aug 10 17:10:25 2006 @@ -300,6 +300,69 @@

From 1.1 of ActiveMQ onwards you can also use JNDI to configure ActiveMQ within Spring. This example shows how to configure Spring using ActiveMQ's JNDI Support.

+ +

Using Spring 2.0

+ +

If you are using Spring 2.0 and ActiveMQ 4.1 or later (and xbean-spring 2.6 or later) you can embed the ActiveMQ broker XML inside any regular Spring.xml file without requiring the above factory bean. e.g. here is an example of a regular Spring XML file in Spring 2.0 which also configures a broker.

+ +
+
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:amq="http://activemq.org/config/1.0"
+  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.org/config/1.0 http://people.apache.org/repository/org.apache.activemq/xsds/activemq-core-4.1-incubator-SNAPSHOT.xsd">
+  
+  <!--  lets create an embedded ActiveMQ Broker -->
+  <amq:broker useJmx="false" persistent="false">
+    <amq:transportConnectors>
+      <amq:transportConnector uri="tcp://localhost:0" />
+    </amq:transportConnectors>
+  </amq:broker>
+
+   <!--  ActiveMQ destinations to use  -->
+  <amq:queue id="destination"  physicalName="org.apache.activemq.spring.Test.spring.embedded"/>
+
+  <!-- JMS ConnectionFactory to use, configuring the embedded broker using XML -->
+  <amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost"/>
+  
+
+  <!-- Spring JMS Template -->
+  <bean id="myJmsTemplate" class="org.springframework.jms.core.JmsTemplate">
+    <property name="connectionFactory">
+      <!-- lets wrap in a pool to avoid creating a connection per send -->
+      <bean class="org.springframework.jms.connection.SingleConnectionFactory">
+        <property name="targetConnectionFactory">
+          <ref local="jmsFactory" />
+        </property>
+      </bean>
+    </property>
+  </bean>
+
+  <!-- a sample POJO which uses a Spring JmsTemplate -->
+  <bean id="producer" class="org.apache.activemq.spring.SpringProducer">
+    <property name="template">
+      <ref bean="myJmsTemplate"></ref>
+    </property>
+
+    <property name="destination">
+      <ref bean="destination" />
+    </property>
+
+    <property name="messageCount">
+      <value>10</value>
+    </property>
+  </bean>
+
+  <!-- a sample POJO consumer -->
+  <bean id="consumer" class="org.apache.activemq.spring.SpringConsumer">
+    <property name="template" ref="myJmsTemplate"/>
+    <property name="destination" ref="destination"/>
+  </bean>
+
+</beans>
+
+ +

This allows you to configure JMS artifacts like destinations and connection factories together with the entire broker.

+

Working with Spring's JmsTemplate

Spring supports a handy abstraction, JmsTemplate, which allows you to hide some of the lower level JMS details when sending messages etc.

@@ -371,8 +434,8 @@ Modified: incubator/activemq/site/team.html URL: http://svn.apache.org/viewvc/incubator/activemq/site/team.html?rev=430599&r1=430598&r2=430599&view=diff ============================================================================== --- incubator/activemq/site/team.html (original) +++ incubator/activemq/site/team.html Thu Aug 10 17:10:25 2006 @@ -531,6 +531,10 @@   + Mathew Kuppe + 360 Treasury Systems + + Mike Perham   @@ -608,8 +612,8 @@