You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Tomer G." <to...@gmail.com> on 2011/09/27 17:09:10 UTC
Changing hostname in Shindig's container
I'm using Shindig 2.0 with its default container. When the container renders
the gadget, it calls the servlet: /gadgets/ifr?url=
http://iltlvl094:8080/sample-gadget/spec.xml&libs=rpc&parent=http://iltlvl094&debug=1&#rpctoken=54612318
This servlet returns HTML code that imports JavaScript file from localhost:
<script src="
http://localhost:8080/gadgets/js/rpc.js?container=default&nocache=0&debug=1&c=0&v=249039fb66d20be125366df4d5ec26c2
"></script>
Why it's referring localhost and not the actual hostname - iltlvl094? Where
I can change it?
I'm using Shindig out of the box, thus I don't have any source code or
configuration files to modify. Maybe I can do this via command line
arguments?
Appreciate your help,
Tomer
Re: Changing hostname in Shindig's container
Posted by Li Xu <le...@gmail.com>.
you can also set the values in web.xml.
shindig.host=
shindig.port=
thanks,
li
On Tue, Sep 27, 2011 at 11:40 AM, Jasha Joachimsthal <
j.joachimsthal@onehippo.com> wrote:
> On 27 September 2011 17:09, Tomer G. <to...@gmail.com> wrote:
>
> > I'm using Shindig 2.0 with its default container. When the container
> > renders
> > the gadget, it calls the servlet: /gadgets/ifr?url=
> >
> >
> http://iltlvl094:8080/sample-gadget/spec.xml&libs=rpc&parent=http://iltlvl094&debug=1&#rpctoken=54612318
> >
> > This servlet returns HTML code that imports JavaScript file from
> localhost:
> >
> > <script src="
> >
> >
> http://localhost:8080/gadgets/js/rpc.js?container=default&nocache=0&debug=1&c=0&v=249039fb66d20be125366df4d5ec26c2
> > "></script>
> >
> > Why it's referring localhost and not the actual hostname - iltlvl094?
> Where
> > I can change it?
> >
> > I'm using Shindig out of the box, thus I don't have any source code or
> > configuration files to modify. Maybe I can do this via command line
> > arguments?
> >
> > Appreciate your help,
> >
> > Tomer
> >
>
> You can set a system property shindig.host=iltlvl094
>
> See
>
> http://svn.apache.org/repos/asf/shindig/tags/shindig-project-2.0.2/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java
>
> Jasha Joachimsthal
>
> Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466
> US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll
> free)
>
> www.onehippo.com
>
Re: Changing hostname in Shindig's container
Posted by Jasha Joachimsthal <j....@onehippo.com>.
On 27 September 2011 17:09, Tomer G. <to...@gmail.com> wrote:
> I'm using Shindig 2.0 with its default container. When the container
> renders
> the gadget, it calls the servlet: /gadgets/ifr?url=
>
> http://iltlvl094:8080/sample-gadget/spec.xml&libs=rpc&parent=http://iltlvl094&debug=1&#rpctoken=54612318
>
> This servlet returns HTML code that imports JavaScript file from localhost:
>
> <script src="
>
> http://localhost:8080/gadgets/js/rpc.js?container=default&nocache=0&debug=1&c=0&v=249039fb66d20be125366df4d5ec26c2
> "></script>
>
> Why it's referring localhost and not the actual hostname - iltlvl094? Where
> I can change it?
>
> I'm using Shindig out of the box, thus I don't have any source code or
> configuration files to modify. Maybe I can do this via command line
> arguments?
>
> Appreciate your help,
>
> Tomer
>
You can set a system property shindig.host=iltlvl094
See
http://svn.apache.org/repos/asf/shindig/tags/shindig-project-2.0.2/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java
Jasha Joachimsthal
Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466
US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free)
www.onehippo.com