|
From: <jbo...@li...> - 2006-06-30 19:11:54
|
Author: estebanschifman
Date: 2006-06-30 15:11:47 -0400 (Fri, 30 Jun 2006)
New Revision: 4894
Modified:
labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/BatchHandlerFactory.java
labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java
labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/PersistHandlerFactory.java
Log:
Changed calls to new AppServerContext.GetServerContext() methods
Modified: labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/BatchHandlerFactory.java
===================================================================
--- labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/BatchHandlerFactory.java 2006-06-30 19:09:30 UTC (rev 4893)
+++ labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/BatchHandlerFactory.java 2006-06-30 19:11:47 UTC (rev 4894)
@@ -33,20 +33,18 @@
private final static int LCL=0;
private final static int REM=1;
- public static IbatchHandler getBatchHandler(String p_sType, String p_sJndiServer)
- throws Exception
- { AppServerContext.SERVER_TYPE oSrvType
- = AppServerContext.SERVER_TYPE.JBoss;
-
- int iIndex = Arrays.binarySearch(s_saTypes,p_sType.toLowerCase());
+ public static IbatchHandler getBatchHandler
+ (String p_sLocRem, String p_sJndiType, String p_sJndiServer) throws Exception
+ {
+ int iIndex = Arrays.binarySearch(s_saTypes,p_sLocRem.toLowerCase());
if (iIndex < 0) return null;
switch (iIndex)
{
case REM: return getBatchHandler
- (AppServerContext.getServerContext(oSrvType,p_sJndiServer));
+ (AppServerContext.getServerContext(p_sJndiType,p_sJndiServer));
case LCL: return new BatchHandlerBsDelegateLocal(new InitialContext());
}
- throw new Exception("Invalid Batch Handler Delegate <" + p_sType + ">");
+ throw new Exception("Invalid Batch Handler Delegate <" + p_sLocRem + ">");
} //__________________________________
public static IbatchHandler getBatchHandler(Context p_oCtx) throws Exception
Modified: labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java
===================================================================
--- labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java 2006-06-30 19:09:30 UTC (rev 4893)
+++ labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/NotificationHandlerFactory.java 2006-06-30 19:11:47 UTC (rev 4894)
@@ -36,19 +36,17 @@
private final static int REM=1;
public static InotificationHandler getNotifHandler
- (String p_sType, String p_sJndiServer) throws Exception
- { AppServerContext.SERVER_TYPE oSrvType
- = AppServerContext.SERVER_TYPE.JBoss;
-
- int iIndex = Arrays.binarySearch(s_saTypes,p_sType.toLowerCase());
+ (String p_sLocRem, String p_sJndiType, String p_sJndiServer) throws Exception
+ {
+ int iIndex = Arrays.binarySearch(s_saTypes,p_sLocRem.toLowerCase());
if (iIndex < 0) return null;
switch (iIndex)
{
- case REM: return getNotifHandler(AppServerContext
- .getServerContext(oSrvType,p_sJndiServer));
+ case REM: return getNotifHandler
+ (AppServerContext.getServerContext(p_sJndiType,p_sJndiServer));
case LCL: return new NotifHandlerBsDelegateLocal(new InitialContext());
}
- throw new Exception("Invalid Notification Handler Delegate <" + p_sType + ">");
+ throw new Exception("Invalid Notification Handler Delegate <" + p_sLocRem + ">");
} //__________________________________
public static InotificationHandler getNotifHandler(Context p_oCtx) throws Exception
Modified: labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/PersistHandlerFactory.java
===================================================================
--- labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/PersistHandlerFactory.java 2006-06-30 19:09:30 UTC (rev 4893)
+++ labs/jbossesb/trunk/ESBCore/EsbServices/src/org/jboss/soa/esb/services/PersistHandlerFactory.java 2006-06-30 19:11:47 UTC (rev 4894)
@@ -35,18 +35,17 @@
private final static int REM=1;
public static IpersistHandler getPersistHandler
- (String p_sType, String p_sJndiServer) throws Exception
- { AppServerContext.SERVER_TYPE oSrvType
- = AppServerContext.SERVER_TYPE.JBoss;
- int iIndex = Arrays.binarySearch(s_saTypes,p_sType.toLowerCase());
+ (String p_sLocRem, String p_sJndiType, String p_sJndiServer) throws Exception
+ {
+ int iIndex = Arrays.binarySearch(s_saTypes,p_sLocRem.toLowerCase());
if (iIndex < 0) return null;
switch (iIndex)
{
- case REM: return getPersistHandler(AppServerContext
- .getServerContext(oSrvType,p_sJndiServer));
+ case REM: return getPersistHandler
+ (AppServerContext.getServerContext(p_sJndiType,p_sJndiServer));
case LCL: return new PersistHandlerBsDelegateLocal(new InitialContext());
}
- throw new Exception("Invalid Persist Handler Delegate <" + p_sType + ">");
+ throw new Exception("Invalid Persist Handler Delegate <" + p_sLocRem + ">");
} //__________________________________
public static IpersistHandler getPersistHandler(Context p_oCtx) throws Exception
|