[jboss-svn-commits] JBL Code SVN: r23014 - in labs/jbossesb/workspace/skeagh: examples and 25 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Sep 23 08:44:34 EDT 2008


Author: beve
Date: 2008-09-23 08:44:34 -0400 (Tue, 23 Sep 2008)
New Revision: 23014

Added:
   labs/jbossesb/workspace/skeagh/examples/
   labs/jbossesb/workspace/skeagh/examples/helloworld/
   labs/jbossesb/workspace/skeagh/examples/helloworld/README.TXT
   labs/jbossesb/workspace/skeagh/examples/helloworld/activemq.xml
   labs/jbossesb/workspace/skeagh/examples/helloworld/osgi.bnd
   labs/jbossesb/workspace/skeagh/examples/helloworld/pom.xml
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/helloworld/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/helloworld/HelloworldActivator.java
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/helloworld/MyTestService.java
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/resources/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/resources/jboss-esb.xml
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/helloworld/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/helloworld/HelloworldActivatorTest.java
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/helloworld/jboss-esb.xml
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/META-INF/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/META-INF/jbossesb/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/META-INF/jbossesb/busconfig/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/META-INF/jbossesb/busconfig/jms/
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/META-INF/jbossesb/busconfig/jms/default.properties
   labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/log4j.xml
   labs/jbossesb/workspace/skeagh/examples/pom.xml
Modified:
   labs/jbossesb/workspace/skeagh/routing/jms/osgi.bnd
   labs/jbossesb/workspace/skeagh/routing/pom.xml
   labs/jbossesb/workspace/skeagh/runtime/osgi.bnd
Log:
Adding example. This is not working yet but others might have ideas.
This is not enable in the root pom and will not break the build.


Added: labs/jbossesb/workspace/skeagh/examples/helloworld/README.TXT
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/README.TXT	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/README.TXT	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,16 @@
+About This Example:
+===================
+     This example illustrates a simple JBossESB 5.0 helloworld example.
+
+
+How to Run?
+===========
+     Requirements:
+        1.  JDK 1.5
+        2.  Maven 2.x (http://maven.apache.org/download.html)
+
+     Running:
+        1.  run "mvn activemq:run".
+        2.  Open a new console window ("Window 2")
+        3.  run "mvn clean install pax:provision"
+k

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/activemq.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/activemq.xml	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/activemq.xml	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,20 @@
+<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-2.0.xsd
+  http://activemq.org/config/1.0 http://activemq.apache.org/schema/activemq-core.xsd
+  http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
+
+    <!-- Allows us to use system properties as variables in this configuration file -->
+    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
+
+    <broker xmlns="http://activemq.org/config/1.0" useJmx="false"  dataDirectory="${activemq.base}/target/activemq">
+
+        <transportConnectors>
+            <transportConnector uri="tcp://localhost:61717"/>
+        </transportConnectors>
+
+    </broker>
+
+</beans>
\ No newline at end of file

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/osgi.bnd
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/osgi.bnd	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/osgi.bnd	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,5 @@
+#-----------------------------------------------------------------
+# Use this file to add customized Bnd instructions for the bundle
+#-----------------------------------------------------------------
+Export-Package: org.jboss.esb.examples*
+Bundle-Activator: org.jboss.esb.examples.helloworld.HelloworldActivator

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/pom.xml	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/pom.xml	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>jboss.jbossesb</groupId>
+        <artifactId>examples</artifactId>
+        <version>5.0-SNAPSHOT</version>
+    </parent>
+    <name>JBoss ESB - Helloworld Example</name>
+    <groupId>jboss.jbossesb</groupId>
+    <artifactId>jbossesb-examples-helloworld</artifactId>
+    <version>${jboss.esb.version}</version>
+    <url>http://www.jboss.org/jbossesb/</url>
+	<packaging>bundle</packaging>
+
+	<build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.activemq.tooling</groupId>
+                <artifactId>maven-activemq-plugin</artifactId>
+                <version>4.1.2</version>
+                <configuration>
+                    <configFile>./activemq.xml</configFile>
+                    <fork>false</fork>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+	
+</project>

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/helloworld/HelloworldActivator.java
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/helloworld/HelloworldActivator.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/helloworld/HelloworldActivator.java	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
+ * LLC, and individual contributors by the @authors tag. See the copyright.txt
+ * in the distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this software; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
+ * site: http://www.fsf.org.
+ */
+package org.jboss.esb.examples.helloworld;
+
+import java.io.InputStream;
+
+import org.apache.log4j.Logger;
+import org.jboss.esb.deploy.DeploymentRuntime;
+import org.jboss.esb.deploy.DeploymentUtil;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+/**
+ * OSGI Activator.
+ * <p/>
+ *
+ * This is a simple attempt to test the new JBossESB 5.0 architecture.
+ * Usage:
+ *
+ * @author <a href="mailto:dbevenius at redhat.com">Daniel Bevenius</a>
+ *
+ */
+public class HelloworldActivator implements BundleActivator
+{
+    private Logger log = Logger.getLogger(HelloworldActivator.class);
+
+    private DeploymentRuntime runtime;
+
+    public void start(BundleContext context) throws Exception
+    {
+        runtime = DeploymentUtil.createRuntime(getConfiguration("jboss-esb.xml"));
+        runtime.deploy();
+        log.info("Started " + getClass().getName() + " ESB deployment");
+    }
+
+    public void stop(BundleContext context) throws Exception
+    {
+        if (runtime != null)
+        {
+            runtime.undeploy();
+            log.info("stopped " + getClass().getName() + " ESB deployment");
+        }
+    }
+
+    private InputStream getConfiguration(final String fileName)
+    {
+        InputStream in = getClass().getResourceAsStream("jboss-esb.xml");
+        if (in == null)
+        {
+            throw new IllegalStateException("Could not locate 'jboss-esb.xml'. Make sure that it exists on the classpath");
+        }
+        return in;
+
+
+    }
+
+}

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/helloworld/MyTestService.java
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/helloworld/MyTestService.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/java/org/jboss/esb/examples/helloworld/MyTestService.java	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright XXXX, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2008, JBoss Inc.
+ */
+package org.jboss.esb.examples.helloworld;
+
+import org.jboss.esb.message.Message;
+import org.jboss.esb.service.Service;
+import org.jboss.esb.service.ServiceException;
+
+/**
+ * Simple Test service
+ *
+ * @author <a href="mailto:dbevenius at jboss.com">Daniel Bevenius</a>
+ */
+public class MyTestService implements Service
+{
+    private static Message message;
+
+    public Message process(Message message) throws ServiceException
+    {
+        MyTestService.message = message;
+        return message;
+    }
+
+    public static Message getMessage()
+    {
+        return message;
+    }
+
+
+
+}

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/resources/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/resources/jboss-esb.xml	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/src/main/resources/jboss-esb.xml	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,19 @@
+<jbossesb xmlns="http://www.jboss.org/jbossesb/xsd/jbossesb-5.0.xsd">
+
+    <routing>
+        <inRouters serviceCategory="service-cat" serviceName="service-a">
+            <inRouter name="inrouter1" class="org.jboss.esb.jms.JmsInboundRouter">
+                <property name="java.naming.provider.url">tcp://localhost:61717</property>
+                <property name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property>
+                <property name="jmsDestination">jbossesb.TestQueue</property>
+                <property name="queue.jbossesb.TestQueue">jbossesb.TestQueue</property>
+            </inRouter>
+        </inRouters>
+    </routing>
+    
+    <services>
+        <service serviceCategory="service-cat" serviceName="service-a" serviceDescription="TestService" class="org.jboss.esb.jms.MyTestService"/>
+    </services> 
+    
+
+</jbossesb>
\ No newline at end of file

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/helloworld/HelloworldActivatorTest.java
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/helloworld/HelloworldActivatorTest.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/helloworld/HelloworldActivatorTest.java	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,135 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
+ * LLC, and individual contributors by the @authors tag. See the copyright.txt
+ * in the distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this software; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
+ * site: http://www.fsf.org.
+ */
+package org.jboss.esb.examples.helloworld;
+
+import java.io.File;
+import java.io.InputStream;
+import java.util.Dictionary;
+
+import org.jboss.esb.examples.helloworld.HelloworldActivator;
+import org.junit.Test;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.BundleException;
+import org.osgi.framework.BundleListener;
+import org.osgi.framework.Filter;
+import org.osgi.framework.FrameworkListener;
+import org.osgi.framework.InvalidSyntaxException;
+import org.osgi.framework.ServiceListener;
+import org.osgi.framework.ServiceReference;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * Test for {@link HelloworldActivator}.
+ *
+ * @author <a href="mailto:dbevenius at redhat.com">Daniel Bevenius</a>
+ *
+ */
+public class HelloworldActivatorTest
+{
+    @Test
+    public void startStop() throws Exception
+    {
+        HelloworldActivator helloworldActivator = new HelloworldActivator();
+        MockBundleContext bundleContext = new MockBundleContext();
+        helloworldActivator.start(bundleContext);
+        helloworldActivator.stop(bundleContext);
+    }
+
+    private class MockBundleContext implements BundleContext
+    {
+        public void addBundleListener(BundleListener listener) { }
+        public void addFrameworkListener(FrameworkListener listener) { }
+        public void addServiceListener(ServiceListener listener) { }
+        public void addServiceListener(ServiceListener listener, String filter) throws InvalidSyntaxException { }
+        public Filter createFilter(String filter) throws InvalidSyntaxException
+        {
+            return null;
+        }
+        public ServiceReference[] getAllServiceReferences(String clazz, String filter) throws InvalidSyntaxException
+        {
+            return null;
+        }
+        public Bundle getBundle()
+        {
+            return null;
+        }
+        public Bundle getBundle(long id)
+        {
+            return null;
+        }
+        public Bundle[] getBundles()
+        {
+            return null;
+        }
+        public File getDataFile(String filename)
+        {
+            return null;
+        }
+        public String getProperty(String key)
+        {
+            return null;
+        }
+        public Object getService(ServiceReference reference)
+        {
+            return null;
+        }
+        public ServiceReference getServiceReference(String clazz)
+        {
+            return null;
+        }
+        public ServiceReference[] getServiceReferences(String clazz, String filter) throws InvalidSyntaxException
+        {
+            return null;
+        }
+        public Bundle installBundle(String location) throws BundleException
+        {
+            return null;
+        }
+        public Bundle installBundle(String location, InputStream input) throws BundleException
+        {
+
+            return null;
+        }
+        public ServiceRegistration registerService(String[] clazzes, Object service, Dictionary properties)
+        {
+            return null;
+        }
+        public ServiceRegistration registerService(String clazz, Object service, Dictionary properties)
+        {
+            return null;
+        }
+        public void removeBundleListener(BundleListener listener)
+        {
+        }
+        public void removeFrameworkListener(FrameworkListener listener)
+        {
+        }
+        public void removeServiceListener(ServiceListener listener)
+        {
+        }
+        public boolean ungetService(ServiceReference reference)
+        {
+
+            return false;
+        }
+    }
+}

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/helloworld/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/helloworld/jboss-esb.xml	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/java/org/jboss/esb/examples/helloworld/jboss-esb.xml	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,9 @@
+<jbossesb xmlns="http://www.jboss.org/jbossesb/xsd/jbossesb-5.0.xsd">
+
+    <services>
+        <service serviceCategory="service-cat" serviceName="service-a" 
+        		serviceDescription="TestService" class="org.jboss.esb.examples.helloworld.MyTestService"/>
+    </services> 
+    
+
+</jbossesb>
\ No newline at end of file

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/META-INF/jbossesb/busconfig/jms/default.properties
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/META-INF/jbossesb/busconfig/jms/default.properties	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/META-INF/jbossesb/busconfig/jms/default.properties	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,20 @@
+###########################################################################################
+# Default JMS bus config for testing.
+#
+# Using ActiveMQ because it's so easy to embed.  Apparently JBM v2.0 will also be
+# easy to embed.  We might be able to switch to that then!!
+##########################################################################################
+
+# JNDI Settings...
+# NOTE: The JNDI settings in this config file must be the same as those
+# set in the JMSTestRunner class!!
+java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
+java.naming.provider.url=tcp://localhost:61717
+
+# Bus Queues and Topics...
+deployment.coordintation.topic=jbossesb.deployment.coordintation.topic
+deployment.bus.queue=jbossesb.jms.bus
+
+# ActiveMQ Queue and Topic deployments...
+topic.jbossesb.deployment.coordintation.topic=jbossesb.deployment.coordintation.topic
+queue.jbossesb.jms.bus=jbossesb.jms.bus

Added: labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/log4j.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/log4j.xml	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/helloworld/src/test/resources/log4j.xml	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Log4j Configuration                                                  -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<!--
+   | For more configuration infromation and examples see the Jakarta Log4j
+   | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+   <!-- ============================== -->
+   <!-- Append messages to the console -->
+   <!-- ============================== -->
+
+   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+      <param name="Target" value="System.out"/>
+
+      <layout class="org.apache.log4j.PatternLayout">
+         <!-- The default pattern: Date Priority [Category] Message\n -->
+         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+      </layout>
+   </appender>
+
+   <!-- ================ -->
+   <!-- Limit categories -->
+
+   <category name="org.milyn">
+      <priority value="error"/>
+   </category>
+   
+   <category name="org.quartz">
+      <priority value="error"/>
+   </category>
+   
+   <category name="org.jboss">
+      <priority value="error"/>
+   </category>
+
+   <category name="org.jboss.esb.examples.helloworld">
+      <priority value="info"/>
+   </category>
+   
+   <category name="org.apache.activemq">
+      <priority value="ERROR"/>
+   </category>
+
+   <!-- ======================= -->
+   <!-- Setup the Root category -->
+   <!-- ======================= -->
+
+   <root>
+      <appender-ref ref="CONSOLE"/>
+   </root>
+
+</log4j:configuration>
+

Added: labs/jbossesb/workspace/skeagh/examples/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/pom.xml	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/pom.xml	2008-09-23 12:44:34 UTC (rev 23014)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>jboss.jbossesb</groupId>
+    <artifactId>jbossesb</artifactId>
+    <version>5.0-SNAPSHOT</version>
+  </parent>
+  <groupId>jboss.jbossesb</groupId>
+  <artifactId>examples</artifactId>
+
+  <packaging>pom</packaging>
+  <version>5.0-SNAPSHOT</version>
+
+  <name>JBoss ESB Examples Modules (Base POM)</name>
+
+  <url>http://www.jboss.org/jbossesb/</url>
+
+  <modules>
+    <module>helloworld</module>
+  </modules>
+
+  <dependencies>
+    <dependency>
+      <groupId>jboss.jbossesb</groupId>
+      <artifactId>jbossesb-rt</artifactId>
+      <version>5.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>jboss.jbossesb</groupId>
+      <artifactId>jbossesb-testutil</artifactId>
+      <version>5.0-SNAPSHOT</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>

Modified: labs/jbossesb/workspace/skeagh/routing/jms/osgi.bnd
===================================================================
--- labs/jbossesb/workspace/skeagh/routing/jms/osgi.bnd	2008-09-23 11:11:58 UTC (rev 23013)
+++ labs/jbossesb/workspace/skeagh/routing/jms/osgi.bnd	2008-09-23 12:44:34 UTC (rev 23014)
@@ -2,4 +2,4 @@
 # Use this file to add customized Bnd instructions for the bundle
 #-----------------------------------------------------------------
 
-Export-Package: org.jboss.esb.jms*
+Export-Package: org.jboss.esb.jms*
\ No newline at end of file

Modified: labs/jbossesb/workspace/skeagh/routing/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/routing/pom.xml	2008-09-23 11:11:58 UTC (rev 23013)
+++ labs/jbossesb/workspace/skeagh/routing/pom.xml	2008-09-23 12:44:34 UTC (rev 23014)
@@ -24,6 +24,7 @@
             <groupId>jboss.jbossesb</groupId>
             <artifactId>jbossesb-rt</artifactId>
             <version>${jboss.esb.version}</version>
+            <scope>compile</scope>
         </dependency>
 
         <dependency>

Modified: labs/jbossesb/workspace/skeagh/runtime/osgi.bnd
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/osgi.bnd	2008-09-23 11:11:58 UTC (rev 23013)
+++ labs/jbossesb/workspace/skeagh/runtime/osgi.bnd	2008-09-23 12:44:34 UTC (rev 23014)
@@ -1,5 +1,8 @@
 #-----------------------------------------------------------------
 # Use this file to add customized Bnd instructions for the bundle
 #-----------------------------------------------------------------
+Export-Package: org.jboss.esb*
+Import-Package: javax.servlet.http*;resolve=optional, *
+Embed-Dependency: *;scope=compile|runtime
+Embed-Transitive: true
 
-Export-Package: org.jboss.esb*
\ No newline at end of file




More information about the jboss-svn-commits mailing list