|
|
Archive for the ‘Engineering’ Category
Thursday, December 10th, 2009
Apache Chainsaw is a popular graphical logging tool for Java. Even though it’s based on Log4j and Resin’s logging uses java.util.logging, you can use Chainsaw to analyze Resin’s logs in real time. In this blog, I’ll show you how to connect Resin with Chainsaw using a technique that can be extended to other Log4j-based analysis tools.
(more…)
Tags: chainsaw, logging, resin Posted in Engineering | 5 Comments »
Tuesday, November 17th, 2009
Starting with Resin 4.0.2 (due out within a week), the Resin administration application supports a REST interface for grabbing server information. In this blog post, I’ll give an overview of the REST interface, how to write plugins, and even how to integrate with Nagios.
(more…)
Tags: nagios, quercus, REST Posted in Engineering | No Comments »
Thursday, October 22nd, 2009
The Internet is becoming more and more about sharing data, and, uploading files had become nearly universal requirement for a web application. Prior to Servlet 3.0, implementing file upload successfully required external libraries or tedious input processing. Version 3.0 of the spec goes a long way towards providing us with a solution to the problem in a generic and portable way.
(more…)
Tags: multipart/form-data, MultipartConfig, Servlet 3.0, tutorial Posted in Engineering | 1 Comment »
Tuesday, October 6th, 2009
Resin 4.0 introduced Early Access Servlet 3.0 support and, in version 4.0.2, we’ve solidified the implementation. Among many interesting features, Servlet 3.0 introduces annotations that make deploying Servlets, Filters and Listeners of all types easier. This short tutorial opens with the introduction of annotations of javax.servlet.annotation package, shows how to use WebListener, WebServlet, WebFilter and WebInitParam annotations and closes with an example demonstrating a use of IOC (javax.inject package) in a Servlet.
(more…)
Tags: @WebFilter, @WebInitParam, @WebListener, @WebServlet, Inject, ioc, Servlet 3.0 Posted in Engineering | 1 Comment »
Tuesday, September 22nd, 2009
We’ve been quiet on the blog for a while, but pretty busy behind the scenes for the last couple of weeks. There’s lots going on, but what I’m working on specifically is a new deployment model for Resin 4. In addition to our current file system based hot-deploy, we’re now adding a deploy model based on Git. We introduced this in Resin 4.0.0 and 4.0.1, but we started exploring the benefits of Git repositories and realized that we have the ability to do some really powerful things like sophisticated application versioning and rolling out applications in stages. I’ll show you the new model and give a preview of how you can use it in upcoming versions of Resin.
(more…)
Tags: .git, deploy, resin 4.0 Posted in Engineering | No Comments »
Tuesday, August 18th, 2009
I’ve updated our Eclipse plugin to fix bugs, add a couple of features, and generally improve the user experience. It’s up in a snapshot now on our Eclipse update site: http://caucho.com/eclipse. Just add this to the software repositories in your Eclipse set up. The changes include:
- Bug fixes (esp. debug handling)
- Better handling of Resin configuration files
- Support for deploying to a temporary directory
(more…)
Tags: eclipse, resin Posted in Engineering | 5 Comments »
Wednesday, August 5th, 2009
This is a very rough draft of a pomegranate specification. It should contain the main details needed for an early implementation.
(more…)
Tags: pomegranate Posted in Engineering | 3 Comments »
Monday, August 3rd, 2009
Over the last few months, I’ve been talking to a lot of people, doing conference sessions about cloud computing and I’ve found out a lot about the different architectures in this space. I’m still very happy with our architecture (perhaps even happier) even after of all these discussions. In past blog posts and in our whitepaper, we’ve explained how the new Resin 4 cloud architecture works. Now I’ll talk a little about why it’s a nice alternative to other approaches.
(more…)
Tags: cloud, resin 4.0 Posted in Engineering | 2 Comments »
Monday, July 13th, 2009
Last week I was out of town doing some on-site training for a potential customer and they asked if it’s possible to log the number of threads active at any given time. We don’t do that as part of Resin normally, but it got me thinking that this should actually be very easy using our scheduled tasks and a PHP script to access our MBeans.
(more…)
Tags: jmx, php, resin, scheduled tasks Posted in Engineering | 1 Comment »
Thursday, July 9th, 2009
We’ve used test-driven development from the beginning of Caucho, almost 12 years now, and it heavily influences our development, refactoring, and also our release cycle. Today, we’re in the final two weeks of the release cycle for 4.0.1 which means passing our regression test suite and working through load testing.
Each week in our release cycle is influenced by our TDD methodology. For Resin, we aim for an eight week release cycle, and usually slip a week or two so it ends up being ten-ish weeks.
(more…)
Tags: candi, servlet, tdd Posted in Engineering | 1 Comment »
|