Deprecated API

Deprecated Classes
org.jboss.net.axis.AxisInvocationHandler (src)
          Due to the inherent deficiencies in using pure reflection meat-data to access web services, we recommend using the full-blown jaxrpc/wsdl approach. 
org.jboss.logging.util.CategoryStream (src)
          Use LoggerStream (src) instead. 
org.jboss.logging.util.CategoryWriter (src)
          Use LoggerWriter (src) instead. 
org.jboss.axis.configuration.DefaultEngineConfigurationFactory (src)
            
javax.management.DefaultLoaderRepository (src)
          Use MBeanServer.getClassLoaderRepository()} instead. 
javax.management.loading.DefaultLoaderRepository (src)
          Use MBeanServer.getClassLoaderRepository() instead. 
org.jboss.axis.encoding.DefaultSOAP12TypeMappingImpl (src)
          Please use DefaultSOAPEncodingTypeMappingImpl.java 
org.jboss.ejb.plugins.EntityMultiInstanceInterceptor (src)
          this interceptor was used with Instance Per Transaction containers which do not use a global cache but cache instances per transaction and always passivate instances at commit time (commit option C). This interceptor used org.jboss.ejb.TxEntityMap to compensate the absence of a real per transaction cache implementation. Now, the differences between IPT and standard container are:
  • org.jboss.ejb.plugins.PerTxEntityInstanceCache as the cache implementation;
  • NoLock as the locking policy;
  • empty container-cache-conf element.
(alex@jboss.org) The instance interceptors role is to acquire a context representing the target object from the cache.
 
org.jboss.ejb.plugins.EntityMultiInstanceSynchronizationInterceptor (src)
          this interceptor was used with Instance Per Transaction containers which do not use a global cache but cache instances per transaction and always passivate instances at commit time (commit option C). The only difference from the EntityInstanceInterceptor is that it uses specific instance Synchronization implementation which always passivates the instance at commit time which is equivalent to commit option C in standard container. Now, the differences between IPT and standard container are:
  • org.jboss.ejb.plugins.PerTxEntityInstanceCache as the cache implementation;
  • NoLock as the locking policy;
  • empty container-cache-conf element.
(alex@jboss.org) The role of this interceptor is to synchronize the state of the cache with the underlying storage. It does this with the ejbLoad and ejbStore semantics of the EJB specification. In the presence of a transaction this is triggered by transaction demarcation. It registers a callback with the underlying transaction monitor through the JTA interfaces. If there is no transaction the policy is to store state upon returning from invocation. The synchronization polices A,B,C of the specification are taken care of here.

WARNING: critical code, get approval from senior developers before changing. 

org.jboss.hibernate.session.HibernateContext (src)
          Direct use of the new org.hibernate.SessionFactory#getCurrentSession() method is the preferred approach to managing "transaction contextual sessions". 
org.jboss.net.jmx.MBeanInvocationHandler (src)
          You should use the jaxrpc/wsdl approach instead. 
org.jboss.proxy.compiler.ProxyAssembler (src)
          Use ProxyCompiler (src) or Jakarta BCEL instead. 
org.jboss.net.jmx.adaptor.RemoteAdaptorInvocationHandler (src)
          You should use the jaxrpc/wsdl approach instead. 
org.jboss.axis.configuration.ServletEngineConfigurationFactory (src)
            
javax.management.timer.TimerAlarmClockNotification (src)
            
org.jboss.ejb.TxEntityMap (src)
          this class was useful only for Instance Per Transaction containers and was used to check whether the instance is associated with the tx. There is org.jboss.ejb.plugins.PerTxEntityInstanceCache which is a per tx implementation of org.jboss.ejb.EntityCache which should be used with IPT containers. (alex@jboss.org) This class provides a way to find out what entities of a certain type that are contained in within a transaction. It is attached to a specific instance of a container. This class interfaces with the static GlobalTxEntityMap. EntitySynchronizationInterceptor registers tx/entity pairs through this class. Used in EntitySynchronizationInterceptor. 
 

Deprecated Interfaces
org.jboss.ha.framework.interfaces.DistributedState.DSListener (src)
          use the DSListenerEx instead 
javax.resource.spi.security.GenericCredential (src)
          Use org.ietf.jgss.GSSCredential 
 

Deprecated Fields
javax.management.monitor.Monitor.alreadyNotified
          use Monitor.alreadyNotifieds[0] 
javax.management.monitor.Monitor.dbgTag
          No replacement. 
org.jboss.deployment.DeploymentSorter.DEFAULT_SUFFIX_ORDER
            
org.jboss.axis.transport.http.HTTPConstants.MC_HTTP_SOAPACTION
          Should use javax.xml.rpc.Call.SOAPACTION_URI_PROPERTY instead. 
org.jboss.axis.Constants.URI_SOAP12_NEXT_ACTOR
          use URI_SOAP12_NEXT_ROLE 
 

Deprecated Methods
org.jboss.ha.framework.interfaces.HAPartition.callAsynchMethodOnCluster(String, String, Object[], boolean)
          Use HAPartition.callAsynchMethodOnCluster(String, String, Object[], Class[], boolean) instead 
org.jboss.ha.framework.server.HAPartitionImpl.callAsynchMethodOnCluster(String, String, Object[], boolean)
          Use HAPartitionImpl.callAsynchMethodOnCluster(String, String, Object[], Class[], boolean) instead 
org.jboss.ha.framework.interfaces.HAPartition.callMethodOnCluster(String, String, Object[], boolean)
          Use HAPartition.callMethodOnCluster(String, String, Object[], Class[], boolean) instead 
org.jboss.ha.framework.server.HAPartitionImpl.callMethodOnCluster(String, String, Object[], boolean)
          Use HAPartitionImpl.callMethodOnCluster(String,String,Object[],Class[], boolean) instead 
org.jboss.ha.jmx.HAServiceMBeanSupport.callMethodOnPartition(String, Object[])
          Use HAServiceMBeanSupport.callMethodOnPartition(String, Object[], Class[]) instead 
org.jboss.iiop.jacorb.ORBSingleton.create_recursive_sequence_tc(int, int)
          Deprecated by CORBA 2.3. 
org.jboss.system.ORBSingleton.create_recursive_sequence_tc(int, int)
          Deprecated by CORBA 2.3. 
javax.xml.soap.SOAPElementFactory.create(Name)
          Use javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name) 
javax.xml.soap.SOAPElementFactory.create(String)
          Use javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name) 
javax.xml.soap.SOAPElementFactory.create(String, String, String)
          Use javax.xml.soap.SOAPFactory.createElement(String localName, String prefix, String uri) instead 
org.jboss.axis.wsdl.toJava.Emitter.debug(boolean)
          Use setDebug(value) 
org.jboss.axis.wsdl.toJava.Emitter.deploySkeleton(boolean)
          Use setSkeletonWanted(value) 
javax.management.MBeanServer.deserialize(ObjectName, byte[])
          use MBeanServer.getClassLoaderFor(ObjectName) to obtain the appropriate classloader for deserialization 
org.jboss.mx.server.MBeanServerImpl.deserialize(ObjectName, byte[])
            
javax.management.MBeanServer.deserialize(String, byte[])
          use MBeanServer.getClassLoaderFor(ObjectName) to obtain the appropriate classloader for deserialization 
org.jboss.mx.server.MBeanServerImpl.deserialize(String, byte[])
            
javax.management.MBeanServer.deserialize(String, ObjectName, byte[])
          use MBeanServer.getClassLoaderFor(ObjectName) to obtain the appropriate classloader for deserialization 
org.jboss.mx.server.MBeanServerImpl.deserialize(String, ObjectName, byte[])
            
org.jboss.axis.wsdl.toJava.Emitter.emit(String)
          Call run(uri) instead. 
org.jboss.axis.wsdl.toJava.Emitter.emit(String, Document)
          Call run(context, doc) instead. 
javax.resource.spi.security.GenericCredential.equals(Object)
          Use org.ietf.jgss.GSSCredential 
org.jboss.axis.wsdl.toJava.Emitter.generateAll(boolean)
          Use setAllWanted(all) 
org.jboss.axis.wsdl.toJava.Emitter.generateImports(boolean)
          Use setImports(generateImports) 
org.jboss.axis.wsdl.toJava.Emitter.generateServerSide(boolean)
          Use setServerSide(value) 
org.jboss.axis.wsdl.toJava.Emitter.generateTestCase(boolean)
          Use setTestCaseWanted() 
org.jboss.iiop.jacorb.ORBSingleton.get_current()
          Deprecated by CORBA 2.3. 
org.jboss.system.ORBSingleton.get_current()
          Deprecated by CORBA 2.3. 
org.jboss.ejb.EnterpriseContext.EJBContextImpl.getCallerIdentity()
            
javax.resource.spi.security.GenericCredential.getCredentialData()
          Use org.ietf.jgss.GSSCredential 
org.jboss.axis.wsdl.toJava.Emitter.getDebug()
          Use isDebug() 
org.jboss.axis.wsdl.toJava.Emitter.getDeploySkeleton()
          Use isSkeletonWanted() 
javax.management.monitor.StringMonitorMBean.getDerivedGauge()
          use StringMonitorMBean.getDerivedGauge(ObjectName) 
javax.management.monitor.GaugeMonitorMBean.getDerivedGauge()
          use GaugeMonitorMBean.getDerivedGauge(ObjectName) 
javax.management.monitor.CounterMonitorMBean.getDerivedGauge()
          use CounterMonitorMBean.getDerivedGauge(ObjectName) 
javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp()
          use StringMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp()
          use GaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp()
          use CounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.modelmbean.ModelMBeanInfoSupport.getDescriptor(String)
          use ModelMBeanInfoSupport.getDescriptor(String, String) instead. 
org.jboss.ejb.EnterpriseContext.EJBContextImpl.getEnvironment()
            
org.jboss.axis.wsdl.toJava.Emitter.getGenerateServerSide()
          Use isServerSide() 
org.jboss.axis.wsdl.toJava.Emitter.getHelperGeneration()
          Use isHelperWanted() 
org.jboss.cache.Node.getImmutableLock()
          Use getLock() instead 
org.jboss.axis.utils.CLOptionDescriptor.getIncompatble()
          Use the correctly spelled CLOptionDescriptor.getIncompatible() instead. 
javax.resource.cci.ResourceWarning.getLinkedWarning()
          use getCause() 
javax.resource.spi.security.GenericCredential.getMechType()
          Use org.ietf.jgss.GSSCredential 
org.jboss.axis.wsdl.fromJava.Emitter.getMode()
          (use getStyle and getUse) 
javax.enterprise.deploy.model.DeployableObject.getModuleDTDVersion()
          use DDBeanRoot.getDDBeanRootVersion 
javax.enterprise.deploy.model.DDBeanRoot.getModuleDTDVersion()
          use getDDBeanRootVersion 
javax.resource.spi.security.GenericCredential.getName()
          Use org.ietf.jgss.GSSCredential 
javax.management.monitor.MonitorMBean.getObservedObject()
          use MonitorMBean.getObservedObjects() 
org.jboss.jdbc.HypersonicDatabase.getPersist()
          use inProcessMode. 
org.jboss.axis.client.Call.getPortTypeName()
          This is really the service's port name, not portType name. Use getPortName instead. 
org.jboss.axis.client.Stub.getResponseHeaders(Call)
          This method has been changed to a no-op but remains in the code to keep compatibility with pre-1.1 generated stubs. 
org.jboss.axis.client.Call.getScopedProperty(String)
            
org.jboss.hibernate.session.HibernateContext.getSession(String)
          Given a SessionFactory, sf (usually obtained from JNDI), this method is equivalent to
sf.getCurrentSession()
.
 
org.jboss.util.loading.ContextClassLoaderSwitcher.getSwitchContext(Class)
          using a class to determine the classloader is a bad idea, it has the same problems as Class.forName() 
javax.management.monitor.CounterMonitorMBean.getThreshold()
          use CounterMonitorMBean.getThreshold(ObjectName) 
org.jboss.resource.connectionmanager.TxConnectionManager.getTransactionManager()
          use the ObjectName TransactionManagerService instead 
org.jboss.axis.wsdl.symbolTable.SymbolTable.getTypes()
          use specialized get{Element,Type}Index() methods instead 
org.jboss.hibernate.session.HibernateContext.getUnmanagedSession(String)
          Given a SessionFactory, sf (usually obtained from JNDI), this method is equivalent to
sf.openSession( sf.getCurrentSession().connection() )
 
org.jboss.axis.wsdl.toJava.Emitter.getVerbose()
          Use isVerbose() 
org.jboss.axis.wsdl.toJava.Emitter.getWriterFactory()
          Call getFactory instead. This doesn't return a WriterFactory, it returns a GeneratorFactory. 
org.jboss.cache.Node.hasChild()
          Use Node.hasChildren() instead 
javax.resource.spi.security.GenericCredential.hashCode()
          Use org.ietf.jgss.GSSCredential 
org.jboss.ejb.EnterpriseContext.EJBContextImpl.isCallerInRole(Identity)
            
org.jboss.logging.Log4jLoggerPlugin.log(Priority, Object)
          Use Level versions. 
org.jboss.logging.Log4jLoggerPlugin.log(Priority, Object, Throwable)
          Use Level versions. 
org.jboss.cache.TreeCache.putFailFast(Fqn, Object, Object, long)
          This is a kludge created specifically form the Hibernate 3.0 release. This method should not be used by any application. The methodV will likely be removed in a future release 
org.jboss.cache.TreeCache.putFailFast(String, Object, Object, long)
            
org.jboss.hibernate.session.HibernateContext.releaseUnmanagedSession(Session)
          See HibernateContext.getUnmanagedSession(String) 
org.jboss.axis.client.Call.removeScopedProperty(String)
            
org.jboss.ha.framework.server.FarmMemberServiceMBean.setFarmDeployDirectory(String)
            
org.jboss.ha.framework.server.FarmMemberService.setFarmDeployDirectory(String)
            
org.jboss.axis.AxisFault.setFaultCode(String)
          expect to see this go away after 1.1, use setFaultCodeAsString instead! 
org.jboss.axis.wsdl.toJava.Emitter.setHelperGeneration(boolean)
          Use setHelperWanted(value) 
javax.resource.ResourceException.setLinkedException(Exception)
          use initCause 
javax.resource.cci.ResourceWarning.setLinkedWarning(ResourceWarning)
          use initCause() 
org.jboss.axis.description.FieldDesc.setMinOccursIs0(boolean)
          this functionality, which is only relevant to ElementDescs, now lives in ElementDesc and is more flexible (you can set minOccurs and maxOccurs as you please) 
org.jboss.axis.wsdl.fromJava.Emitter.setMode(int)
          (use setStyle and setUse) 
javax.management.monitor.MonitorMBean.setObservedObject(ObjectName)
          use MonitorMBean.addObservedObject(ObjectName) 
org.jboss.jdbc.HypersonicDatabase.setPersist(boolean)
          use inProcessMode. 
org.jboss.axis.client.Call.setPortTypeName(QName)
          This is really the service's port name, not portType name. Use setPortName instead. 
org.jboss.ha.framework.server.FarmMemberServiceMBean.setScannerName(String)
            
org.jboss.ha.framework.server.FarmMemberService.setScannerName(String)
            
org.jboss.axis.client.Call.setScopedProperty(String, Object)
            
javax.management.monitor.CounterMonitorMBean.setThreshold(Number)
          use CounterMonitorMBean.setInitThreshold(Number) 
org.jboss.resource.connectionmanager.TxConnectionManager.setTransactionManager(String)
          use the ObjectName TransactionManagerService instead 
org.jboss.axis.wsdl.toJava.Emitter.verbose(boolean)
          Use setVerbose(value) 
 

Deprecated Constructors
org.jboss.verifier.factory.DefaultEventFactory()
          Use the other constructor with a specific Message Bundle for your own verification logic! 
org.jboss.axis.description.ParameterDesc(QName, byte, QName, Class)