passing properties via deployment descriptors to a JAX-RPC service developed using the EJB model

From: Mark Hansen <>
Date: Thu, 28 Jul 2005 13:22:59 -0400

I'm packaging a JAX-RPC web service as SessionBean according the the
JAX-RPC 1.1 / JSR-109 specifications.

I'd like to pass some properties to the SessionBean via the
javax.xml.rpc.handler.MessageContext instance that is available via

Can I do this, or is the only way to set properties in the
MessageContext via a JAX-RPC handler?

If I can't do this, what is "best practice" for passing properties into
a JAX-RPC web service deployed as SessionBean and deployed on a servlet
container based JAX-RPC runtime system?