001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.resource.connectionmanager;
023:
024: import javax.management.ObjectName;
025:
026: import org.jboss.mx.util.ObjectNameFactory;
027:
028: /**
029: * MBean interface.
030: *
031: * @author <a href="mailto:adrian@jboss.com">Adrian Brock</a>
032: * @version $Revision: 59870 $
033: */
034: public interface TxConnectionManagerMBean extends
035: BaseConnectionManager2MBean {
036: public static final ObjectName OBJECT_NAME = ObjectNameFactory
037: .create("jboss.jca:service=BaseConnectionManager");
038:
039: /**
040: * mbean get-set pair for field transactionManagerService Get the value of transactionManagerService
041: *
042: * @return value of transactionManagerService
043: */
044: ObjectName getTransactionManagerService();
045:
046: /**
047: * Set the value of transactionManagerService
048: *
049: * @param transactionManagerService Value to assign to transactionManagerService
050: */
051: void setTransactionManagerService(
052: ObjectName transactionManagerService);
053:
054: /**
055: * The TransactionManager attribute contains the jndi name of the TransactionManager. This is normally java:/TransactionManager.
056: *
057: * @param tmName an <code>String</code> value
058: * @deprecated use the ObjectName TransactionManagerService instead
059: */
060: void setTransactionManager(String tmName);
061:
062: /**
063: * Describe <code>getTransactionManager</code> method here.
064: *
065: * @return an <code>String</code> value
066: * @deprecated use the ObjectName TransactionManagerService instead
067: */
068: String getTransactionManager();
069:
070: /**
071: * mbean get-set pair for field trackConnectionByTx Get the value of trackConnectionByTx
072: *
073: * @return value of trackConnectionByTx
074: */
075: boolean isTrackConnectionByTx();
076:
077: /**
078: * Set the value of trackConnectionByTx
079: *
080: * @param trackConnectionByTx Value to assign to trackConnectionByTx
081: */
082: void setTrackConnectionByTx(boolean trackConnectionByTx);
083:
084: /**
085: * mbean get-set pair for field localTransactions Get the value of localTransactions
086: *
087: * @return value of localTransactions
088: */
089: boolean isLocalTransactions();
090:
091: /**
092: * Set the value of localTransactions
093: *
094: * @param localTransactions Value to assign to localTransactions
095: */
096: void setLocalTransactions(boolean localTransactions);
097:
098: int getXAResourceTransactionTimeout();
099:
100: void setXAResourceTransactionTimeout(int timeout);
101:
102: Boolean getIsSameRMOverrideValue();
103:
104: void setIsSameRMOverrideValue(Boolean override);
105:
106: }
|