[jboss-svn-commits] JBL Code SVN: r18217 - in labs/jbosstm/workspace/adinn/XTSGF: WSTX/classes/com/arjuna/mw/wst/client and 2 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jan 31 05:13:59 EST 2008
Author: adinn
Date: 2008-01-31 05:13:58 -0500 (Thu, 31 Jan 2008)
New Revision: 18217
Removed:
labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/client/GlueIncomingContextInterceptor.java
labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/client/GlueOutgoingContextInterceptor.java
labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/service/GlueIncomingContextInterceptor.java
labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/service/GlueOutgoingContextInterceptor.java
labs/jbosstm/workspace/adinn/XTSGF/ext/glue.jar
Modified:
labs/jbosstm/workspace/adinn/XTSGF/WSTX/build.xml
Log:
removed remnants of Glue interface
Modified: labs/jbosstm/workspace/adinn/XTSGF/WSTX/build.xml
===================================================================
--- labs/jbosstm/workspace/adinn/XTSGF/WSTX/build.xml 2008-01-31 10:05:20 UTC (rev 18216)
+++ labs/jbosstm/workspace/adinn/XTSGF/WSTX/build.xml 2008-01-31 10:13:58 UTC (rev 18217)
@@ -50,7 +50,7 @@
<property name="jta.lib.jars" value="jbossjta.jar"/>
<property name="jta.ext.jars" value="jbossts-common.jar"/>
<property name="jta.ext.compile.jars" value="commons-logging.jar"/>
- <property name="xts.ext.compile.jars" value="jaxrpc.jar saaj-api.jar servlet.jar stax-api-1.0.jar wstx-asl-2.0.3.jar glue.jar jaxws-2_1-mrel2-api.jar wsbrew.jar"/>
+ <property name="xts.ext.compile.jars" value="jaxrpc.jar saaj-api.jar servlet.jar stax-api-1.0.jar wstx-asl-2.0.3.jar jaxws-2_1-mrel2-api.jar wsbrew.jar"/>
<property name="wsas.libs" value="wsas.jar"/>
<property name="wsc.libs" value="ws-c.jar"/>
Deleted: labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/client/GlueIncomingContextInterceptor.java
===================================================================
--- labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/client/GlueIncomingContextInterceptor.java 2008-01-31 10:05:20 UTC (rev 18216)
+++ labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/client/GlueIncomingContextInterceptor.java 2008-01-31 10:13:58 UTC (rev 18217)
@@ -1,113 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2005,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id$
- */
-
-/**
- * @author Malik SAHEB
- */
-
-package com.arjuna.mw.wst.client;
-
-import com.arjuna.mw.wst.BusinessActivityManagerFactory;
-import com.arjuna.mw.wst.TransactionManagerFactory;
-import com.arjuna.mw.wst.TxContext;
-import com.arjuna.mw.wst.common.CoordinationContextHelper;
-import com.arjuna.mw.wstx.logging.wstxLogger;
-import com.arjuna.webservices.wsat.AtomicTransactionConstants;
-import com.arjuna.webservices.wsba.BusinessActivityConstants;
-import com.arjuna.webservices.wscoor.CoordinationConstants;
-import com.arjuna.webservices.wscoor.CoordinationContextType;
-
-import electric.soap.ISOAPInterceptor;
-import electric.xml.Element;
-
-/**
- * The class is used to perform WS-Transaction context insertion
- * and extraction for application level SOAP messages within WebMethods Glue.
- */
-public class GlueIncomingContextInterceptor implements ISOAPInterceptor
-{
- public void intercept( electric.soap.SOAPMessage message, electric.util.Context messageContext )
- {
- resumeTransaction(message) ;
- return ;
- }
-
- /**
- * Resume the current transaction.
- *
- * @message com.arjuna.mw.wst.client.GlueICI_1 [com.arjuna.mw.wst.client.GlueICI_1] - Error in:
- * @message com.arjuna.mw.wst.client.GlueICI_2 [com.arjuna.mw.wst.client.GlueICI_2] - Unknown context type:
- * @message com.arjuna.mw.wst.client.GlueICI_3 [com.arjuna.mw.wst.client.GlueICI_3] - Stack trace:
- */
-
- private void resumeTransaction(final electric.soap.SOAPMessage soapMessage)
- {
- if (soapMessage != null)
- {
- try
- {
- final Element soapHeaderElement = soapMessage.getHeaderElement(CoordinationConstants.WSCOOR_NAMESPACE,
- CoordinationConstants.WSCOOR_ELEMENT_COORDINATION_CONTEXT) ;
- if (soapHeaderElement != null)
- {
- final CoordinationContextType cc = CoordinationContextHelper.deserialise(soapHeaderElement) ;
- final String coordinationType = cc.getCoordinationType().getValue() ;
- if (AtomicTransactionConstants.WSAT_PROTOCOL.equals(coordinationType))
- {
- final TxContext txContext = new com.arjuna.mwlabs.wst.at.context.TxContextImple(cc) ;
- TransactionManagerFactory.transactionManager().resume(txContext) ;
- }
- else if (BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME.equals(coordinationType))
- {
- final TxContext txContext = new com.arjuna.mwlabs.wst.ba.context.TxContextImple(cc);
- BusinessActivityManagerFactory.businessActivityManager().resume(txContext) ;
- }
- else
- {
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.client.GlueICI_1",
- new Object[]{"com.arjuna.mw.wst.client.GlueIncomingContextInterceptor.resumeTransaction()"});
-
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.client.GlueICI_2",
- new Object[]{coordinationType});
- }
- }
- }
- catch (final Throwable th)
- {
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.client.GlueICI_1",
- new Object[]{"com.arjuna.mw.wst.client.GlueIncomingContextInterceptor.resumeTransaction()"});
-
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.client.GlueICI_3",
- new Object[]{th});
- }
- }
- }
-}
Deleted: labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/client/GlueOutgoingContextInterceptor.java
===================================================================
--- labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/client/GlueOutgoingContextInterceptor.java 2008-01-31 10:05:20 UTC (rev 18216)
+++ labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/client/GlueOutgoingContextInterceptor.java 2008-01-31 10:13:58 UTC (rev 18217)
@@ -1,134 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2005,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id$
- */
-
-/**
- * @author Malik SAHEB
- */
-
-package com.arjuna.mw.wst.client;
-
-import com.arjuna.mw.wsc.context.Context;
-import com.arjuna.mw.wst.BusinessActivityManager;
-import com.arjuna.mw.wst.BusinessActivityManagerFactory;
-import com.arjuna.mw.wst.TransactionManager;
-import com.arjuna.mw.wst.TransactionManagerFactory;
-import com.arjuna.mw.wst.common.CoordinationContextHelper;
-import com.arjuna.mw.wstx.logging.wstxLogger;
-import com.arjuna.webservices.wscoor.CoordinationConstants;
-import com.arjuna.webservices.wscoor.CoordinationContextType;
-
-import electric.soap.ISOAPInterceptor;
-import electric.xml.Element;
-
-/**
- * The class is used to perform WS-Transaction context insertion
- * and extraction for application level SOAP messages within WebMethods Glue.
- */
-public class GlueOutgoingContextInterceptor implements ISOAPInterceptor
-{
- /**
- * @message com.arjuna.mw.wst.client.GlueOCI_1 [com.arjuna.mw.wst.client.GlueOCI_1] - Error in:
- * @message com.arjuna.mw.wst.client.GlueOCI_2 [com.arjuna.mw.wst.client.GlueOCI_2] - Stack trace:
- */
-
- public void intercept( electric.soap.SOAPMessage soapMessage, electric.util.Context messageContext )
- {
- if (soapMessage == null)
- {
- return;
- }
- try
- {
- /*
- * There should either be an Atomic Transaction *or* a Business Activity
- * associated with the thread.
- */
- final TransactionManager transactionManager = TransactionManagerFactory.transactionManager() ;
- final BusinessActivityManager businessActivityManager = BusinessActivityManagerFactory.businessActivityManager() ;
-
- final Context atContext ;
- if (transactionManager != null)
- {
- final com.arjuna.mwlabs.wst.at.context.TxContextImple txContext =
- (com.arjuna.mwlabs.wst.at.context.TxContextImple)transactionManager.currentTransaction() ;
- atContext = (txContext == null ? null : txContext.context()) ;
- }
- else
- {
- atContext = null ;
- }
-
- final Context baContext ;
- if (businessActivityManager != null)
- {
- final com.arjuna.mwlabs.wst.ba.context.TxContextImple txContext =
- (com.arjuna.mwlabs.wst.ba.context.TxContextImple)businessActivityManager.currentTransaction() ;
- baContext = (txContext == null ? null : txContext.context()) ;
- }
- else
- {
- baContext = null ;
- }
-
- final CoordinationContextType coordinationContext ;
- if (atContext != null)
- {
- coordinationContext = atContext.getCoordinationContext() ;
- }
- else if (baContext != null)
- {
- coordinationContext = baContext.getCoordinationContext() ;
- }
- else
- {
- coordinationContext = null ;
- }
-
- if (coordinationContext != null)
- {
- Element headElement = new Element(CoordinationConstants.WSCOOR_PREFIX, CoordinationConstants.WSCOOR_ELEMENT_COORDINATION_CONTEXT, CoordinationConstants.WSCOOR_NAMESPACE);
- headElement.setNamespace(CoordinationConstants.WSCOOR_PREFIX, CoordinationConstants.WSCOOR_NAMESPACE);
- soapMessage.addHeaderElement(headElement) ;
- CoordinationContextHelper.serialise(headElement, coordinationContext) ;
- }
- }
- catch (final Throwable th)
- {
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.client.GlueOCI_1",
- new Object[]{"com.arjuna.mw.wst.client.GlueOutgoingContextInterceptor.intercept()"});
-
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.client.GlueOCI_2",
- new Object[]{th});
- }
-
- return;
- }
-}
Deleted: labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/service/GlueIncomingContextInterceptor.java
===================================================================
--- labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/service/GlueIncomingContextInterceptor.java 2008-01-31 10:05:20 UTC (rev 18216)
+++ labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/service/GlueIncomingContextInterceptor.java 2008-01-31 10:13:58 UTC (rev 18217)
@@ -1,133 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2005,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id$
- *
- * @author Malik SAHEB
- */
-
-package com.arjuna.mw.wst.service;
-
-import com.arjuna.mw.wst.BusinessActivityManager;
-import com.arjuna.mw.wst.BusinessActivityManagerFactory;
-import com.arjuna.mw.wst.TransactionManager;
-import com.arjuna.mw.wst.TransactionManagerFactory;
-import com.arjuna.mw.wst.TxContext;
-import com.arjuna.mw.wst.common.CoordinationContextHelper;
-import com.arjuna.mw.wstx.logging.wstxLogger;
-import com.arjuna.webservices.wsat.AtomicTransactionConstants;
-import com.arjuna.webservices.wsba.BusinessActivityConstants;
-import com.arjuna.webservices.wscoor.CoordinationConstants;
-import com.arjuna.webservices.wscoor.CoordinationContextType;
-
-import electric.soap.ISOAPInterceptor;
-import electric.xml.Element;
-
-/**
- * The class is used to perform WS-Transaction context insertion
- * and extraction for application level SOAP messages within WebMethods Glue.
- *
- * @message com.arjuna.mw.wst.service.GlueICI_1 [com.arjuna.mw.wst.service.GlueICI_1] - Error in:
- * @message com.arjuna.mw.wst.service.GlueICI_2 [com.arjuna.mw.wst.service.GlueICI_2] - Stack trace:
- * @message com.arjuna.mw.wst.service.GlueICI_3 [com.arjuna.mw.wst.service.GlueICI_3] - Unknown context type:
- */
-
-public class GlueIncomingContextInterceptor implements ISOAPInterceptor
-{
- public void intercept( electric.soap.SOAPMessage soapMessage, electric.util.Context messageContext )
- {
- if (soapMessage != null)
- {
- try
- {
- final TransactionManager transactionManager = TransactionManagerFactory.transactionManager() ;
- final BusinessActivityManager businessActivityManager = BusinessActivityManagerFactory.businessActivityManager() ;
-
- if (transactionManager != null)
- {
- final com.arjuna.mwlabs.wst.at.context.TxContextImple txContext =
- (com.arjuna.mwlabs.wst.at.context.TxContextImple)transactionManager.suspend() ;
-
- if (txContext != null)
- {
- messageContext.setProperty(AtomicTransactionConstants.WSAT_PROTOCOL, txContext) ;
- }
- }
-
- if (businessActivityManager != null)
- {
- final com.arjuna.mwlabs.wst.ba.context.TxContextImple txContext =
- (com.arjuna.mwlabs.wst.ba.context.TxContextImple)businessActivityManager.suspend() ;
-
- if (txContext != null)
- {
- messageContext.setProperty(BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME, txContext) ;
- }
- }
-
- final Element soapHeaderElement = soapMessage.getHeaderElement(CoordinationConstants.WSCOOR_NAMESPACE, CoordinationConstants.WSCOOR_ELEMENT_COORDINATION_CONTEXT) ;
-
- if (soapHeaderElement != null)
- {
- final CoordinationContextType cc = CoordinationContextHelper.deserialise(soapHeaderElement) ;
-
- final String coordinationType = cc.getCoordinationType().getValue() ;
-
- if (AtomicTransactionConstants.WSAT_PROTOCOL.equals(coordinationType))
- {
- final TxContext txContext = new com.arjuna.mwlabs.wst.at.context.TxContextImple(cc) ;
- transactionManager.resume(txContext) ;
- }
- else if (BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME.equals(coordinationType))
- {
- final TxContext txContext = new com.arjuna.mwlabs.wst.ba.context.TxContextImple(cc);
- businessActivityManager.resume(txContext) ;
- }
- else
- {
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.service.GlueICI_1",
- new Object[]{"com.arjuna.mw.wst.service.GlueOutgoingContextInterceptor.intercept()"});
-
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.service.GlueICI_3",
- new Object[]{coordinationType});
- }
- }
- }
- catch (final Throwable th)
- {
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.service.GlueICI_1",
- new Object[]{"com.arjuna.mw.wst.service.GlueIncomingContextInterceptor.intercept()"});
-
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.service.GlueICI_2",
- new Object[]{th});
- }
- }
- }
-}
-
-
Deleted: labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/service/GlueOutgoingContextInterceptor.java
===================================================================
--- labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/service/GlueOutgoingContextInterceptor.java 2008-01-31 10:05:20 UTC (rev 18216)
+++ labs/jbosstm/workspace/adinn/XTSGF/WSTX/classes/com/arjuna/mw/wst/service/GlueOutgoingContextInterceptor.java 2008-01-31 10:13:58 UTC (rev 18217)
@@ -1,96 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2005,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id$
- */
-
-package com.arjuna.mw.wst.service;
-
-import com.arjuna.mw.wst.BusinessActivityManager;
-import com.arjuna.mw.wst.BusinessActivityManagerFactory;
-import com.arjuna.mw.wst.TransactionManager;
-import com.arjuna.mw.wst.TransactionManagerFactory;
-import com.arjuna.mw.wstx.logging.wstxLogger;
-import com.arjuna.webservices.wsat.AtomicTransactionConstants;
-import com.arjuna.webservices.wsba.BusinessActivityConstants;
-
-import electric.soap.ISOAPInterceptor;
-
-/**
- * The class is used to perform WS-Transaction context insertion
- * and extraction for application level SOAP messages within WebMethods Glue.
- *
- * @message com.arjuna.mw.wst.service.GlueOCI_1 [com.arjuna.mw.wst.service.GlueOCI_1] - Error in:
- * @message com.arjuna.mw.wst.service.GlueOCI_2 [com.arjuna.mw.wst.service.GlueOCI_2] - Stack trace:
- */
-
-public class GlueOutgoingContextInterceptor implements ISOAPInterceptor
-{
-
- public void intercept( electric.soap.SOAPMessage soapMessage, electric.util.Context messageContext )
- {
- try
- {
- final TransactionManager transactionManager = TransactionManagerFactory.transactionManager() ;
- final com.arjuna.mwlabs.wst.at.context.TxContextImple atTXContext =
- (com.arjuna.mwlabs.wst.at.context.TxContextImple)messageContext.getProperty(AtomicTransactionConstants.WSAT_PROTOCOL) ;
-
- if (atTXContext != null)
- {
- transactionManager.resume(atTXContext) ;
- }
- else
- {
- transactionManager.suspend() ;
- }
-
- final BusinessActivityManager businessActivityManager = BusinessActivityManagerFactory.businessActivityManager() ;
- final com.arjuna.mwlabs.wst.ba.context.TxContextImple baTXContext =
- (com.arjuna.mwlabs.wst.ba.context.TxContextImple)messageContext.getProperty(BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME) ;
-
- if (baTXContext != null)
- {
- businessActivityManager.resume(baTXContext) ;
- }
- else
- {
- businessActivityManager.suspend() ;
- }
- }
- catch (final Throwable th)
- {
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.service.GlueOCI_1",
- new Object[]{"com.arjuna.mw.wst.service.GlueOutgoingContextInterceptor.intercept()"});
-
- wstxLogger.arjLoggerI18N.warn("com.arjuna.mw.wst.service.GlueOCI_2",
- new Object[]{th});
- }
- }
-}
-
-
Deleted: labs/jbosstm/workspace/adinn/XTSGF/ext/glue.jar
===================================================================
(Binary files differ)
More information about the jboss-svn-commits
mailing list