[jboss-svn-commits] JBL Code SVN: r31536 - in labs/jbossrules/branches/salaboy_grid-rio2: drools-grid-rio and 2 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Feb 9 17:25:40 EST 2010


Author: jeje
Date: 2010-02-09 17:25:40 -0500 (Tue, 09 Feb 2010)
New Revision: 31536

Modified:
   labs/jbossrules/branches/salaboy_grid-rio2/drools-grid-rio/pom.xml
   labs/jbossrules/branches/salaboy_grid-rio2/drools-grid-rio/src/test/java/org/drools/vms/ITServiceManagerRioRemoteTest.java
   labs/jbossrules/branches/salaboy_grid-rio2/drools-vsm/pom.xml
   labs/jbossrules/branches/salaboy_grid-rio2/pom.xml
Log:
Fixes in POMs.

Modified: labs/jbossrules/branches/salaboy_grid-rio2/drools-grid-rio/pom.xml
===================================================================
--- labs/jbossrules/branches/salaboy_grid-rio2/drools-grid-rio/pom.xml	2010-02-09 21:33:57 UTC (rev 31535)
+++ labs/jbossrules/branches/salaboy_grid-rio2/drools-grid-rio/pom.xml	2010-02-09 22:25:40 UTC (rev 31536)
@@ -1,18 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.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>
-  
-  <groupId>org.drools</groupId>
-  <artifactId>drools-grid-rio</artifactId>
-  <version>5.1.0.SNAPSHOT</version>
-  <name>drools-grid-rio</name>
-  <packaging>oar</packaging>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.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>
+        <artifactId>drools</artifactId>
+        <groupId>org.drools</groupId>
+        <version>5.1.0.SNAPSHOT</version>
+    </parent>
 
-  <url>http://maven.apache.org</url>
-    
+    <artifactId>drools-grid-rio</artifactId>
+    <packaging>oar</packaging>
+    <name>Drools :: Grid with Rio</name>
+
     <dependencies>
-   <dependency>
+        <dependency>
             <groupId>org.rioproject</groupId>
             <artifactId>rio</artifactId>
             <version>4.0-M3</version>
@@ -25,28 +26,28 @@
             <scope>test</scope>
         </dependency>
 
-         <dependency>
+        <dependency>
             <groupId>org.drools</groupId>
             <artifactId>drools-vsm</artifactId>
             <version>5.1.0.SNAPSHOT</version>
-             <type>jar</type>
-         </dependency>
+            <type>jar</type>
+        </dependency>
         <dependency>
             <groupId>org.drools</groupId>
             <artifactId>drools-api</artifactId>
             <version>5.1.0.SNAPSHOT</version>
             <type>jar</type>
         </dependency>
-        
+
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.6</version>
             <scope>test</scope>
         </dependency>
-  </dependencies>
+    </dependencies>
 
-     <build>
+    <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
@@ -57,7 +58,6 @@
                     <createJar>
                         <classifier>dl</classifier>
                         <in>org.drools.vsm</in>
-
                         <topclasses>
                             <topclass>org.drools.vsm.grid.SessionService</topclass>
                             <topclass>org.drools.vsm.grid.RegistryService</topclass>
@@ -112,7 +112,7 @@
             </plugin>
         </plugins>
     </build>
-       <repositories>
+    <repositories>
         <repository>
             <id>rio</id>
             <url>http://www.rio-project.org/maven2</url>

Modified: labs/jbossrules/branches/salaboy_grid-rio2/drools-grid-rio/src/test/java/org/drools/vms/ITServiceManagerRioRemoteTest.java
===================================================================
--- labs/jbossrules/branches/salaboy_grid-rio2/drools-grid-rio/src/test/java/org/drools/vms/ITServiceManagerRioRemoteTest.java	2010-02-09 21:33:57 UTC (rev 31535)
+++ labs/jbossrules/branches/salaboy_grid-rio2/drools-grid-rio/src/test/java/org/drools/vms/ITServiceManagerRioRemoteTest.java	2010-02-09 22:25:40 UTC (rev 31536)
@@ -13,6 +13,7 @@
 import org.drools.vsm.grid.SessionService;
 import org.drools.vsm.rio.RioConnector;
 
+import org.junit.After;
 import org.junit.Before;
 import org.junit.runner.RunWith;
 import org.rioproject.test.RioTestRunner;
@@ -22,51 +23,48 @@
 @RunWith(RioTestRunner.class)
 public class ITServiceManagerRioRemoteTest extends ServiceManagerTestBaseGrid {
     AcceptorService server;
+
     @SetTestManager
-    static TestManager testManager; 
+    static TestManager testManager;
+
     @Before
     public void setUp() throws Exception {
-        
         ServiceManagerData serverData = new ServiceManagerData();
-       Assert.assertNotNull(testManager);
+        Assert.assertNotNull(testManager);
         //setup Server
-        //SessionService sessionService = (SessionService) testManager.waitForService(SessionService.class);
-        ServiceItem[] sessionServiceItems =   testManager.getServiceItems(SessionService.class);
+        SessionService sessionService = (SessionService) testManager.waitForService(SessionService.class);
+        ServiceItem[] sessionServiceItems = testManager.getServiceItems(SessionService.class);
         List<SessionService> sessionServices = new ArrayList<SessionService>();
-        System.out.println("Session Service Items ="+sessionServiceItems.length);
-        for(int i=0; i < sessionServiceItems.length; i ++){
-            if(sessionServiceItems[i].service instanceof SessionService){
-                sessionServices.add((SessionService)sessionServiceItems[i].service);
+        System.out.println("Session Service Items =" + sessionServiceItems.length);
+        for (int i = 0; i < sessionServiceItems.length; i++) {
+            if (sessionServiceItems[i].service instanceof SessionService) {
+                sessionServices.add((SessionService) sessionServiceItems[i].service);
             }
         }
 
         Assert.assertNotNull(sessionServices);
         RegistryService registryService = (RegistryService) testManager.waitForService(RegistryService.class);
         Assert.assertNotNull(registryService);
-                                       
-        RioConnector connector = new RioConnector( "client 1",
-                                                   SystemEventListenerFactory.getSystemEventListener(),
-                                                   sessionServices
-                                                   );
 
+        RioConnector connector = new RioConnector("client 1",
+                SystemEventListenerFactory.getSystemEventListener(),
+                sessionServices
+        );
+
         // setup Client
-        this.client = new ServiceManagerGridClient( "client 1",
-                                                      connector );
+        this.client = new ServiceManagerGridClient("client 1", connector);
 
+        ((ServiceManagerGridClient) this.client).setRegistryService(registryService);
+        ((ServiceManagerGridClient) this.client).setCurrentSessionService((SessionService) sessionServiceItems[0].service);
+        ((ServiceManagerGridClient) this.client).connect();
 
-        ((ServiceManagerGridClient)this.client).setRegistryService(registryService);
-
-        ((ServiceManagerGridClient)this.client).setCurrentSessionService((SessionService)sessionServiceItems[0].service);
-
-        ((ServiceManagerGridClient)this.client).connect();
-
     }
 //    @After
 //    public void tearDown() throws Exception {
 //
 //        ((ServiceManagerGridClient) client).disconnect();
 //        //this.server.stop();
-//    }
+    }
 
-    
+
 }

Modified: labs/jbossrules/branches/salaboy_grid-rio2/drools-vsm/pom.xml
===================================================================
--- labs/jbossrules/branches/salaboy_grid-rio2/drools-vsm/pom.xml	2010-02-09 21:33:57 UTC (rev 31535)
+++ labs/jbossrules/branches/salaboy_grid-rio2/drools-vsm/pom.xml	2010-02-09 22:25:40 UTC (rev 31536)
@@ -1,5 +1,6 @@
 <?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">
+<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>

Modified: labs/jbossrules/branches/salaboy_grid-rio2/pom.xml
===================================================================
--- labs/jbossrules/branches/salaboy_grid-rio2/pom.xml	2010-02-09 21:33:57 UTC (rev 31535)
+++ labs/jbossrules/branches/salaboy_grid-rio2/pom.xml	2010-02-09 22:25:40 UTC (rev 31536)
@@ -235,6 +235,7 @@
 <module>drools-core</module>
 <module>drools-compiler</module>
 <module>drools-vsm</module>
+<module>drools-grid-rio</module>
 <module>drools-pipeline</module>
 <module>drools-container</module>
 <module>drools-simulator</module>



More information about the jboss-svn-commits mailing list