Skip to main content

Blog Archive for kohsuke during April 2007

Jitu and I have been working on the JAX-WS JSON extension, which is a JAX-WS RI extension that lets you write one code and have it handle both SOAP and JSON requests. I just posted version 1.1 release of this extension. The following code shows one way of deploying a JSON service: @BindingType(JSONBindingID.JSON_BINDING)@WebServicepublic class MyService {    public Book get(@...
Testing JavaMail applications is more difficult than necessary, because it involves in a lot of set up outside the test program. Doing this correctly in a portable way so that anyone in your team can run the test is almost impossible. Mock JavaMail comes to rescue. This project takes advantage of pluggability in JavaMail, so that you can send/receive e-mails against the temporary in-memory "...
Often you are in a situation where need to convert a file://... URLs to java.io.File object. Doing this correctly is not trivial (and I still don't know what I'm writing here is the correct way.) The first code I tried (which I saw somewhere a long time ago) is... File f = new File(url.getPath()); This actually works for simple cases, like for file:/path/to/abc (which is actually a malformed...
I just posted the Hudson 1.104 release. It's been a while since 1.103 — that is, 5 days — so this release contains a large number of changes. A large portion of the work is related to the native maven2 integration. For example, starting this version, Hudson automatically puts the build number and Hudson project name into the jar/war/ear files that are created in Maven. This is often...
As we close in on JavaOne, I've been making more progress on the Spring support. In general, preparing slides is always a useful exercise for me to improve software — first, I really put myself into the users' shoes, which reveals kinks in the details. Second, the amount of text and code I can put in a slide is fairly limited, it forces me to think "why do we really need this extra method...
I set up the following mirrors for java.net maven repositories: For the java.net m1 repo, use http://download.java.net/maven/1/ For the java.net m2 repo, use http://download.java.net/maven/2/ The mirror sites are synchronized with the masters. You can also browse them more easily unlike the master java.net m2 repository, mirrors are generally faster in my experience, plus mirrors are HTTP-...
I just posted the JAXB RI 2.1.3 release on the website. This is a bug fix release to the 2.1.x line that implements the JAXB 2.1 specification. Not all changes are recorded on java.net, but most of them are, and you can see them in the issue tracker. Thanks to Rebecca for working on many of the bug fixes. As usual, if you have any comments or questions, please use our forum, and if find any...
Hudson continues to keep me busy. So here are some of the recent developments. 1.100 Release First, I just hit the release 1.100, which is 101st release of Hudson. I think that's a lot of releases. Generally speaking, I think "release early, release often" is a good thing, but OTOH I also realize that taking time to shake off bugs while holding off (potentially de-stabilizing) new features have...
When java.net went down for the site upgrade, a lot of work has stopped in my "main" projects, since we couldn't commit changes. It turns out that that is precisely the kind of productivity time that I needed — I spent that time working on smaller projects that needed my attention. So now that java.net is back, I'm announcing the releases of the new versions of ... Annotation mock...