java_first_spring_support sample "beans.xml", it doesn't need to have a
cxf-servlet.xml in the WEB-INF folder.
In fact, the cxf-servlet.xml just replace the http transport ID to the
servlet. ( in this case, the cxf-servlet.xml in the
cxf-rt-transports-http module).
The reason why the cxf-servlet.xml in the WEB-INF folder would works, in
this case, the cxf-servlet.xml contains the endpoint configuration such
as<jaxws:endpoint>..,
because we define a "<servlet-name>cxf</servlet-name>" in the web.xml,
by default, it would pick up the "cxf-servlet.xml" in the war..
so, to be specific, which case of cxf-servlet.xml do you refer to? For
the cxf-servlet.xml in the WEB-INF folder, it is optional. You can do as
same as java_first_spring_support sample did...
use another xml, and then ask spring's ContextLoaderListener to load it..
Thanks
Jeff
Glen Mazza wrote:
Do we have a sample anywhere of the syntax of this--specifying the
Spring app context in the XML, and what such a config file would look
like?
Thanks,
Glen
Am Donnerstag, den 15.11.2007, 11:12 -0500 schrieb Jiang, Ning (Willem):
If you specify the Spring application context in your web.xml file.
You do not need to touch any of cxf.xml and cxf-servlet.xml.
I admit that CXF provides lots of configuration here.
Willem.
-----Original Message-----
From: Randy Burgess [mailto:[EMAIL PROTECTED]
Sent: Thu 11/15/2007 21:52
To: [email protected]
Subject: Re: Difference between cxf.xml and cxf-servlet.xml?
I don't even use either file and my services work without any issues. I use
applicationContext*.xml files since I was using Spring before CXF and didn't
see the point in creating either.
Regards,
Randy Burgess
Web Applications Developer
Nuvox Communications
From: Jean-François Daune <[EMAIL PROTECTED]>
Reply-To: "[email protected]" <[email protected]>
Date: Thu, 15 Nov 2007 08:23:02 +0100
To: <[email protected]>
Conversation: Difference between cxf.xml and cxf-servlet.xml?
Subject: RE: Difference between cxf.xml and cxf-servlet.xml?
+1 to reduce, and make it clearer.
CXF really rocks, but configuration is IMHO a weak point.
J-F
-----Message d'origine-----
De : James Mao [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 15 novembre 2007 7:56
À : [email protected]
Objet : Re: Difference between cxf.xml and cxf-servlet.xml?
Glen,
I would say +1 to reduce the number of configuration files,
James
Hello,
I'm getting confused over the server-side configuration files for CXF.
When deploying a web service in a WAR file, what is the difference
between the cxf.xml config file and the cxf-servlet.xml config file? I
know the former needs to be on the classpath, and the latter is kept
directly under the WEB-INF folder--but what is the difference in those
two files' contents or purpose?
Or, is there really no cxf.xml for the service, that cxf.xml is only to
be packaged with the client? I.e., can everything that is specified in
the cxf.xml actually be specifiable in the cxf-servlet instead,
eliminating the need for both files?
Thanks,
Glen
This email and any attachments ("Message") may contain legally privileged
and/or confidential information. If you are not the addressee, or if this Message has
been addressed to you in error, you are not authorized to read, copy, or distribute it,
and we ask that you please delete it (including all copies) and notify the sender by
return email. Delivery of this Message to any person other than the intended
recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.