Skip to main content

Kohsuke Kawaguchi

Kohsuke Kawaguchi is a senior staff engineer at Sun Microsystems. He has been working on XML and XML schema languages since 2001, in particular RELAX NG, W3C XML Schema, JAXB, and JAXP. He also hosts many projects on, such as Hudson. More information on him can be found at


kohsuke's blog

Stateful web service with JAX-WS RI 2.1 EA2

Posted by kohsuke on October 24, 2006 at 12:19 PM PDT

One of the additions in the JAX-WS RI EA2 is the support of stateful web services by using WS-Addressing underneath.

Normally, the JAX-WS RI only creates one instance of your service class, and have it handle all incoming requests concurrently.

System-level projects moved under the java-net project

Posted by kohsuke on October 23, 2006 at 9:10 AM PDT

Over the last few years, I've been involved in many of the "system-level" projects, which provide tools and services for any project owner.

Bringing state back to web services: HttpSession-scope

Posted by kohsuke on October 17, 2006 at 9:03 AM PDT

Traditionally JAX-WS has never taken advantage of object state, just like servlet. That is, the container creates only one instance of your service class, and then have it serve all the requests concurrently.

Closures and language-level XML support are all good but ...

Posted by kohsuke on October 16, 2006 at 4:01 PM PDT

I just had to write this in the JAX-WS RI:

try {
    return ir.getConstructor(Class.class).newInstance(clazz);
} catch (InstantiationException e) {
    throw new WebServiceException(ServerMessages.FAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(
} catch (IllegalAccessException e) {
    throw new WebServiceException(ServerMessages.FAILED    

JAXB 2.0.3 is released

Posted by kohsuke on October 13, 2006 at 6:19 PM PDT

I just posted a new version of the JAXB RI 2.0.x line. This RI implements JAXB API 2.0, and is a bug fix release.

JAXB 2.1 snapshots to the maven repository

Posted by kohsuke on October 12, 2006 at 6:33 PM PDT

I started posting the JAXB 2.1 snapshot jars to the maven repository. This runs nightly. I also fixed the missing dependency in xjc POM.

You maven folks out there, have fun with 2.1 bits...

JAXB 2.1 regenerator plugin

Posted by kohsuke on October 12, 2006 at 6:08 PM PDT

Juraj Vitko sent me a plugin that allows you to manually put additional code to the JAXB generated classes, and yet have XJC preserve them when you regenerate source files. To use this, you have to put your code into the special marker like the following.

HyperJAXB3 is making more progress

Posted by kohsuke on October 3, 2006 at 12:57 PM PDT

Lexi has been making a lot of progress on hyperjaxb3 lately.

HyperJAXB3 is a JAXB RI extension that causes XJC to generate not only XML binding annotations but also RDBMS persistence annotations. That is, it generates Hibernate mapping files, and the plan includes supporting the persistence API.

Sorcerer 0.5 posted

Posted by kohsuke on October 2, 2006 at 8:21 AM PDT

I just posted a new version of sorcerer. It's been a combination of fun and frustration to work with JavaScript. It's fun, because JavaScript is really a different language from Java.

More JAXB2 plugins

Posted by kohsuke on September 22, 2006 at 6:26 PM PDT

The past week was a great week for the JAXB RI. We got a lot of new plugins written by various people.