protected boolean isContainerManagedTx() { BeanMetaData md = con.getBeanMetaData(); return md.isContainerManagedTx(); }
public void create() throws Exception { BeanMetaData metaData = container.getBeanMetaData(); localJndiName = metaData.getLocalJndiName(); }
protected boolean isUserManagedTx() { BeanMetaData md = con.getBeanMetaData(); return md.isContainerManagedTx() == false; }
/** Helper to check if the tx type is TX_REQUIRED. */ private boolean isTxRequired() { MessageDrivenMetaData md = (MessageDrivenMetaData)con.getBeanMetaData(); return md.getMethodTransactionType() == MetaData.TX_REQUIRED; } }
public EJBLocalHome getLocalHome(Container con) { return (EJBLocalHome) localHomes.get(con.getBeanMetaData().getEjbName()); }
/** * Remove a container from this deployment unit. * * @param con */ public void removeContainer(Container con) { containers.remove(con.getBeanMetaData().getEjbName()); containerOrdering.remove(con); }
protected void logPassivation(Object id) { if( log.isTraceEnabled() ) { StringBuffer m_buffer=new StringBuffer(100); m_buffer.append("Passivated bean "); m_buffer.append(getContainer().getBeanMetaData().getEjbName()); m_buffer.append(" with id = "); m_buffer.append(id); log.trace(m_buffer.toString()); } }
protected void logActivation(Object id) { if( log.isTraceEnabled() ) { StringBuffer m_buffer=new StringBuffer(100); m_buffer.append("Activated bean "); m_buffer.append(getContainer().getBeanMetaData().getEjbName()); m_buffer.append(" with id = "); m_buffer.append(id); log.trace(m_buffer.toString()); } }
public void setContainer(Container container) { this.container = (EntityContainer)container; if(container != null) { log = Logger.getLogger( this.getClass().getName() + "." + container.getBeanMetaData().getEjbName()); } }
public void setContainer(Container container) { this.container = (EntityContainer)container; if(container != null) { log = Logger.getLogger( this.getClass().getName() + "." + container.getBeanMetaData().getEjbName()); } }
protected ResizerTask(long resizerPeriod) { this.resizerPeriod = resizerPeriod; m_message = "Resized cache for bean " + m_cache.getContainer().getBeanMetaData().getEjbName() + ": old capacity = "; m_buffer = new StringBuffer(); }
public void create() throws Exception { // Do initialization in superclass. super.create(); // Set the atateless attribute stateless = ((SessionMetaData)container.getBeanMetaData()).isStateless(); }
public void setContainer(Container container) { super.setContainer(container); if (container != null) { EntityMetaData meta = (EntityMetaData) container.getBeanMetaData(); reentrant = meta.isReentrant(); } }
protected OveragerTask(long period) { m_message = getTaskLogMessage() + " " + m_cache.getContainer().getBeanMetaData().getEjbName() + " with id = "; m_buffer = new StringBuffer(); }
public String toString() { return getContainer().getBeanMetaData().getEjbName() + '#' + getId(); }
private int startTransaction(final Invocation invocation) throws Exception { // Get the old timeout and set any new timeout int oldTimeout = -1; if (tm instanceof TransactionTimeoutConfiguration) { oldTimeout = ((TransactionTimeoutConfiguration) tm).getTransactionTimeout(); int newTimeout = container.getBeanMetaData().getTransactionTimeout(invocation.getMethod()); tm.setTransactionTimeout(newTimeout); } tm.begin(); return oldTimeout; }
public void start() throws Exception { super.start (); String ejbName = this.getContainer ().getBeanMetaData ().getEjbName (); this.DS_CATEGORY = "CMPClusteredInMemoryPersistenceManager-" + ejbName; this.ds.registerDSListenerEx (this.DS_CATEGORY, this); }
public void create() throws Exception { super.start(); BeanMetaData md = getContainer().getBeanMetaData(); ejbName = md.getEjbName(); // Should we log call details callLogging = md.getContainerConfiguration().getCallLogging(); }
public void create() throws Exception { super.create(); BeanMetaData bmd = getContainer().getBeanMetaData(); exceptionRollback = bmd.getExceptionRollback(); if (exceptionRollback == false) exceptionRollback = bmd.getApplicationMetaData().getExceptionRollback(); }
public void create() throws Exception { super.create (); // Get a reference to the DS service ClusterConfigMetaData config = getContainer().getBeanMetaData().getClusterConfigMetaData(); String partitionName = config.getPartitionName(); String name = "jboss:service=DistributedState,partitionName=" + partitionName; ds = (DistributedState) Registry.lookup (name); if( ds == null ) throw new DeploymentException("Failed to find DistributedState service: "+name); }