i'm developing a web application, which accesses a web service via SOAP. The service requires DIGEST authentication. I was wondering whether i could use a resource reference in my application to reference the web service and apply container managed authentication. But the only thing that can be configured for a resource reference in jboss-web.xml is the JNDI name of the resource manager connection factory. Does such a factory for URLs already exist, which supports DIGEST authentication? Or is there some kind of template that can be used to implement the factory?