Everything Java Apache Geospatial Open Source. Hello Shinning Stars!!! Vincent Massol, Raphael Luta, Santiago Gala, Carsten Z.
Thursday, January 29, 2004
Thursday, January 22, 2004
I am trying a different theme. First Spot tomcat+tiles+db2+resume tomcat+velocity+gis+resume tomcat+struts+gis+resume struts+grass+resume tomcat+struts+grass+resume tomcat+struts+grass+jdom tomcat jstl jdom xml j2ee apache struts db2 Top 5 tomcat+velocity+db2+resume struts+gis+resume tomcat+grass+resume tomcat struts tiles resume tomcat struts jstl resume tomcat tiles jstl validator xml ant cvs eclipse jndi velocityTop 100 tomcat+gis+resume struts tomcat xml resume tomcat+struts+mvc+java+resume
Try adding the following key words. Realm, Security, Users, Groups, Paris, France, USA, LA, SD, SQL
Wednesday, January 21, 2004
Tuesday, January 20, 2004
Skeleton class created for the WebServiceDaemon in package com.acadomia.sea.webservice.daemon. This class implements Runnable.
A daemon thread is started using a <web-app> <listener> called com.acadomia.sea.webapp.context.LifeCycleServletContextListener. The contextInitialized method creates the thread and the contextDestroyed method interrupts the thread.
The run method catches an InterruptedException and terminating the thread.
A property (webservice.client.request.period) can be configured in application.properties to tell the daemon at what interval to invoke itself. This property is an integer and represents the number of seconds between daemon processing.
A CustomServlet has been created to delegate super.init and super.destroy. This class provides custom access to events triggered upon initialization and destruction of a servlet.
Log4j has been configured to accept a different log level for org.apache.*, org.apache.struts.*, and com.acadomia.* classes.
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender class="org.apache.log4j.ConsoleAppender" name="X">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%p %t %d{yyyy:MM:dd:hh:mm:ss} %c %M line %L %m%n"/>
</layout>
</appender>
<logger additivity="false" name="com.acadomia">
<level value="DEBUG"/>
<appender-ref ref="X"/>
</logger>
<logger additivity="false" name="org.apache.struts">
<level value="INFO"/>
<appender-ref ref="X"/>
</logger>
<logger additivity="false" name="org.apache">
<level value="INFO"/>
<appender-ref ref="X"/>
</logger>
<root>
<priority value="WARN"/>
<appender-ref ref="X"/>
</root>
</log4j:configuration>
The build script is now creating a jar by the target dist.
web.xml includes a the tag <listener> which starts and stops the web service daemon.
<listener>
<listener-class>com.acadomia.sea.webapp.context.LifeCycleServletContextListener</listener-class>
</listener>
See Enterprise Java Technologies Tech Tips which says that the Servlet Life cycle listener are notified upon "Creation, modification, or removal of a servlet context or session". The mention of session and context attributes was also included.
The solution to this problem invloves a LifeCycleServletContextListener which is declared in your web.xml.
public color="#000080">class LifeCycleServletContextListener
color="#000080">implements ServletContextListener {
color="#000080">private color="#000080">static color="#000080">final Log log = LogFactory.getLog(LifeCycleServletContextListener. color="#000080">class);
color="#000080">private color="#000080">static Thread t;
color="#000080">public color="#000080">void contextInitialized(ServletContextEvent sce) {
log.info( color="#0000ff">"Starting web service daemon..." color="#000000">);
WebServiceDaemon wsd = color="#000080">new WebServiceDaemon();
t = color="#000080">new Thread(wsd);
t.start();
log.info( color="#0000ff">"Web service daemon started." color="#000000">);
}
public color="#000000"> void color="#000000"> contextDestroyed(ServletContextEvent sce) {
log.info( color="#0000ff">"Stopping web service daemon..." color="#000000">);
t.interrupt();
log.info( color="#0000ff">"Web service daemon stopped." color="#000000">);
}
}
Monday, January 19, 2004
Friday, January 16, 2004
Thursday, January 15, 2004
Wednesday, January 14, 2004
I'm searching for ways of implementing the class org.apache.axis.wsdl.WSDL2Java. I am trying a simple command line version. As of this writing there are some classpath or user error from the command line but I managed to get it working in Eclipse by downloading the source for Axis. To get this working I put the source in the Eclipse source path and created a new Run configuration where the Main class is org.apache.axis.wsdl.WSDL2Java, the Program argument(s) are http://localhost:8080/axis/services/SOAPMonitorService?wsdl, the Working directory is E:\axis-1_1\wsdl2java. A VM argument(s) -Duser.dir is required if the Program argument(s) is a not a fully qualified url.
The program generated the following files SOAPMonitorService.java, SOAPMonitorServiceService.java, SOAPMonitorServiceServiceLocator.java, SOAPMonitorServiceSoapBindingStub.java.
A quick way to get web services up and running is the Instant Deployment of jws files. These are the eqivalent of java files with only the extension changed. Publish this in axis and youve got a web service. Very powerful.
Axis clients are easy to develop o.a.axis.client.Call and o.a.axis.client.Service are well described in sample.userguide.example2 of the Axis 1.1 distro.
Blog Archive
-
▼
2004
(125)
-
▼
January
(19)
- The Name of this project is Merging the power of G...
- TODO - Two versions of Messages.getString are need...
- Keep these patterns in mind when creating web appl...
- Problem : Updating a database schema. Solution : G...
- This post is a primitive way of tracking my Resume...
- I can't never remember the link used to Edit MyBlo...
- AndoMDA looks wonderful.
- Added intelligent debugging and a mechanism which ...
- Skeleton class created for the WebServiceDaemon in...
- I've got a problem with java threads in tomcat 4.1...
- These are the VM arguments that I am using to debu...
- To know Open Source is to know the code source. Th...
- When in doubt call a method such as the open sourc...
- Check out what happens when you hold down the Ctrl...
- This is a list of current Website Issues : Securit...
- It's a new day. I am glad to hear that the Mars la...
- Struts session managment tip : --- | X | --- ...
- java -cp %AXISCLASSPATH% org.apache.axis.client.Ad...
- I'm searching for ways of implementing the class o...
-
▼
January
(19)