Mathias,

The easiest way is to use the Spring IO Resource class.  Just provide
a getter/setter for a property of type
org.springframework.core.io.Resource.  You can then use a
"classpath:..." URI for injecting your resource, e.g. like the one you
find in the http:soap-consumer example on
http://servicemix.apache.org/servicemix-http-new-endpoints.html.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/5/27 mast <[email protected]>:
>
> Hi,
>
> Is it possible to have an file in your su artifact and then get a hold of
> the file from within your su classpath? Lets say that I place an file in my
> resources folder within my su, is it possible to retrieve it from a java
> class that is deployed within the same su e.g do they share the same
> classpath?
>
> The reason for this is that I dont like the ideĆ” of placing this kind of
> resources in the conf dir of servicemix.
>
> BR
> Mathias
> --
> View this message in context: 
> http://www.nabble.com/SU-file-as-a-resource-tp23741687p23741687.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to