On Sep 3, 2012, at 6:07 AM, James Talbut <[email protected]> wrote:
> On Tue, Aug 21, 2012 at 03:58:46PM -0400, Daniel Kulp wrote: >> This is a feature I added to the CXF Jetty transport (2.6.x) to benefit the >> Talend ESB users around configuring the Jetty stuff. (there is a similar >> thing for the http-conduits BTW). It's not really looking for files. >> It's asking the config:admin service for stuff for the >> "org.apache.cxf.http.jetty" service. It's a factory based service to the >> file based admin stuff has the filename of >> "org.apache.cxf.http.jetty-SOMETHING.cfg" where SOMETHING really could be >> anything. I like to use either the port name (in this case) or the host >> name (like localhost) for the conduit cases. If you use the config:admin >> commands from the Karaf command line, it would name it something completely >> different. In any case, the config:admin service will hand us a >> Properties object of the properties in that file. We then loop through the >> properties and set the various config items. You can look at the code at: >> >> http://svn.apache.org/repos/asf/cxf/trunk/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/osgi/HTTPJettyTransportActivator.java >> >> if you want. You should be able to set the same things via normal >> config:admin commands as well. >> > From looking at that there doesn't seem to be any way to set up Jetty > handlers in an external file. > Is that true or have I missed something? Not at this time, no. The major part of the problem involves the entire "class loading" issue in OSGi. If you stick a class name in the config file, we likely wouldn't be able to load it anyway since the CXF bundles wouldn't be importing the package of the handler. Christian and I tossed around some ideas of having an OSGi service name or something stuck in the config file and we grab the handler from the OSGi service registry that way, but that would require a little more work in CXF that we haven't had time for. I'd certainly welcome any patches (likely to the above mentioned class as a starting point) to get that working. Dan > What I'd like to be able to do is set up the security configuration for a > port in a single place. > > Thanks > > Jim -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
