[jboss-cvs] JBoss Messaging SVN: r4121 - in trunk: docs/examples/messaging/src/org/jboss/messaging/example and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Apr 25 11:33:31 EDT 2008


Author: jmesnil
Date: 2008-04-25 11:33:31 -0400 (Fri, 25 Apr 2008)
New Revision: 4121

Modified:
   trunk/.classpath
   trunk/docs/examples/messaging/src/org/jboss/messaging/example/EmbeddedExample.java
Log:
added messaging & jms examples' src to eclipse build path

Modified: trunk/.classpath
===================================================================
--- trunk/.classpath	2008-04-25 13:34:04 UTC (rev 4120)
+++ trunk/.classpath	2008-04-25 15:33:31 UTC (rev 4121)
@@ -1,12 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="src" path="output/gen-parsers"/>
 	<classpathentry excluding="**/.svn/**/*" kind="src" path="src/main"/>
+	<classpathentry kind="src" path="build/src"/>
 	<classpathentry excluding="**/.svn/**/*" kind="src" path="tests/src"/>
 	<classpathentry excluding="ide/" kind="src" path="tests/etc"/>
 	<classpathentry kind="src" path="src/etc"/>
 	<classpathentry kind="src" path="tests/jms-tests/src"/>
 	<classpathentry kind="src" path="tests/jms-tests/etc"/>
+	<classpathentry kind="src" path="docs/examples/messaging/src"/>
+	<classpathentry kind="src" path="docs/examples/jms/src"/>
 	<classpathentry kind="lib" path="thirdparty/oswego-concurrent/lib/concurrent.jar"/>
 	<classpathentry kind="lib" path="thirdparty/jgroups/lib/jgroups.jar"/>
 	<classpathentry kind="lib" path="thirdparty/apache-log4j/lib/log4j.jar"/>

Modified: trunk/docs/examples/messaging/src/org/jboss/messaging/example/EmbeddedExample.java
===================================================================
--- trunk/docs/examples/messaging/src/org/jboss/messaging/example/EmbeddedExample.java	2008-04-25 13:34:04 UTC (rev 4120)
+++ trunk/docs/examples/messaging/src/org/jboss/messaging/example/EmbeddedExample.java	2008-04-25 15:33:31 UTC (rev 4121)
@@ -23,7 +23,6 @@
 
 import org.jboss.messaging.core.server.MessagingServer;
 import org.jboss.messaging.core.server.impl.MessagingServerImpl;
-import org.jboss.messaging.core.config.Configuration;
 import org.jboss.messaging.core.config.impl.ConfigurationImpl;
 import org.jboss.messaging.core.remoting.TransportType;
 import org.jboss.messaging.core.client.*;
@@ -56,6 +55,7 @@
          //create a new server with an invm transport, we could use TCP if needed
          ConfigurationImpl configuration = new ConfigurationImpl();
          configuration.setTransport(TransportType.INVM);
+         configuration.setServerID(0);
          messagingServer = new MessagingServerImpl(configuration);
          //lets use our own security manager, we could use the default if needed but we would need to make sure that
          // jbm-security.xml and queues.xml are in the classpath
@@ -77,7 +77,7 @@
          messagingServer.getPostOffice().addBinding("atestq", "atestq", null, false, false);
 
          //then we create a client as normal
-         Location location = new LocationImpl(TransportType.INVM);
+         Location location = new LocationImpl(0);
          ConnectionParams connectionParams = new ConnectionParamsImpl();
          ClientConnectionFactory connectionFactory = new ClientConnectionFactoryImpl(location, connectionParams);
 




More information about the jboss-cvs-commits mailing list