[jboss-cvs] JBoss Messaging SVN: r4118 - trunk/docs/examples/messaging/src/org/jboss/messaging/example.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Apr 25 03:16:57 EDT 2008
Author: ataylor
Date: 2008-04-25 03:16:57 -0400 (Fri, 25 Apr 2008)
New Revision: 4118
Modified:
trunk/docs/examples/messaging/src/org/jboss/messaging/example/EmbeddedExample.java
trunk/docs/examples/messaging/src/org/jboss/messaging/example/SSLClient.java
trunk/docs/examples/messaging/src/org/jboss/messaging/example/SimpleClient.java
Log:
fixed examples to work with changed CF api
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-24 23:41:45 UTC (rev 4117)
+++ trunk/docs/examples/messaging/src/org/jboss/messaging/example/EmbeddedExample.java 2008-04-25 07:16:57 UTC (rev 4118)
@@ -79,7 +79,7 @@
//then we create a client as normal
Location location = new LocationImpl(TransportType.INVM);
ConnectionParams connectionParams = new ConnectionParamsImpl();
- ClientConnectionFactory connectionFactory = new ClientConnectionFactoryImpl(0, location, connectionParams);
+ ClientConnectionFactory connectionFactory = new ClientConnectionFactoryImpl(location, connectionParams);
clientConnection = connectionFactory.createConnection();
ClientSession clientSession = clientConnection.createClientSession(false, true, true, 100, true, false);
Modified: trunk/docs/examples/messaging/src/org/jboss/messaging/example/SSLClient.java
===================================================================
--- trunk/docs/examples/messaging/src/org/jboss/messaging/example/SSLClient.java 2008-04-24 23:41:45 UTC (rev 4117)
+++ trunk/docs/examples/messaging/src/org/jboss/messaging/example/SSLClient.java 2008-04-25 07:16:57 UTC (rev 4118)
@@ -57,7 +57,7 @@
System.setProperty(ConnectionParams.REMOTING_SSL_KEYSTORE_PASSWORD,"secureexample");
System.setProperty(ConnectionParams.REMOTING_SSL_TRUSTSTORE_PATH,"messaging.truststore");
System.setProperty(ConnectionParams.REMOTING_SSL_TRUSTSTORE_PASSWORD,"secureexample");*/
- ClientConnectionFactory connectionFactory = new ClientConnectionFactoryImpl(0, location, connectionParams);
+ ClientConnectionFactory connectionFactory = new ClientConnectionFactoryImpl(location, connectionParams);
clientConnection = connectionFactory.createConnection(null, null);
ClientSession clientSession = clientConnection.createClientSession(false, true, true, 100, true, false);
ClientProducer clientProducer = clientSession.createProducer("queuejms.testQueue");
Modified: trunk/docs/examples/messaging/src/org/jboss/messaging/example/SimpleClient.java
===================================================================
--- trunk/docs/examples/messaging/src/org/jboss/messaging/example/SimpleClient.java 2008-04-24 23:41:45 UTC (rev 4117)
+++ trunk/docs/examples/messaging/src/org/jboss/messaging/example/SimpleClient.java 2008-04-25 07:16:57 UTC (rev 4118)
@@ -43,7 +43,7 @@
{
Location location = new LocationImpl(TransportType.TCP, "localhost", 5400);
ConnectionParams connectionParams = new ConnectionParamsImpl();
- ClientConnectionFactory connectionFactory = new ClientConnectionFactoryImpl(0, location, connectionParams);
+ ClientConnectionFactory connectionFactory = new ClientConnectionFactoryImpl(location, connectionParams);
clientConnection = connectionFactory.createConnection();
ClientSession clientSession = clientConnection.createClientSession(false, true, true, 100, true, false);
ClientProducer clientProducer = clientSession.createProducer("queuejms.testQueue");
More information about the jboss-cvs-commits
mailing list