|
From: Geoffrey (JIRA) <no...@at...> - 2005-09-23 10:08:42
|
Determine webAppContextUrl through JNLP instead of hard coding it with patch: JnlpPropertyPlaceholderConfigurer
---------------------------------------------------------------------------------------------------------------
Key: RCP-198
URL: http://opensource.atlassian.com/projects/spring/browse/RCP-198
Project: Spring Framework Rich Client Project
Type: New Feature
Components: Helper Classes
Reporter: Geoffrey
Assigned to: Oliver Hutchison
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://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|
|
From: Geoffrey (JIRA) <no...@at...> - 2005-09-23 10:10:42
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-198?page=all ] Geoffrey updated RCP-198: ------------------------- Attachment: JnlpPropertyPlaceholderConfigurer.java Features of this patch: Fully javadocced TODO on this patch: - Adjust the package to wherever it needs to be in spring rich (don't forget the example in the javadocs). - verify that ant includes javaws.jar to compile as it depends on javax.jnlp.BasicService - Optionally adjust the petclinic example > Determine webAppContextUrl through JNLP instead of hard coding it with patch: JnlpPropertyPlaceholderConfigurer > --------------------------------------------------------------------------------------------------------------- > > Key: RCP-198 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-198 > Project: Spring Framework Rich Client Project > Type: New Feature > Components: Helper Classes > Reporter: Geoffrey > Assignee: Oliver Hutchison > Attachments: 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://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: Geoffrey (JIRA) <no...@at...> - 2005-09-23 11:48:34
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-198?page=all ] Geoffrey updated RCP-198: ------------------------- Attachment: JnlpPropertyPlaceholderConfigurer.java I 've added if (!codeBase.endsWith("/")) { codeBase += "/"; } because I am unsure that JNLP codebases always end with "/". The JnlpDownloadServlet (see webstart docs) always adds it though. > Determine webAppContextUrl through JNLP instead of hard coding it with patch: JnlpPropertyPlaceholderConfigurer > --------------------------------------------------------------------------------------------------------------- > > Key: RCP-198 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-198 > Project: Spring Framework Rich Client Project > Type: New Feature > Components: Helper Classes > Reporter: Geoffrey > Assignee: Oliver Hutchison > Attachments: 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://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: Geoffrey (JIRA) <no...@at...> - 2005-09-23 11:54:34
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-198?page=all ] Geoffrey updated RCP-198: ------------------------- Attachment: JnlpPropertyPlaceholderConfigurer.java Attached it again ... (sorry for spamming) Just added this in the docs: * Use this in combination with Sun's JnlpDownloadServlet to not have to hardcode your server URL: * http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/downloadservletguide.html Ok, that should be final :) > Determine webAppContextUrl through JNLP instead of hard coding it with patch: JnlpPropertyPlaceholderConfigurer > --------------------------------------------------------------------------------------------------------------- > > Key: RCP-198 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-198 > Project: Spring Framework Rich Client Project > Type: New Feature > Components: Helper Classes > Reporter: Geoffrey > Assignee: Oliver Hutchison > 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://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: Oliver H. (JIRA) <no...@at...> - 2005-09-28 23:21:06
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-198?page=all ] Oliver Hutchison updated RCP-198: --------------------------------- Priority: Minor (was: Major) > Determine webAppContextUrl through JNLP instead of hard coding it with patch: JnlpPropertyPlaceholderConfigurer > --------------------------------------------------------------------------------------------------------------- > > Key: RCP-198 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-198 > Project: Spring Framework Rich Client Project > Type: New Feature > Components: Helper Classes > Reporter: Geoffrey > Assignee: Oliver Hutchison > Priority: Minor > 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://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: Geoffrey De S. (JIRA) <no...@at...> - 2006-08-22 09:49:00
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-198?page=comments#action_19169 ] Geoffrey De Smet commented on RCP-198: -------------------------------------- Committed with javadocs, but still need to make an example of it in Petclinic together with other tips and tricks and an apt document describing it all. > Determine webAppContextUrl through JNLP instead of hard coding it with patch: JnlpPropertyPlaceholderConfigurer > --------------------------------------------------------------------------------------------------------------- > > Key: RCP-198 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-198 > Project: Spring Framework Rich Client Project > Type: New Feature > Components: Helper Classes > Reporter: Geoffrey De Smet > Assignee: Geoffrey De Smet > Priority: Minor > 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://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
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
|