You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by ip...@apache.org on 2005/05/25 01:58:56 UTC
svn commit: r178325 - in /incubator/apollo/trunk: ./
src/java/org/apache/ws/resource/ src/java/org/apache/ws/resource/handler/
src/java/org/apache/ws/resource/i18n/ src/java/org/apache/ws/resource/impl/
Author: ips
Date: Tue May 24 16:58:54 2005
New Revision: 178325
URL: http://svn.apache.org/viewcvs?rev=178325&view=rev
Log:
upgraded to Axis 1.2 final; improved error handling
Modified:
incubator/apollo/trunk/project.xml
incubator/apollo/trunk/src/java/org/apache/ws/resource/AbstractPortType.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceUnknownException.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/i18n/Keys.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceContext.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceHome.java
Modified: incubator/apollo/trunk/project.xml
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/project.xml?rev=178325&r1=178324&r2=178325&view=diff
==============================================================================
--- incubator/apollo/trunk/project.xml (original)
+++ incubator/apollo/trunk/project.xml Tue May 24 16:58:54 2005
@@ -138,7 +138,7 @@
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
- <version>1.2-RC2</version>
+ <version>1.2</version>
<url>http://ws.apache.org/axis/</url>
<properties>
<license>ApacheLicense-2.0.txt</license>
@@ -150,7 +150,7 @@
<dependency>
<groupId>axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
- <version>1.2-RC2</version>
+ <version>1.2</version>
<url>http://ws.apache.org/axis/</url>
<properties>
<license>BinaryCodeLicense-JaxRpcApi.txt</license>
@@ -162,7 +162,7 @@
<dependency>
<groupId>axis</groupId>
<artifactId>axis-saaj</artifactId>
- <version>1.2-RC2</version>
+ <version>1.2</version>
<url>http://ws.apache.org/axis/</url>
<properties>
<license>BinaryCodeLicense-SaajApi.txt</license>
@@ -401,19 +401,7 @@
<war.bundle>true</war.bundle>
</properties>
</dependency>
-<!--
- <dependency>
- <groupId>xmlbeans</groupId>
- <artifactId>xbean</artifactId>
- <version>1.0.4</version>
- <url>http://xmlbeans.apache.org/</url>
- <properties>
- <license>ApacheLicense-2.0.txt</license>
- <war.bundle>true</war.bundle>
- <usage>Needed for handling XML types in a platform agnostic way.</usage>
- </properties>
- </dependency>
--->
+
<dependency>
<groupId>xmlbeans</groupId>
<artifactId>xbean</artifactId>
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/AbstractPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/AbstractPortType.java?rev=178325&r1=178324&r2=178325&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/AbstractPortType.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/AbstractPortType.java Tue May 24 16:58:54 2005
@@ -73,9 +73,9 @@
{
m_resource = ( (ResourceHome) m_resourceHome ).getInstance( m_resourceContext );
}
- catch ( ResourceUnknownException rce )
+ catch ( ResourceUnknownException rue )
{
- throw new org.apache.ws.resource.properties.faults.ResourceUnknownFaultException(getNamespaceSet(),rce);
+ throw new org.apache.ws.resource.properties.faults.ResourceUnknownFaultException(getNamespaceSet(),rue);
}
catch ( ResourceException re )
{
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java?rev=178325&r1=178324&r2=178325&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java Tue May 24 16:58:54 2005
@@ -101,16 +101,17 @@
* Retrives a resource. <b>Note:</b> This function must not return null. It must return the resource object or throw
* an exception if there is no resource with the specified key.
*
- * @return non-null resource object.
+ * @return non-null resource
*
* @throws ResourceUnknownException if no resource exists with the given key
* @throws InvalidResourceKeyException if the resource key is invalid.
* @throws ResourceException if any other error occurs.
*/
Resource find( ResourceKey key )
- throws ResourceException,
+ throws
ResourceUnknownException,
- InvalidResourceKeyException;
+ InvalidResourceKeyException,
+ ResourceException;
/**
* Removes a resource. If the resource implements the {@link RemoveCallback RemoveCallback} interface, the
@@ -128,20 +129,29 @@
RemoveNotSupportedException;
/**
- * TODO
+ * Retrieves the <code>Resource</code> instance that is corresponds to the id contained
+ * in the specified <code>ResourceContext</code>.
+ *
+ * @throws ResourceUnknownException if no resource exists with the given key
+ * @throws InvalidResourceKeyException if the resource key is invalid.
+ * @throws ResourceException if any other error occurs.
*/
Resource getInstance( ResourceContext resourceContext )
- throws ResourceException,
+ throws
ResourceContextException,
- ResourceUnknownException;
+ ResourceUnknownException,
+ ResourceException;
/**
- * TODO
+ * Builds an EPR based on the specified endpoint address, resource key, and WS-Addressing
+ * namespace URI.
*
* @param endpointAddress
* @param key
* @param wsAddressingURI
* @return An EndpointReference
*/
+ // TODO: should this be moved to a static utility method?
EndpointReference getEndpointReference( String endpointAddress, ResourceKey key, String wsAddressingURI );
-}
\ No newline at end of file
+
+}
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceUnknownException.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceUnknownException.java?rev=178325&r1=178324&r2=178325&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceUnknownException.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceUnknownException.java Tue May 24 16:58:54 2005
@@ -19,10 +19,9 @@
import org.apache.ws.resource.i18n.MessagesImpl;
import org.apache.ws.util.i18n.Messages;
-
/**
- * LOG-DONE
- * @author Ian P. Springer
+ * Indicates that a {@link Resource} instance with the specified id
+ * was not found in the corresponding {@link ResourceHome}.
*/
public class ResourceUnknownException
extends ResourceException
@@ -31,13 +30,9 @@
private Object m_resourceId;
private String m_serviceName;
- public ResourceUnknownException( )
- {
- super( );
- }
/**
- * @param resourceId
- * @param serviceName
+ * @param resourceId the resource id that was unknown
+ * @param serviceName the name of the service associated with the home where we tried to lookup the resource
*/
public ResourceUnknownException( Object resourceId,
String serviceName )
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java?rev=178325&r1=178324&r2=178325&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java Tue May 24 16:58:54 2005
@@ -471,11 +471,24 @@
}
catch ( InvocationTargetException ite )
{
- LOG.error( MSG.getMessage( Keys.ERROR_INVOKING_METHOD_ON_SERVICE,
+ if ( LOG.isDebugEnabled() )
+ {
+ LOG.debug( MSG.getMessage( Keys.ERROR_INVOKING_METHOD_ON_SERVICE,
serviceMethod.getName(),
- serviceClass.getName(),
- ite.getCause() ) );
- throw (Exception) ite.getCause();
+ serviceClass.getName() ) );
+ if ( ite.getCause() != null )
+ {
+ ite.getCause().printStackTrace( );
+ }
+ }
+ if ( ite.getCause() != null )
+ {
+ throw (Exception) ite.getCause();
+ }
+ else
+ {
+ throw ite;
+ }
}
if ( responseXBean == null && serviceMethod.getReturnType() != void.class )
{
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/i18n/Keys.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/i18n/Keys.java?rev=178325&r1=178324&r2=178325&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/i18n/Keys.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/i18n/Keys.java Tue May 24 16:58:54 2005
@@ -160,7 +160,7 @@
String RECEIVED_REQUEST = "RECEIVED_REQUEST";
/**
- * @msg An error occurred invoking: {0} on service class: {1}, Cause: {2}
+ * @msg The {0} method on service class {1} threw an exception.
*/
String ERROR_INVOKING_METHOD_ON_SERVICE = "ERROR_INVOKING_METHOD_ON_SERVICE";
@@ -220,7 +220,7 @@
String CLEANING_EXPIRED_RESOURCES = "CLEANING_EXPIRED_RESOURCES";
/**
- * @msg Finding resource with key: {0}
+ * @msg Finding resource with key {0} ...
*/
String FINDING_RESOURCE_WITH_KEY = "FINDING_RESOURCE_WITH_KEY";
@@ -242,7 +242,7 @@
/**
* @msg The Resource Class name was null, please check the jndi-config.xml file.
*/
- String RESOURCE_CLASS_NULL = "RESOURCE_CLASS_NULL";
+ String RESOURCE_CLASSNAME_NULL = "RESOURCE_CLASSNAME_NULL";
/**
* @msg Failed to destroy resource: {0} Cause: {1}
@@ -267,13 +267,13 @@
*/
String FAILED_TO_INIT_RESOURCE = "FAILED_TO_INIT_RESOURCE";
/**
- * @msg Loading Resource from Persistence for ResourceKey: {0}
+ * @msg Loading Resource from persistence for ResourceKey: {0}
*/
- String LOADING_RESORUCE_FROM_PERSISTENCE = "LOADING_RESORUCE_FROM_PERSISTENCE";
+ String LOADING_RESOURCE_FROM_PERSISTENCE = "LOADING_RESOURCE_FROM_PERSISTENCE";
/**
- * @msg The Resource Class Name was not found for the Resource Class. Please check the JNDI config.
+ * @msg The Resource class {0} was not found. Please check your classpath and WSRF JNDI config.
*/
- String RESOURCE_CLASSNAME_NOT_FOUND = "RESOURCE_CLASSNAME_NOT_FOUND";
+ String RESOURCE_CLASS_NOT_FOUND = "RESOURCE_CLASS_NOT_FOUND";
/**
* @msg Adding Resource for ResourceKey: {0}
*/
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceContext.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceContext.java?rev=178325&r1=178324&r2=178325&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceContext.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceContext.java Tue May 24 16:58:54 2005
@@ -143,9 +143,9 @@
resourceKeyClassName = home.getResourceKeyClassName();
resourceKeyClass = Class.forName( resourceKeyClassName );
}
- catch ( ClassNotFoundException e )
+ catch ( ClassNotFoundException cnfe )
{
- throw new ResourceException( e );
+ throw new ResourceException( cnfe );
}
String resourceKeyName = home.getResourceKeyName();
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceHome.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceHome.java?rev=178325&r1=178324&r2=178325&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceHome.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceHome.java Tue May 24 16:58:54 2005
@@ -55,10 +55,9 @@
import java.util.Map;
/**
- * LOG-DONE
- * An implementation of the <code>ResourceHome</code> interface. This implementation was designed to work with resources
- * that implement the {@link PersistenceCallback PersistenceCallback} interface as well as memory resident resources. If
- * the resource class implements the {@link PersistenceCallback PersistenceCallback} interface
+ * LOG-DONE An implementation of the <code>ResourceHome</code> interface. This implementation was designed to work with
+ * resources that implement the {@link PersistenceCallback PersistenceCallback} interface as well as memory resident
+ * resources. If the resource class implements the {@link PersistenceCallback PersistenceCallback} interface
* <code>SoftReference</code>s will be used to recycle resource objects. The resource class implementation is
* responsible for saving its state to disk. This implementation will <b>not</b> call {@link PersistenceCallback#store()
* PersistenceCallback.store()}. The resource implementation must have a default constructor. <br><br> Configuration
@@ -95,618 +94,612 @@
* first call {@link #init() initialize()} method. Also when overriding the {@link #init() initialize()} method make
* sure to call <code>super.initialize();</code>.
*
- * @author Globus, Ian P. Springer
+ * @author Globus, Ian Springer
*/
public abstract class AbstractResourceHome
- implements ResourceHome,
- Initializable
+ implements ResourceHome,
+ Initializable
{
- private static final int DEFAULT_SWEEPER_DELAY = 60000;
- private static final Log LOG = LogFactory.getLog( AbstractResourceHome.class );
- public static final Messages MSG = MessagesImpl.getInstance();
-
- /**
- * DOCUMENT_ME
- */
- protected Map m_resources;
-
- /**
- * DOCUMENT_ME
- */
- protected String m_resourceClassName;
- private boolean m_resourceIsPersistent;
- private String m_resourceKeyClassName;
- private String m_resourceKeyName;
- private String m_wsdlTargetNamespace;
- private String m_serviceClassName;
-
- /**
- * DOCUMENT_ME
- */
- protected LockManager m_lockManager;
- private String m_cacheLocation;
- private Cache m_cache;
- private long m_sweeperDelay = DEFAULT_SWEEPER_DELAY;
- private Sweeper m_sweeper;
- private boolean m_initialized;
- private Class m_resourceClass;
- private Class m_serviceClass;
- private Class m_resourceKeyClass;
- private List m_creationListeners = new ArrayList();
- private List m_destructionListeners = new ArrayList();
-
- /**
- * DOCUMENT_ME
- *
- * @param jndiLocation DOCUMENT_ME
- */
- public void setCacheLocation( String jndiLocation )
- {
- m_cacheLocation = jndiLocation;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public String getCacheLocation( )
- {
- return m_cacheLocation;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param resourceClass DOCUMENT_ME
- */
- public void setResourceClassName( String resourceClass )
- {
- m_resourceClassName = resourceClass;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public String getResourceClassName( )
- {
- return m_resourceClassName;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param keyClass DOCUMENT_ME
- */
- public void setResourceKeyClassName( String keyClass )
- {
- m_resourceKeyClassName = keyClass;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public String getResourceKeyClassName( )
- {
- return m_resourceKeyClassName;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param keyName DOCUMENT_ME
- */
- public void setResourceKeyName( String keyName )
- {
- m_resourceKeyName = keyName;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public String getResourceKeyName( )
- {
- return m_resourceKeyName;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param serviceClass DOCUMENT_ME
- */
- public void setServiceClass( String serviceClass )
- {
- m_serviceClassName = serviceClass;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param className DOCUMENT_ME
- */
- public void setServiceClassName( String className )
- {
- m_serviceClassName = className;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public String getServiceClassName( )
- {
- return m_serviceClassName;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param delay DOCUMENT_ME
- */
- public void setSweeperDelay( long delay )
- {
- m_sweeperDelay = delay;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public long getSweeperDelay( )
- {
- return m_sweeperDelay;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param targetNamespace DOCUMENT_ME
- */
- public void setWsdlTargetNamespace( String targetNamespace )
- {
- m_wsdlTargetNamespace = targetNamespace;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public String getWsdlTargetNamespace( )
- {
- return m_wsdlTargetNamespace;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param key DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- *
- * @throws ResourceException if
- * @throws InvalidResourceKeyException DOCUMENT_ME
- */
- public Resource find( ResourceKey key )
- throws ResourceException
- {
-
- LOG.debug(MSG.getMessage(Keys.FINDING_RESOURCE_WITH_KEY, String.valueOf(key)));
-
- Resource resource = null;
- Lock lock = getLock(key);
- try
- {
- lock.acquire( );
- }
- catch ( InterruptedException e )
- {
- throw new ResourceException( e );
- }
-
- try
- {
- resource = get( key );
- if ( m_cache != null )
- {
- m_cache.update( resource );
- }
- }
- finally
- {
- lock.release( );
- }
+ private static final int DEFAULT_SWEEPER_DELAY = 60000;
+ private static final Log LOG = LogFactory.getLog( AbstractResourceHome.class );
+ public static final Messages MSG = MessagesImpl.getInstance();
+
+ /**
+ * DOCUMENT_ME
+ */
+ protected Map m_resources;
+
+ /**
+ * DOCUMENT_ME
+ */
+ protected String m_resourceClassName;
+ private boolean m_resourceIsPersistent;
+ private String m_resourceKeyClassName;
+ private String m_resourceKeyName;
+ private String m_wsdlTargetNamespace;
+ private String m_serviceClassName;
+
+ /**
+ * DOCUMENT_ME
+ */
+ protected LockManager m_lockManager;
+ private String m_cacheLocation;
+ private Cache m_cache;
+ private long m_sweeperDelay = DEFAULT_SWEEPER_DELAY;
+ private Sweeper m_sweeper;
+ private boolean m_initialized;
+ private Class m_resourceClass;
+ private Class m_serviceClass;
+ private Class m_resourceKeyClass;
+ private List m_creationListeners = new ArrayList();
+ private List m_destructionListeners = new ArrayList();
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param jndiLocation DOCUMENT_ME
+ */
+ public void setCacheLocation( String jndiLocation )
+ {
+ m_cacheLocation = jndiLocation;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getCacheLocation()
+ {
+ return m_cacheLocation;
+ }
- return resource;
- }
+ /**
+ * DOCUMENT_ME
+ *
+ * @param resourceClass DOCUMENT_ME
+ */
+ public void setResourceClassName( String resourceClass )
+ {
+ m_resourceClassName = resourceClass;
+ }
- private Lock getLock(ResourceKey key)
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getResourceClassName()
+ {
+ return m_resourceClassName;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param keyClass DOCUMENT_ME
+ */
+ public void setResourceKeyClassName( String keyClass )
+ {
+ m_resourceKeyClassName = keyClass;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getResourceKeyClassName()
+ {
+ return m_resourceKeyClassName;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param keyName DOCUMENT_ME
+ */
+ public void setResourceKeyName( String keyName )
+ {
+ m_resourceKeyName = keyName;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getResourceKeyName()
+ {
+ return m_resourceKeyName;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param serviceClass DOCUMENT_ME
+ */
+ public void setServiceClass( String serviceClass )
+ {
+ m_serviceClassName = serviceClass;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param className DOCUMENT_ME
+ */
+ public void setServiceClassName( String className )
+ {
+ m_serviceClassName = className;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getServiceClassName()
+ {
+ return m_serviceClassName;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param delay DOCUMENT_ME
+ */
+ public void setSweeperDelay( long delay )
+ {
+ m_sweeperDelay = delay;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public long getSweeperDelay()
+ {
+ return m_sweeperDelay;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param targetNamespace DOCUMENT_ME
+ */
+ public void setWsdlTargetNamespace( String targetNamespace )
+ {
+ m_wsdlTargetNamespace = targetNamespace;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getWsdlTargetNamespace()
+ {
+ return m_wsdlTargetNamespace;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param key DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ *
+ * @throws ResourceException if
+ * @throws InvalidResourceKeyException DOCUMENT_ME
+ */
+ public Resource find( ResourceKey key )
+ throws ResourceException
+ {
+
+ LOG.debug( MSG.getMessage( Keys.FINDING_RESOURCE_WITH_KEY, String.valueOf( key ) ) );
+
+ Resource resource = null;
+ Lock lock = getLock( key );
+ try
+ {
+ lock.acquire();
+ }
+ catch ( InterruptedException ie )
+ {
+ throw new ResourceException( ie );
+ }
+
+ try
+ {
+ resource = get( key );
+ if ( m_cache != null )
+ {
+ m_cache.update( resource );
+ }
+ }
+ finally
+ {
+ lock.release();
+ }
+
+ return resource;
+ }
+
+ private Lock getLock( ResourceKey key )
{
Lock lock;
- Object lockKey = getLookupKey(key);
+ Object lockKey = getLookupKey( key );
lock = m_lockManager.getLock( lockKey );
return lock;
}
/**
- * DOCUMENT_ME
- *
- * @throws Exception DOCUMENT_ME
- */
- public synchronized void init( )
- throws Exception
- {
- LOG.debug(MSG.getMessage(Keys.INIT_HOME));
- if ( m_initialized )
- {
- return;
- }
-
- /*if ( m_resourceKeyClassName == null )
- {
- m_resourceKeyClassName = String.class;
- }
- */
-
-
- if ( m_resourceClassName == null )
- {
- throw new Exception( MSG.getMessage( Keys.RESOURCE_CLASS_NULL) );
- }
-
- /* if ( !Resource.class.isAssignableFrom( m_resourceClassName ) )
- {
- throw new Exception( "invalidResourceType: " + m_resourceClassName.getName() );
- }
- if ( PersistenceCallback.class.isAssignableFrom( m_resourceClassName ) )
- {
- m_resourceIsPersistent = true;
- }*/
- Context initialContext = new InitialContext( );
- initResourceMap( initialContext );
- m_lockManager = new LockManager( );
- if ( ScheduledResourceTerminationResource.class.isAssignableFrom( getResourceClass( ) ) )
- {
- initSweeper( initialContext );
- }
-
- m_initialized = true;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param key DOCUMENT_ME
- *
- * @throws ResourceException DOCUMENT_ME
- * @throws InvalidResourceKeyException DOCUMENT_ME
- */
- public void remove( ResourceKey key )
- throws ResourceException
- {
-
- Resource resource = null;
- Lock lock = getLock(key);
- try
- {
- lock.acquire( );
- }
- catch ( InterruptedException ie )
- {
- throw new ResourceException( ie );
- }
-
- try
- {
- resource = get( key );
+ * DOCUMENT_ME
+ *
+ * @throws Exception DOCUMENT_ME
+ */
+ public synchronized void init()
+ throws Exception
+ {
+ LOG.debug( MSG.getMessage( Keys.INIT_HOME ) );
+ if ( m_initialized )
+ {
+ return;
+ }
+
+ /*if ( m_resourceKeyClassName == null )
+ {
+ m_resourceKeyClassName = String.class;
+ }
+ */
+
+
+ if ( m_resourceClassName == null )
+ {
+ throw new Exception( MSG.getMessage( Keys.RESOURCE_CLASSNAME_NULL ) );
+ }
+
+ /* if ( !Resource.class.isAssignableFrom( m_resourceClassName ) )
+ {
+ throw new Exception( "invalidResourceType: " + m_resourceClassName.getName() );
+ }
+ if ( PersistenceCallback.class.isAssignableFrom( m_resourceClassName ) )
+ {
+ m_resourceIsPersistent = true;
+ }*/
+ Context initialContext = new InitialContext();
+ initResourceMap( initialContext );
+ m_lockManager = new LockManager();
+ if ( ScheduledResourceTerminationResource.class.isAssignableFrom( getResourceClass() ) )
+ {
+ initSweeper( initialContext );
+ }
+
+ m_initialized = true;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param key DOCUMENT_ME
+ *
+ * @throws ResourceException DOCUMENT_ME
+ * @throws InvalidResourceKeyException DOCUMENT_ME
+ */
+ public void remove( ResourceKey key )
+ throws ResourceException
+ {
+
+ Resource resource = null;
+ Lock lock = getLock( key );
+ try
+ {
+ lock.acquire();
+ }
+ catch ( InterruptedException ie )
+ {
+ throw new ResourceException( ie );
+ }
+
+ try
+ {
+ resource = get( key );
try
{
- resource.destroy( );
+ resource.destroy();
}
catch ( RuntimeException re )
{
- throw new ResourceException( MSG.getMessage( Keys.FAILED_TO_DESTROY_RESOURCE, resource, re ));
+ throw new ResourceException( MSG.getMessage( Keys.FAILED_TO_DESTROY_RESOURCE, resource, re ) );
}
+ m_resources.remove( getLookupKey( key ) );
+ notifyResourceDeletedListeners( resource.getEndpointReference() );
+
+ LOG.debug( MSG.getMessage( Keys.REMOVED_RESOURCE_WITH_KEY, resource.getClass().getName(),
+ String.valueOf( key ) ) );
+ if ( m_cache != null )
+ {
+ m_cache.remove( resource );
+ }
+ }
+ finally
+ {
+ lock.release();
+ }
+
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param key DOCUMENT_ME
+ * @param resource DOCUMENT_ME
+ */
+ protected void add( ResourceKey key,
+ Resource resource )
+ {
+ // TODO: why do we need add() in addition to addResource()?
+ addResource( key, resource );
+ if ( m_cache != null )
+ {
+ m_cache.update( resource );
+ }
+ }
+
+ /**
+ * This method uses reflection to create an instance of a Resource which contains an empty constructor. It will not
+ * work with Resources which do not have an empty constructor.
+ * <p/>
+ * Note: the returned Resource will not have an EndpointReference associated with it. The caller should next call
+ * getEndpointReference and then use a setter on their resource impl.
+ *
+ * @param key The resource key for this resource.
+ *
+ * @return The resource type which is associated with this home.
+ *
+ * @throws ResourceException
+ * @throws IllegalStateException
+ */
+ protected Resource createInstance( ResourceKey key )
+ throws ResourceException
+ {
+ LOG.debug( MSG.getMessage( Keys.CREATING_INSTANCE_WITH_KEY, String.valueOf( key ) ) );
+ Resource resource;
+ try
+ {
+ resource = (Resource) getResourceClass().newInstance();
+ }
+ catch ( Exception e )
+ {
+ throw new ResourceException( e );
+ }
- m_resources.remove( getLookupKey(key) );
- notifyResourceDeletedListeners(resource.getEndpointReference());
+ resource.setID( key != null ? key.getValue() : null );
- LOG.debug( MSG.getMessage( Keys.REMOVED_RESOURCE_WITH_KEY, resource.getClass( ).getName( ) ,String.valueOf(key) ));
- if ( m_cache != null )
- {
- m_cache.remove( resource );
- }
- }
- finally
- {
- lock.release( );
- }
-
-
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param key DOCUMENT_ME
- * @param resource DOCUMENT_ME
- */
- protected void add( ResourceKey key,
- Resource resource )
- {
- addResource( key, resource );
- if ( m_cache != null )
- {
- m_cache.update( resource );
- }
- }
-
- /**
- * This method uses reflection to create an instance of a Resource which contains
- * an empty constructor. It will not work with Resources which do not have an
- * empty constructor.
- *
- * Note: the returned Resource will not have an EndpointReference associated with it.
- * The caller should next call getEndpointReference and then use a setter on
- * their resource impl.
- *
- * @param key The resource key for this resource.
- * @return The resource type which is associated with this home.
- *
- * @throws ResourceException
- * @throws IllegalStateException
- */
- protected Resource createInstance(ResourceKey key)
- throws ResourceException
- {
- LOG.debug(MSG.getMessage( Keys.CREATING_INSTANCE_WITH_KEY, String.valueOf(key)));
- Resource resource;
- try
- {
- resource = (Resource) getResourceClass( ).newInstance( );
- }
- catch ( Exception e )
- {
- throw new ResourceException( e );
- }
-
- resource.setID( key != null ? key.getValue() : null );
-
- try
- {
- LOG.debug(MSG.getMessage( Keys.INIT_RESOURCE_LIFECYCLE_INSTANCE, resource.getClass().getName()));
+ try
+ {
+ LOG.debug( MSG.getMessage( Keys.INIT_RESOURCE_LIFECYCLE_INSTANCE, resource.getClass().getName() ) );
resource.init();
- }
- catch ( RuntimeException re )
- {
- throw new ResourceException( MSG.getMessage( Keys.FAILED_TO_INIT_RESOURCE, resource, re ), re);
- }
-
- return resource;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param key DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- *
- * @throws ResourceException DOCUMENT_ME
- */
- protected Resource createNewInstanceAndLoad( ResourceKey key )
- throws ResourceException
- {
- Resource resource = createInstance( key);
- LOG.debug(MSG.getMessage( Keys.LOADING_RESORUCE_FROM_PERSISTENCE, String.valueOf(key)));
- ( (PersistenceCallback) resource ).load( key );
- return resource;
- }
-
- private Class getResourceClass( )
- throws ClassNotFoundException, ResourceException
- {
- if ( m_resourceClass == null )
- {
- if ( m_resourceClassName != null )
- {
- m_resourceClass = Class.forName( m_resourceClassName );
- }
- else
- {
- throw new ClassNotFoundException( MSG.getMessage( Keys.RESOURCE_CLASSNAME_NOT_FOUND) );
- }
- }
- return m_resourceClass;
- }
-
- private void addResource( ResourceKey key,
- Resource resource )
- {
- LOG.debug(MSG.getMessage( Keys.ADDING_RESOURCE_FOR_KEY, String.valueOf(key)));
- m_resources.put( getLookupKey(key), resource );
-
- // schedule sweeper task if needed
- if ( m_sweeper != null )
- {
- m_sweeper.schedule( );
- }
-
- notifyResourceCreatedListeners(resource.getEndpointReference());
- }
-
- private Resource get( ResourceKey key )
- throws ResourceException
- {
- LOG.debug(MSG.getMessage( Keys.GET_RESOURCE_FOR_KEY,String.valueOf(key)));
- Object lookupKey = getLookupKey(key);
- Resource resource = (Resource) m_resources.get( lookupKey );
- if ( resource == null )
- {
- if ( m_resourceIsPersistent )
- {
- resource = createNewInstanceAndLoad( key );
- addResource( key, resource );
- if ( ResourceSweeper.isExpired( resource ) )
- {
- remove( key );
- throw new ResourceUnknownException();
- }
- }
- else
- {
- throw new ResourceUnknownException();
- }
- }
+ }
+ catch ( RuntimeException re )
+ {
+ throw new ResourceException( MSG.getMessage( Keys.FAILED_TO_INIT_RESOURCE, resource, re ), re );
+ }
+
+ return resource;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param key DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ *
+ * @throws ResourceException DOCUMENT_ME
+ */
+ protected Resource createNewInstanceAndLoad( ResourceKey key )
+ throws ResourceException
+ {
+ Resource resource = createInstance( key );
+ LOG.debug( MSG.getMessage( Keys.LOADING_RESOURCE_FROM_PERSISTENCE, String.valueOf( key ) ) );
+ ( (PersistenceCallback) resource ).load( key );
+ if ( ResourceSweeper.isExpired( resource ) )
+ {
+ throw new ResourceUnknownException( getLookupKey( key ), getServicePortName() );
+ }
+ return resource;
+ }
+
+ private Class getResourceClass()
+ throws ResourceException
+ {
+ if ( m_resourceClass == null )
+ {
+ if ( m_resourceClassName == null )
+ {
+ throw new IllegalStateException( MSG.getMessage( Keys.RESOURCE_CLASSNAME_NULL ) );
+ }
+ try
+ {
+ m_resourceClass = Class.forName( m_resourceClassName );
+ }
+ catch ( ClassNotFoundException cnfe )
+ {
+ throw new ResourceException( MSG.getMessage( Keys.RESOURCE_CLASS_NOT_FOUND, m_resourceClassName ) );
+ }
+ }
+ return m_resourceClass;
+ }
- return resource;
- }
+ private void addResource( ResourceKey key,
+ Resource resource )
+ {
+ LOG.debug( MSG.getMessage( Keys.ADDING_RESOURCE_FOR_KEY, String.valueOf( key ) ) );
+ m_resources.put( getLookupKey( key ), resource );
+ // schedule sweeper task if needed
+ if ( m_sweeper != null )
+ {
+ m_sweeper.schedule();
+ }
+ notifyResourceCreatedListeners( resource.getEndpointReference() );
+ }
+
+ private Resource get( ResourceKey key )
+ throws ResourceException
+ {
+ LOG.debug( MSG.getMessage( Keys.GET_RESOURCE_FOR_KEY, String.valueOf( key ) ) );
+ Object lookupKey = getLookupKey( key );
+ Resource resource = (Resource) m_resources.get( lookupKey );
+ if ( resource == null )
+ {
+ if ( !m_resourceIsPersistent )
+ {
+ throw new ResourceUnknownException( lookupKey, getServicePortName() );
+ }
+ addResource( key, createNewInstanceAndLoad( key ) );
+ }
+ return resource;
+ }
- private Object getLookupKey(ResourceKey key)
+ private Object getLookupKey( ResourceKey key )
{
- Object lookupKey = key != null ? key : (Object)this;
+ Object lookupKey = key != null ? key : (Object) this;
return lookupKey;
}
private void initCachePolicy( Context initialContext )
- throws NamingException
- {
- if ( m_cacheLocation != null )
- {
- m_cache = (Cache) JNDIUtils.lookup( initialContext, m_cacheLocation, Cache.class );
- }
- }
-
- private void initResourceMap( Context initialContext )
- throws NamingException
- {
- if ( m_resourceIsPersistent )
- {
- m_resources = new ReferenceMap( ReferenceMap.HARD, ReferenceMap.SOFT, true );
- initCachePolicy( initialContext );
- }
- else
- {
- m_resources = new HashMap( );
- }
-
- m_resources = Collections.synchronizedMap( m_resources );
- }
-
- private void initSweeper( Context initialContext )
- throws NamingException
- {
- LOG.debug( MSG.getMessage( Keys.TIMER_LOOKUP_WITH_JNDI_NAME,JndiConstants.KEY_NAME_DEFAULT_TIMER ) );
- TimerManager timerManager = (TimerManager) initialContext.lookup( JndiConstants.KEY_NAME_DEFAULT_TIMER );
-
- // TimerManager timerManager = new TimerManagerImpl();
- m_sweeper = new Sweeper( this, m_resources, timerManager, m_sweeperDelay );
- }
-
- /**
- * This ResourceSweeper implementation just returns the resources currently stored in the map. The reason is that the
- * sweeper doesn't have to reactivate/reload a persistent resource if the resource object was reclaimed. So lifetime
- * checks are not done on reclained resources. Lifetime checks have to be done on resource load.
- */
- private static class Sweeper
- extends ResourceSweeper
- {
- private TimerManager m_timerManager;
- private Timer m_timer;
- private long m_delay;
-
- /**
- * Creates a new {@link Sweeper} object.
- *
- * @param home DOCUMENT_ME
- * @param resources DOCUMENT_ME
- * @param timerManager DOCUMENT_ME
- * @param delay DOCUMENT_ME
- */
- public Sweeper( ResourceHome home,
- Map resources,
- TimerManager timerManager,
- long delay )
- {
- super( home, resources );
- m_timerManager = timerManager;
- m_delay = delay;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param timer DOCUMENT_ME
- */
- public void timerExpired( Timer timer )
- {
- super.timerExpired( timer );
- cancel( );
- if ( !m_resources.isEmpty( ) )
- {
- schedule( );
- }
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param key DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- *
- * @throws ResourceException DOCUMENT_ME
- */
- protected Resource getResource( ResourceKey key )
- throws ResourceException
- {
- LOG.debug(MSG.getMessage( Keys.GET_RESOURCE_FOR_KEY, key.getValue()));
- return (Resource) m_resources.get( key );
- }
-
- /**
- * Schedules this resource sweeper.
- */
- synchronized void schedule( )
- {
- if ( m_timer == null )
- {
- LOG.debug( MSG.getMessage( Keys.SCHEDULE_RESOURCE_SWEEPER) );
- m_timer = m_timerManager.schedule( this, m_delay );
- }
- }
-
- /**
- * Cancels this resource sweeper.
- */
- private synchronized void cancel( )
- {
- if ( m_timer != null )
- {
- LOG.debug( MSG.getMessage( Keys.CANCEL_RESOURCE_SWEEPER) );
- m_timer = null;
- }
- }
- }
+ throws NamingException
+ {
+ if ( m_cacheLocation != null )
+ {
+ m_cache = (Cache) JNDIUtils.lookup( initialContext, m_cacheLocation, Cache.class );
+ }
+ }
+
+ private void initResourceMap( Context initialContext )
+ throws NamingException
+ {
+ if ( m_resourceIsPersistent )
+ {
+ m_resources = new ReferenceMap( ReferenceMap.HARD, ReferenceMap.SOFT, true );
+ initCachePolicy( initialContext );
+ }
+ else
+ {
+ m_resources = new HashMap();
+ }
+ m_resources = Collections.synchronizedMap( m_resources );
+ }
+
+ private void initSweeper( Context initialContext )
+ throws NamingException
+ {
+ LOG.debug( MSG.getMessage( Keys.TIMER_LOOKUP_WITH_JNDI_NAME, JndiConstants.KEY_NAME_DEFAULT_TIMER ) );
+ TimerManager timerManager = (TimerManager) initialContext.lookup( JndiConstants.KEY_NAME_DEFAULT_TIMER );
+
+ // TimerManager timerManager = new TimerManagerImpl();
+ m_sweeper = new Sweeper( this, m_resources, timerManager, m_sweeperDelay );
+ }
+
+ /**
+ * This ResourceSweeper implementation just returns the resources currently stored in the map. The reason is that
+ * the sweeper doesn't have to reactivate/reload a persistent resource if the resource object was reclaimed. So
+ * lifetime checks are not done on reclained resources. Lifetime checks have to be done on resource load.
+ */
+ private static class Sweeper
+ extends ResourceSweeper
+ {
+ private TimerManager m_timerManager;
+ private Timer m_timer;
+ private long m_delay;
+
+ /**
+ * Creates a new {@link Sweeper} object.
+ *
+ * @param home DOCUMENT_ME
+ * @param resources DOCUMENT_ME
+ * @param timerManager DOCUMENT_ME
+ * @param delay DOCUMENT_ME
+ */
+ public Sweeper( ResourceHome home,
+ Map resources,
+ TimerManager timerManager,
+ long delay )
+ {
+ super( home, resources );
+ m_timerManager = timerManager;
+ m_delay = delay;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param timer DOCUMENT_ME
+ */
+ public void timerExpired( Timer timer )
+ {
+ super.timerExpired( timer );
+ cancel();
+ if ( !m_resources.isEmpty() )
+ {
+ schedule();
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param key DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ *
+ * @throws ResourceException DOCUMENT_ME
+ */
+ protected Resource getResource( ResourceKey key )
+ throws ResourceException
+ {
+ LOG.debug( MSG.getMessage( Keys.GET_RESOURCE_FOR_KEY, key.getValue() ) );
+ return (Resource) m_resources.get( key );
+ }
+
+ /**
+ * Schedules this resource sweeper.
+ */
+ synchronized void schedule()
+ {
+ if ( m_timer == null )
+ {
+ LOG.debug( MSG.getMessage( Keys.SCHEDULE_RESOURCE_SWEEPER ) );
+ m_timer = m_timerManager.schedule( this, m_delay );
+ }
+ }
+
+ /**
+ * Cancels this resource sweeper.
+ */
+ private synchronized void cancel()
+ {
+ if ( m_timer != null )
+ {
+ LOG.debug( MSG.getMessage( Keys.CANCEL_RESOURCE_SWEEPER ) );
+ m_timer = null;
+ }
+ }
+ }
/**
* Adds a listener for ResourceCreationEvents
*
* @param listener
*/
- public void addResourceCreationListener(ResourceCreationListener listener)
+ public void addResourceCreationListener( ResourceCreationListener listener )
{
- m_creationListeners.add(listener);
+ m_creationListeners.add( listener );
}
/**
@@ -714,31 +707,33 @@
*
* @param listener
*/
- public void addResourceDestructionListener(ResourceDestructionListener listener)
+ public void addResourceDestructionListener( ResourceDestructionListener listener )
{
- m_destructionListeners.add(listener);
+ m_destructionListeners.add( listener );
}
/**
* Removes a listener for ResourceCreationEvents
*
* @param listener
+ *
* @return true if the listener was removed, else false
*/
- public boolean removeResourceCreationListener(ResourceCreationListener listener)
+ public boolean removeResourceCreationListener( ResourceCreationListener listener )
{
- return m_creationListeners.remove(listener);
+ return m_creationListeners.remove( listener );
}
/**
* Removes a listener for ResourceDestructionEvents
*
* @param listener
+ *
* @return true if the listener was removed, else false
*/
- public boolean removeResourceDestructionListener(ResourceDestructionListener listener)
+ public boolean removeResourceDestructionListener( ResourceDestructionListener listener )
{
- return m_destructionListeners.remove(listener);
+ return m_destructionListeners.remove( listener );
}
/**
@@ -746,13 +741,13 @@
*
* @param epr The EndpointReference for the Resource which was created
*/
- private void notifyResourceCreatedListeners(EndpointReference epr)
+ private void notifyResourceCreatedListeners( EndpointReference epr )
{
- for (int i = 0; i < m_creationListeners.size(); i++)
- {
- ResourceCreationListener resourceCreationListener = (ResourceCreationListener) m_creationListeners.get(i);
- resourceCreationListener.creationOccurred(new ResourceCreationEvent(epr));
- }
+ for ( int i = 0; i < m_creationListeners.size(); i++ )
+ {
+ ResourceCreationListener resourceCreationListener = (ResourceCreationListener) m_creationListeners.get( i );
+ resourceCreationListener.creationOccurred( new ResourceCreationEvent( epr ) );
+ }
}
/**
@@ -760,44 +755,44 @@
*
* @param epr The EndpointReference for the Resource which was created
*/
- private void notifyResourceDeletedListeners(EndpointReference epr)
+ private void notifyResourceDeletedListeners( EndpointReference epr )
{
- for (int i = 0; i < m_destructionListeners.size(); i++)
+ for ( int i = 0; i < m_destructionListeners.size(); i++ )
{
- ResourceDestructionListener resourceDestructionListener = (ResourceDestructionListener) m_destructionListeners.get(i);
- resourceDestructionListener.destructionOccurred(new ResourceDestructionEvent(epr));
+ ResourceDestructionListener resourceDestructionListener = (ResourceDestructionListener) m_destructionListeners.get(
+ i );
+ resourceDestructionListener.destructionOccurred( new ResourceDestructionEvent( epr ) );
}
}
/**
- * Returns the EndpointReference associated with this Resource.
- * Only the required fields will be filled in (i.e. Address) AND the ReferenceProperty for the ResourceKey (if not a singleton)
- *
+ * Returns the EndpointReference associated with this Resource. Only the required fields will be filled in (i.e.
+ * Address) AND the ReferenceProperty for the ResourceKey (if not a singleton)
+ * <p/>
* If the resourceKeyis not equal to null ( not a singleton ), The reference properties will contain the key.
*
* @param endpointAddress The endpoint url for the service
- * @param key The resourceKey for the Resource or null if singleton
+ * @param key The resourceKey for the Resource or null if singleton
* @param wsAddressingURI The WS-Addressing URI
*
* @return The Resource's EndpointReference
*/
- public EndpointReference getEndpointReference(String endpointAddress, ResourceKey key, String wsAddressingURI)
+ public EndpointReference getEndpointReference( String endpointAddress, ResourceKey key, String wsAddressingURI )
{
- XmlBeansEndpointReference xmlBeansEndpointReference = new XmlBeansEndpointReference(endpointAddress, wsAddressingURI);
- xmlBeansEndpointReference.setResourceKey(key);
- xmlBeansEndpointReference.setPortTypeQName(getPortType());
- xmlBeansEndpointReference.setServicePortName(getServicePortName());
- xmlBeansEndpointReference.setServiceQName(getServiceName());
+ XmlBeansEndpointReference xmlBeansEndpointReference = new XmlBeansEndpointReference( endpointAddress,
+ wsAddressingURI );
+ xmlBeansEndpointReference.setResourceKey( key );
+ xmlBeansEndpointReference.setPortTypeQName( getPortType() );
+ xmlBeansEndpointReference.setServicePortName( getServicePortName() );
+ xmlBeansEndpointReference.setServiceQName( getServiceName() );
return xmlBeansEndpointReference;
}
- public abstract QName getServiceName();
+ public abstract QName getServiceName();
public abstract QName getPortType();
-
public abstract String getServicePortName();
-
public abstract QName getResourceKeyNameQName();
---------------------------------------------------------------------
To unsubscribe, e-mail: apollo-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: apollo-dev-help@ws.apache.org