package gov.nih.nci.caXchange;
/**
 * This class contins the constants used in the caxchange project
 *  @author KhanalY
 */
import java.util.HashSet;
import java.util.Set;

import javax.xml.namespace.QName;

public class CaxchangeConstants {
	/**
	 * Default constructor
	 */
    public CaxchangeConstants() {
    }

    public static final String USERNAME_XPATH="/caXchangeRequestMessage/metaData/credentials/userName";
    public static final String GROUPNAME_XPATH="/caXchangeRequestMessage/metaData/credentials/groupName";
    public static final String GRIDIDENTIFIER_XPATH="/caXchangeRequestMessage/metaData/credentials/gridIdentifier";
    public static final QName  RESPONSE_QUEUE =  new QName("http://nci.nih.gov/caXchange","ResponseQueueService");
    public static final QName  MESSAGE_TYPE_ROUTER =  new QName("http://nci.nih.gov/caXchange","MessageTypeRouter");


    public static final String ORIGINAL_EXCHANGE_CORRELATIONID="caxchange.original.correlationId";
    public static final String EXCHANGE_CORRELATIONID="org.apache.servicemix.correlationId";
    public static final String ERROR_MESSAGE="caxchange.errormessage";
    public static final String ERROR_CODE="caxchange.errorcode";

    public static final String TARGET_ID="caxchange.gridservice.target.id";

    public static final Set<String> ROLLBACK_STATUSES = new HashSet<String>();
	public static final QName ROLLBACK_PIPELINE = new QName("http://nci.nih.gov/caXchange","rollbackPipeline");

	public static final String REQUEST_METADATA = "requestmetadata";
	public static final String EXTERNAL_IDENTIFIER = "externalidentifier";
	public static final String CAXCHANGE_IDENTIFIER = "caxchangeidentifier";

    static {
        ROLLBACK_STATUSES.add("ERROR");
        ROLLBACK_STATUSES.add("FAULT");
    }

}

@@ -1464,16 +1464,256 @@
 eline%22);
+%0A%09public static final QName SERVICE_TYPE_ROUTER = new QName(%22http://nci.nih.gov/caXchange%22,%22serviceTypeRouter%22);%0A%09public static final QName SYNCHRONOUS_REQUEST_SERVICE = new QName(%22http://nci.nih.gov/caXchange%22,%22synchronousRequestService%22);
 %0A%0A%09publi
@@ -1917,16 +1917,112 @@
 tifier%22;
+%0A%09public static final String IN_MESSAGE = %22in%22;%0A%09public static final String OUT_MESSAGE = %22out%22;
 %0A%0A    st

Add constants for implementing synchronous routing using Bean.