Author: thomas.diesler(a)jboss.com
Date: 2007-08-09 04:42:45 -0400 (Thu, 09 Aug 2007)
New Revision: 4277
Modified:
stack/native/branches/native-2.0/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java
Log:
Start endpoint on demand
Modified:
stack/native/branches/native-2.0/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java
===================================================================
---
stack/native/branches/native-2.0/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java 2007-08-09
08:34:58 UTC (rev 4276)
+++
stack/native/branches/native-2.0/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java 2007-08-09
08:42:45 UTC (rev 4277)
@@ -95,22 +95,15 @@
{
initEndpoint(contextPath, getServletName());
initEndpointConfig();
- initializeAndStart();
+ startEndpoint();
}
- private void initializeAndStart()
+ private void startEndpoint()
{
+ // Start the endpoint
Deployment dep = endpoint.getService().getDeployment();
if (dep.getType() == DeploymentType.JAXRPC_JSE || dep.getType() ==
DeploymentType.JAXWS_JSE)
{
- // Initialize the meta data model
- UnifiedMetaData umd = dep.getAttachment(UnifiedMetaData.class);
- if (umd.isEagerInitialized() == false) // TODO: remove this piece
- {
- throw new IllegalStateException("UMD should be initialized
already");
- }
-
- // Start the endpoint
if (endpoint.getState() == EndpointState.CREATED)
endpoint.getLifecycleHandler().start(endpoint);
}