Hi
we use some library that requires a absolute path as a parameter.
there is no way around that :-(Code:<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate"> <property name="environment"> <props> <prop key="java.naming.factory.initial"> com.sun.jndi.fscontext.RefFSContextFactory </prop> <prop key="java.naming.provider.url"> file:C:\local\workspaces\projectA\src\main\resources\WebshereBinding </prop> </props> </property> </bean>
i can make it run it with something like that:
and -Duser.path=C:/local/workspaces/projectACode:<prop key="java.naming.provider.url"> file:#{ systemProperties['user.path'] }/src/main/resources/WebshereBinding </prop>
but is not sooooooo coooool :-(
does somebody not if this is possible to do dynamically in Spring or SpringEL
thanks :-)Code:<prop key="java.naming.provider.url"> file:#{ ??evalRootPath?? }/src/main/resources/WebshereBinding </prop>


Reply With Quote
