|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 20:31:24
|
[ http://jira.springframework.org/browse/RCP-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo updated RCP-198:
-----------------------------
Fix Version/s: 1.x
> Determine webAppContextUrl through JNLP instead of hard coding it with patch: JnlpPropertyPlaceholderConfigurer
> ---------------------------------------------------------------------------------------------------------------
>
> Key: RCP-198
> URL: http://jira.springframework.org/browse/RCP-198
> Project: Spring Framework Rich Client Project
> Issue Type: New Feature
> Components: Helper Classes
> Reporter: Geoffrey De Smet
> Assignee: Geoffrey De Smet
> Priority: Minor
> Fix For: 1.x
>
> Attachments: JnlpPropertyPlaceholderConfigurer.java, JnlpPropertyPlaceholderConfigurer.java, JnlpPropertyPlaceholderConfigurer.java
>
>
> In the petclinic example I saw the localhost:8080 hardcoded, which means this would have to be adjusted in the properties file in the jar (which is in in the war) for deployment on any domain.
> With JnlpPropertyPlaceholderConfigurer (attached) there is not need to do this:
> For example:
> <bean id="jnlpPropertyPlaceholderConfigurer"
> class="be.kahosl.mammoet.swingclient.util.JnlpPropertyPlaceholderConfigurer">
> <property name="fallBackWebAppContextUrl" value="http://localhost:8080/mammoet-webclient/"/>
> <property name="jnlpRelativeDirectoryPathFromWebAppContext" value="/jnlp/"/>
> </bean>
> <bean name="orderService"
> class="org.springframework.remoting.caucho.BurlapProxyFactoryBean">
> <property name="serviceUrl">
> <value>${jnlp.webAppContextUrl}orderService.service</value> <!-- NO HARD CODING, not even in a properties file-->
> </property>
> <property name="serviceInterface">
> <value>be.kahosl.mammoet.serviceapi.order.OrderService</value>
> </property>
> </bean>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|