jaxrs:client and spring - not autowiring

jaxrs:client and spring - not autowiring

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
brianm
Posts: 1
Joined: 28 Jan 2011, 23:39

jaxrs:client and spring - not autowiring

Post by brianm »

Hello,
I am new here, so I apologize if I am posting incorrectly.
I have configured my spring config file as follows:
<jaxrs:client id="someClient"
address="http://localhost:8080/services/trial/doit"
serviceClass="com.services.commons.interfaces.SomeRESTInterface"
inheritHeaders="true">
<jaxrs:headers>
<entry key="Accept" value="text/xml"/>
</jaxrs:headers>
</jaxrs:client>

The serviceClass is pointing at an interface.

When I go to Autowire this into my code, as follows:
@Autowired @Qualifier("someClient") SomeRESTInterface someClient;

it fails.
Is there a way to autowire jaxrs:client beans?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: jaxrs:client and spring - not autowiring

Post by AF »

I'm sorry but this is the Spring RTS Engine, and has nothing to do with java enterprise applications! We're a C++ project that implements a game engine for realtime strategy games!

Image

I am curious, what made you think this was somewher eyou could get help from? Your not the first person to mistake us for another project based on the name, but surely the jet fighters/starwars figures in the header, and the giant RTS scenes on the frontpage must have set alarm bells ringing?
Post Reply

Return to “Engine”