Author: thomas.diesler(a)jboss.com
Date: 2007-08-09 07:10:21 -0400 (Thu, 09 Aug 2007)
New Revision: 4286
Modified:
stack/native/trunk/ant-import/build-thirdparty.xml
stack/native/trunk/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wseventing/EventSinkServlet.java
Log:
Start endpoint on demand
Download src zips
Modified: stack/native/trunk/ant-import/build-thirdparty.xml
===================================================================
--- stack/native/trunk/ant-import/build-thirdparty.xml 2007-08-09 11:06:13 UTC (rev 4285)
+++ stack/native/trunk/ant-import/build-thirdparty.xml 2007-08-09 11:10:21 UTC (rev 4286)
@@ -47,16 +47,22 @@
<mkdir dir="${thirdparty.dir}"/>
<get src="${jboss.repository}/junit/${junit}/lib/junit.jar"
dest="${thirdparty.dir}/junit.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-common/${jbossws-common}/lib/jbossws-common.jar"
dest="${thirdparty.dir}/jbossws-common.jar" usetimestamp="true"
verbose="true"/>
+ <get
src="${jboss.repository}/jboss/jbossws-common/${jbossws-common}/lib/jbossws-common-src.zip"
dest="${thirdparty.dir}/jbossws-common-src.zip" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-framework/${jbossws-framework}/lib/jbossws-framework.jar"
dest="${thirdparty.dir}/jbossws-framework.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-framework/${jbossws-framework}/lib/jbossws-framework-scripts.zip"
dest="${thirdparty.dir}/jbossws-framework-scripts.zip"
usetimestamp="true" verbose="true"/>
+ <get
src="${jboss.repository}/jboss/jbossws-framework/${jbossws-framework}/lib/jbossws-framework-src.zip"
dest="${thirdparty.dir}/jbossws-framework-src.zip" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-spi/${jbossws-spi}/lib/jbossws-spi.jar"
dest="${thirdparty.dir}/jbossws-spi.jar" usetimestamp="true"
verbose="true"/>
+ <get
src="${jboss.repository}/jboss/jbossws-spi/${jbossws-spi}/lib/jbossws-spi-src.zip"
dest="${thirdparty.dir}/jbossws-spi-src.zip" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-jboss40/${jbossws-jboss40}/lib/jbossws-jboss40.jar"
dest="${thirdparty.dir}/jbossws-jboss40.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-jboss40/${jbossws-jboss40}/lib/jbossws-jboss40-resources.zip"
dest="${thirdparty.dir}/jbossws-jboss40-resources.zip"
usetimestamp="true" verbose="true"/>
+ <get
src="${jboss.repository}/jboss/jbossws-jboss40/${jbossws-jboss40}/lib/jbossws-jboss40-src.zip"
dest="${thirdparty.dir}/jbossws-jboss40-src.zip" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-jboss42/${jbossws-jboss42}/lib/jbossws-jboss42.jar"
dest="${thirdparty.dir}/jbossws-jboss42.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-jboss42/${jbossws-jboss42}/lib/jbossws-jboss42-resources.zip"
dest="${thirdparty.dir}/jbossws-jboss42-resources.zip"
usetimestamp="true" verbose="true"/>
+ <get
src="${jboss.repository}/jboss/jbossws-jboss42/${jbossws-jboss42}/lib/jbossws-jboss42-src.zip"
dest="${thirdparty.dir}/jbossws-jboss42-src.zip" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-jboss50/${jbossws-jboss50}/lib/jbossws-jboss50.jar"
dest="${thirdparty.dir}/jbossws-jboss50.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/jbossws-jboss50/${jbossws-jboss50}/lib/jbossws-jboss50-deployer.zip"
dest="${thirdparty.dir}/jbossws-jboss50-deployer.zip"
usetimestamp="true" verbose="true"/>
-
+ <get
src="${jboss.repository}/jboss/jbossws-jboss50/${jbossws-jboss50}/lib/jbossws-jboss50-src.zip"
dest="${thirdparty.dir}/jbossws-jboss50-src.zip" usetimestamp="true"
verbose="true"/>
+
<get src="${jboss.repository}/apache-ant/${apache-ant}/lib/ant.jar"
dest="${thirdparty.dir}/ant.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/apache-collections/${apache-collections}/lib/commons-collections.jar"
dest="${thirdparty.dir}/commons-collections.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/apache-log4j/${apache-log4j}/lib/log4j.jar"
dest="${thirdparty.dir}/log4j.jar" usetimestamp="true"
verbose="true"/>
Modified: stack/native/trunk/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java 2007-08-09
11:06:13 UTC (rev 4285)
+++
stack/native/trunk/src/main/java/org/jboss/wsf/stack/jbws/EndpointServlet.java 2007-08-09
11:10:21 UTC (rev 4286)
@@ -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);
}
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wseventing/EventSinkServlet.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wseventing/EventSinkServlet.java 2007-08-09
11:06:13 UTC (rev 4285)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wseventing/EventSinkServlet.java 2007-08-09
11:10:21 UTC (rev 4286)
@@ -39,27 +39,30 @@
* @author Heiko Braun, <heiko(a)openj.net>
* @since 05-Jan-2006
*/
-public class EventSinkServlet extends HttpServlet {
-
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
- doRequest(request,response);
+public class EventSinkServlet extends HttpServlet
+{
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException
+ {
+ doRequest(request, response);
}
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
- doRequest(request,response);
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException
+ {
+ doRequest(request, response);
}
- protected void doRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
+ protected void doRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
+ {
StringBuffer sb = new StringBuffer();
BufferedReader reader = request.getReader();
String s = reader.readLine();
- sb.append( s );
- while(s!=null)
+ sb.append(s);
+ while (s != null)
{
s = reader.readLine();
- if(s!=null)
+ if (s != null)
sb.append(s);
}
Show replies by date