that's code:
jetty.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="Server"
class="org.mortbay.jetty.Server" init-method="start" destroy-method="stop">
<property name="connectors">
<list>
<bean id="Connector" class="org.mortbay.jetty.nio.SelectChannelConnector">
<property name="port" value="8181"/>
</bean>
</list>
</property>
<property name="handler">
<bean id="handlers"
class="org.mortbay.jetty.handler.HandlerCollection">
<property name="handlers">
<list>
<bean id="contexts"
class="org.mortbay.jetty.handler.ContextHandlerCollection">
<property name="handlers">
<list>
<bean class="org.mortbay.jetty.webapp.WebAppContext">
<property name="contextPath" value="/"/>
<!-- <property name="war" value="../../main/webapp/WEB-INF/web.xml"> -->
<property name="resourceBase" value="web">
</property>
</bean>
</list>
</property>
</bean>
</list>
</property>
</bean>
</property>
</bean>
</beans>
(i'm not sure about meaning of <property name="resourceBase" value="web">)
that's part of my test (just start configuration):
Code:
private static ApplicationContext applicationContext = new ClassPathXmlApplicationContext(new String[] { "/applicationContext-business.xml", "/jetty.xml"});
....
protected void setUp() throws Exception {
this.jetty = (Server) applicationContext.getBean("Server");
....
}
in log files I can see that jetty starts.
In "/applicationContext-business.xml" is configured a httpinvoker. It works normally but how can I know that it's "grabbed/catched/linked" (sorry my english is horrible
) by "this.jetty"?
Thanks,
Julio