You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-user@portals.apache.org by Matthew Carey <ma...@ssl.co.uk> on 2004/08/26 12:19:48 UTC

Swing consumer

When I run the SwingConsumer on a different machine it still tries to 
render resources using localhost.

Thus in the xml as reported by the tunnel app

&lt;IMG 
SRC=&quot;wsrp_rewrite?wsrp-urlType=resource&amp;amp;wsrp-url=http%3A%2F%2Flocalhost%3A8080%2Fwsrptest%2Fimages%2Fproject-logo.jpg&amp;amp;wsrp-requiresRewrite=false&amp;amp;wsrp-secureURL=false/wsrp_rewrite&quot; 
align=&quot;TOP&quot;/&gt;

Becomes
<IMG SRC="http://localhost:8080/wsrptest/images/project-logo.jpg" 
align="TOP"/>

On the remote machine which seems to go against the spirit of the whole 
url rewrite stuff, I am prepared to proven totally wrong on this.

This becomes obvious if you have ws-wsrp4j installed on two machines and 
edit the file ws-wsrp4j/driver/persistence/producer/ 
org.apache.wsrp4j.consumer.driver.ProducerImpl@WSRP4J.xml but don't run 
tomcat on the remote machine but do run the SwingConsumer.


Re: Swing consumer

Posted by Matthew Carey <ma...@ssl.co.uk>.
Thanks Ken that worked fine.

Ken Weiner wrote:
> I had this same question back in July. Ricky Frost pointed me in the 
> right direction. See this thread:
> 
> http://nagoya.apache.org/eyebrowse/BrowseList?listName=wsrp4j-user@ws.apache.org&by=thread&from=819343 
> 
> 
> Basically you have to edit ConfigService.properties with the proper host 
> name.
> 
> -Ken
> 
> Matthew Carey wrote:
> 
>> When I run the SwingConsumer on a different machine it still tries to 
>> render resources using localhost.
>>
>> Thus in the xml as reported by the tunnel app
>>
>> &lt;IMG 
>> SRC=&quot;wsrp_rewrite?wsrp-urlType=resource&amp;amp;wsrp-url=http%3A%2F%2Flocalhost%3A8080%2Fwsrptest%2Fimages%2Fproject-logo.jpg&amp;amp;wsrp-requiresRewrite=false&amp;amp;wsrp-secureURL=false/wsrp_rewrite&quot; 
>> align=&quot;TOP&quot;/&gt;
>>
>> Becomes
>> <IMG SRC="http://localhost:8080/wsrptest/images/project-logo.jpg" 
>> align="TOP"/>
>>
>> On the remote machine which seems to go against the spirit of the 
>> whole url rewrite stuff, I am prepared to proven totally wrong on this.
>>
>> This becomes obvious if you have ws-wsrp4j installed on two machines 
>> and edit the file ws-wsrp4j/driver/persistence/producer/ 
>> org.apache.wsrp4j.consumer.driver.ProducerImpl@WSRP4J.xml but don't 
>> run tomcat on the remote machine but do run the SwingConsumer.
> 
> 
> ====
> This message and any attachments are confidential. Unauthorized use
> or disclosure of this message is strictly prohibited, and this message
> must be destroyed immediately if received by an unauthorized recipient.
> ====
> 
> 


Re: Swing consumer

Posted by Ken Weiner <kw...@unicon.net>.
I had this same question back in July. Ricky Frost pointed me in the 
right direction. See this thread:

http://nagoya.apache.org/eyebrowse/BrowseList?listName=wsrp4j-user@ws.apache.org&by=thread&from=819343

Basically you have to edit ConfigService.properties with the proper host 
name.

-Ken

Matthew Carey wrote:

> When I run the SwingConsumer on a different machine it still tries to 
> render resources using localhost.
> 
> Thus in the xml as reported by the tunnel app
> 
> &lt;IMG 
> SRC=&quot;wsrp_rewrite?wsrp-urlType=resource&amp;amp;wsrp-url=http%3A%2F%2Flocalhost%3A8080%2Fwsrptest%2Fimages%2Fproject-logo.jpg&amp;amp;wsrp-requiresRewrite=false&amp;amp;wsrp-secureURL=false/wsrp_rewrite&quot; 
> align=&quot;TOP&quot;/&gt;
> 
> Becomes
> <IMG SRC="http://localhost:8080/wsrptest/images/project-logo.jpg" 
> align="TOP"/>
> 
> On the remote machine which seems to go against the spirit of the whole 
> url rewrite stuff, I am prepared to proven totally wrong on this.
> 
> This becomes obvious if you have ws-wsrp4j installed on two machines and 
> edit the file ws-wsrp4j/driver/persistence/producer/ 
> org.apache.wsrp4j.consumer.driver.ProducerImpl@WSRP4J.xml but don't run 
> tomcat on the remote machine but do run the SwingConsumer.

====
This message and any attachments are confidential. Unauthorized use
or disclosure of this message is strictly prohibited, and this message
must be destroyed immediately if received by an unauthorized recipient.
====