The "cleanest" way would be in the prepare method, call
message.getContextualProperty("my.from.address") or similar. Then, the value
could be set via a number of ways:
1) Bus property - would apply to all clients using the bus.
2) Endpoint property
3) Request context
I think a few other places as well.
Definitely a bit more flexible.
Dan
On Mon March 1 2010 6:22:11 pm Coder One wrote:
> Well, I got all the custom stuff running a few weeks back. Thanks everyone
> for all your help...esp. Daniel ! :)
>
> Using JaxWsProxyFactoryBean and its setAddress(), setTransportId(),
> and create(), I can get my own Conduit and TransportFactory instances
> going.
>
> Now, inside, my custom Conduit/TransportFactory, I can only see the
> destination address, but I have a need to be able to carry the source/from
> address to my TransportFactory or Conduit, so I can do some "super
> customization" of my transport.
>
> Is there a way to do pass a "from" address and have made available in
> TransportFactory getConduit/getDestination or from within a custom Conduit
> instance? I was thinking about overiding setAddress with a custom format
> and then parse that, but that's a bit ugly.
>
> All insights would be greatly appreciated.
>
> Thanks...
--
Daniel Kulp
[email protected]
http://www.dankulp.com/blog