Mitch Stewart <mitch_stewart <at> boomi.com> writes: Hi Mitch,
> Sean, I wasn't aware of adding a JaxbFilter until you just > mentioned it, now I'll have to go back and attach a filter to do the > Jaxb processing automatically. Cool! Thanks. So far so good. I happen to parameterize my Filter and Rep with the request type so that the calls are typesafe. The downside is that I have to create a special filter for every request type and that a single 'service' or Resource can't take more than one type of request. I haven't found this to be a problem and it has added some safety. > Sean, would you mind posting some of your implementation? I'm sorry but my employer won't let me. But... > I would love > to see how others are doing this kind of implementation. I know that > mine is not very performant (creating new JAXBContexts can be time > consuming). I would think that something like this would be useful to > others. JAXBContexts are thread safe and appear to cache info so DO reuse them. Marshallers and Unmarhsallers are NOT thread safe so recreate them or do what I do and 'pool' them using ThreadLocal. Sean > Mitch

