Hi everyone,
What is the best/correct way to build the access path to the resource files
within a deployed service unit?
I have a file that is stored at the same location as xbean.xml within a
service unit. In SMX 3.3 I was using
getClass().getClassLoader().getResource("/") within the accessing class to
resolve to the appropriate folder:
apache-servicemix-3.3/data/smx/service-assemblies/application-sa/version_2/s
us/servicemix-bean/my-su/
After upgrading to SMX 3.3.1 the return value for the above getClass()
statement has changed. It is now returning the SMX installation root folder
apache-servicemix-3.3.1, not the deployment location.
What is the correct expression to locate the resource/unpacked location of
the service unit?
My environment:
SMX 3.3.1, JDK 1.5, WinXP.
Stuart.