cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christofer Dutz" <>
Subject AW: AW: CXF + embedded Jetty +Spring
Date Fri, 20 Mar 2009 17:09:41 GMT
Hi Piotr,

Well then I'll just give you ALL OF MY CODE for this task ;-)



class PgmServer 
    protected PgmServer() 
    throws Exception 
     	// Initialize the spring context
        System.out.println("Initializing Spring context ...");
    	String[] configs = { "ws-context.xml" };
    	new ClassPathXmlApplicationContext(configs);
        System.out.println("Service Started.");

    public static 
    void main(String args[]) 
    throws Exception 
        new PgmServer();
        System.out.println("Server ready...");



-----Ursprüngliche Nachricht-----
Von: "Piotr \"PiBis\" Berłowski" [] 
Gesendet: Freitag, 20. März 2009 18:04
Betreff: Re: AW: CXF + embedded Jetty +Spring

Hi Christofer,

    Thanks for your quick reply. I have scanned the document that you 
provided. It's a great job, but, to my regret, it misses my main point 
of interest which is configuration and launching of embedded Jetty 
server. Also you decided on Aegis databinding whereas I am set on JAX-WS.

Best regards,
Piotr Berlowski
> Hi Piotr,
> I have had the same problems as you are having. Most of them, I had to
> out by digging into the source code.
> Because I usually tend to forget, what I did after a few weeks, I wrote a
> howto:
> +with+Apache+CXF+web+service+using+Aegis+databinding
> It deals with CXF + Aegis binding, and how you setup and configure CXF in
> Spring environment.
> I doubt it will answer all your questions, but I guess it will get you
> started :-)
> After migrating to CXF 2.2 today I will have to update some portions of
> tutorial ... maybe I'll do that sometime this evening.
> Hope it helps,
> Chris
> Hi all,
>     I have encountered numerous posts stating problems with ebedded 
> jetty config with CXF and Spring, but no clear roadmap has been provided 
> as what it should look like. The documentation concerning Jetty 
> configuration is also very limited. Thus I decided to ask my question
> I wish to configure my jetty server and my endpoints in a Spring cxf.xml 
> file.
> I'd like my launcher app to be provided ONLY with information where that 
> config file may be found.
> I wish to be able to run java -jar LauncherApp.jar and obtain a running 
> instance of jetty server with my CXF webservice.
> Is it possible, and if yes, then how?
> I was trying different setups with SpringBusFactory, 
> JettyHTTPServerEngineFactory and others to no avail. I'd be very 
> grateful for a clear roadmap explaining this scenario.
> Best regards,
> Piotr Berlowski


__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3951
(20090320) __________

E-Mail wurde geprüft mit ESET NOD32 Antivirus.

__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3951
(20090320) __________

E-Mail wurde geprüft mit ESET NOD32 Antivirus.

View raw message