some unfortunate typos there, was typing too fast
----- Original Message -----
From: "Sergey Beryozkin" <[email protected]>
To: "Sergey Beryozkin" <[email protected]>; <[email protected]>
Sent: Wednesday, August 26, 2009 6:10 PM
Subject: Re: Need more info on configuring JAX-RS without Spring
In meantime, here is a system test that shows how it can be dome without Spring
:
http://svn.apache.org/repos/asf/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerUserResourceTest.java
It shows gow you can programmatically create user model beans and inject them, and how you can inject a reference to the external
model :
String modelRef =
"classpath:/org/apache/cxf/systest/jaxrs/resources/resources2.xml";
(1) sf.setModelRefWithServiceClass(modelRef,
BookStoreNoAnnotationsInterface.class);
or(2) sf.setModelRef(modelRef);
(1) is used in the OSGI env, (2) can be used in all other cases
if a model describes interfaces only then JAXRSServerFactoryBean will need to have actual service objects injected in the end, as
shown in the test
Will summarize it all tomorrow
cheers, Sergey
----- Original Message -----
From: "Sergey Beryozkin" <[email protected]>
To: <[email protected]>
Sent: Wednesday, August 26, 2009 6:01 PM
Subject: Re: Need more info on configuring JAX-RS without Spring
No problems at all - I do have to document it better - I'll do it (as well as DOSGO docs updates I promised to do today) the
first thing tomorrow morning (with a clear head :-)).
Hope the info I provided in the prev email will help a bit - I might also check
the emails later today...
Sergey
----- Original Message -----
From: "KARR, DAVID (ATTCINW)" <[email protected]>
To: <[email protected]>
Sent: Wednesday, August 26, 2009 5:37 PM
Subject: Need more info on configuring JAX-RS without Spring
Much as I hate to ask this, I need to get more info about how to
configure JAX-RS services WITHOUT Spring, and without annotations.
The manual has some high-level information about this, but not at the
level of the model or resources. For instance, it talks about using the
JAXRSServerFactoryBean to set some high-level info, but nothing below
the resource class itself, and nothing specifying paths.