[jboss-svn-commits] JBL Code SVN: r5477 - labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Aug 4 15:05:55 EDT 2006


Author: kurt.stam at jboss.com
Date: 2006-08-04 15:05:51 -0400 (Fri, 04 Aug 2006)
New Revision: 5477

Modified:
   labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java
   labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java
   labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerFactory.java
   labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java
   labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java
   labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java
   labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java
   labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java
   labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerFactory.java
Log:
Adding ejb3 support

Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java	2006-08-04 17:00:31 UTC (rev 5476)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java	2006-08-04 19:05:51 UTC (rev 5477)
@@ -32,7 +32,7 @@
 
 	public BatchHandlerBsDelegateLocal(Context p_ctx) throws Exception
 	{
-		m_oBatchH = (BatchHandler) p_ctx.lookup("NotificationHandlerBean/local");
+		m_oBatchH = (BatchHandler) p_ctx.lookup("jbossesb-appl/NotificationHandlerBean/local");
 	}
 
 	public long newBatch() throws Exception

Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java	2006-08-04 17:00:31 UTC (rev 5476)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java	2006-08-04 19:05:51 UTC (rev 5477)
@@ -34,7 +34,7 @@
 
 	public BatchHandlerBsDelegateRemote(Context p_ctx) throws Exception {
 		m_oBatchH = (BatchHandler) p_ctx
-				.lookup("NotificationHandlerBean/remote");
+				.lookup("jbossesb-appl/NotificationHandlerBean/remote");
 	}
 
 	public long newBatch() throws Exception {

Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerFactory.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerFactory.java	2006-08-04 17:00:31 UTC (rev 5476)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerFactory.java	2006-08-04 19:05:51 UTC (rev 5477)
@@ -40,11 +40,11 @@
 		if (iIndex < 0)
 			return null;
 		switch (iIndex) {
+		case LCL:
+			return new BatchHandlerBsDelegateLocal(new InitialContext());
 		case REM:
 			return getBatchHandler(AppServerContext.getServerContext(
 					p_sJndiType, p_sJndiServer));
-		case LCL:
-			return new BatchHandlerBsDelegateLocal(new InitialContext());
 		case MOK:
 			return null; //return new MockBatchHandler()
 		}

Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java	2006-08-04 17:00:31 UTC (rev 5476)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java	2006-08-04 19:05:51 UTC (rev 5477)
@@ -34,7 +34,7 @@
     
 	public NotifHandlerBsDelegateLocal(Context p_ctx) throws Exception
 	{
-		m_oNotifH = (NotificationHandler) p_ctx.lookup("NotificationHandlerBean/local");
+		m_oNotifH = (NotificationHandler) p_ctx.lookup("jbossesb-appl/NotificationHandlerBean/local");
 	}
 
 	public void sendNotifications(DomElement p_oP, Serializable p_o)

Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java	2006-08-04 17:00:31 UTC (rev 5476)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java	2006-08-04 19:05:51 UTC (rev 5477)
@@ -34,7 +34,7 @@
 
 	public NotifHandlerBsDelegateRemote(Context p_ctx) throws Exception
 	{
-		m_oNotifH = (NotificationHandler) p_ctx.lookup("NotificationHandlerBean/remote");
+		m_oNotifH = (NotificationHandler) p_ctx.lookup("jbossesb-appl/NotificationHandlerBean/remote");
 	}
 
 	public void sendNotifications(DomElement p_oP, Serializable p_o)

Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java	2006-08-04 17:00:31 UTC (rev 5476)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java	2006-08-04 19:05:51 UTC (rev 5477)
@@ -43,10 +43,9 @@
     if (iIndex < 0)                 return null;
     switch (iIndex)
     {
+        case LCL: return new NotifHandlerBsDelegateLocal(new InitialContext());
     	case REM: return getNotifHandler
             	(AppServerContext.getServerContext(p_sJndiType,p_sJndiServer));
-    	case LCL: return new NotifHandlerBsDelegateLocal(new InitialContext());
-    	
     	case MOK: return null; //return new MockNotificationHandler();
     }
       throw new Exception("Invalid Notification Handler Delegate <" + p_sLocRem + ">");

Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java	2006-08-04 17:00:31 UTC (rev 5476)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java	2006-08-04 19:05:51 UTC (rev 5477)
@@ -35,7 +35,7 @@
   private PersistHandler m_oSnapH;
 
 	public PersistHandlerBsDelegateLocal(Context p_ctx) throws Exception {
-		m_oSnapH = (PersistHandler) p_ctx.lookup("PersistHandlerBean/local");
+		m_oSnapH = (PersistHandler) p_ctx.lookup("jbossesb-appl/PersistHandlerBean/local");
 	}
 
 	public long getUidChunk(int p_iQ) throws Exception {

Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java	2006-08-04 17:00:31 UTC (rev 5476)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java	2006-08-04 19:05:51 UTC (rev 5477)
@@ -36,7 +36,7 @@
 
   public PersistHandlerBsDelegateRemote(Context p_ctx) throws Exception
   {
-	  m_oSnapH = (PersistHandler) p_ctx.lookup("PersistHandlerBean/remote");
+	  m_oSnapH = (PersistHandler) p_ctx.lookup("jbossesb-appl/PersistHandlerBean/remote");
   }
 
   public long getUidChunk(int p_iQ)                    throws Exception

Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerFactory.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerFactory.java	2006-08-04 17:00:31 UTC (rev 5476)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerFactory.java	2006-08-04 19:05:51 UTC (rev 5477)
@@ -42,10 +42,9 @@
   	if (iIndex < 0)                 return null;
   	switch (iIndex)
   	{
+  	    case LCL: return new PersistHandlerBsDelegateLocal(new InitialContext());
   		case REM: return getPersistHandler
   				(AppServerContext.getServerContext(p_sJndiType,p_sJndiServer));
-  		case LCL: return new PersistHandlerBsDelegateLocal(new InitialContext());
-  		
   		case MOK: return null; //new MockPersistHandler();
   	}
   	throw new Exception("Invalid Persist Handler Delegate <" + p_sLocRem + ">");




More information about the jboss-svn-commits mailing list