You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Stephens, Christopher" <ch...@lmco.com> on 2009/04/01 17:50:10 UTC
RE: running shindig behind a firewall
The team I am on, is working to get shindig working from behind our firewall with Tomcat also. If we figure out the proxy problem before you, I'll let you know the answer.
-----Original Message-----
From: Harry Hübner [mailto:ha.huebner@nexgo.de]
Sent: Tuesday, March 31, 2009 12:22 AM
To: shindig-dev@incubator.apache.org
Subject: Re: running shindig behind a firewall
Hi,
the issue is that Shindig runs on a computer, that sits behind a
secured proxy. For accessing information outside (i.e. the internet)
I have to pass this proxy.
Thanks
Harry
Am 30.03.2009 um 17:35 schrieb Louis Ryan:
> Your code below seems designed to allow Shindig to make HTTP requests
> through a secured proxy, is this the issue or are you trying to access
> Shindig itself and being prevented by a firewall?
>
> On Fri, Mar 27, 2009 at 5:17 AM, <ha...@nexgo.de> wrote:
>
>> Hi,
>>
>> I am running shindig in tomcat. That works fine, except when I
>> want to run
>> it in an environment where I am behind a firewall.
>> I have checked the mails about building behind a proxy. But that
>> doesn't
>> help, since I don't use jetty to start the server.
>>
>> In my SNS I have some code to read the module prefs for storing
>> the data
>> about applications. There I passed the firewall with this code:
>>
>> private void setProxy(URLConnection connection) {
>> System.getProperties().put("http.proxySet", "true");
>> System.getProperties().put("http.proxyHost", "myproxy.com");
>> System.getProperties().put("http.proxyPort", "3333");
>>
>> BASE64Encoder encoder = new BASE64Encoder();
>> String encodedUserPwd = encoder.encode("userid:pwd".getBytes());
>> connection.setRequestProperty("Proxy-Authorization", "Basic " +
>> encodedUserPwd);
>> }
>>
>> Can anybody tell me what to do in Shindig?
>>
>> Thanks
>> Harry
>>
>>
>> Zerreißen Sie die Netze der Phisher, Hacker und Betrüger!
>> Ihre Internet-Sicherheits-Seiten auf Arcor.de bieten alle Infos und
>> Hilfsmittel, die Sie zum sicheren Surfen brauchen! Play it safe!
>> http://www.arcor.de/footer-sicherheit/
>>
Re: overwritting gadgets.js
Posted by ha...@nexgo.de.
Hi,
I have updated the wiki page for the description of how to display a gadget in your own page.
http://cwiki.apache.org/confluence/display/SHINDIG/Display+a+gadget+in+a+web+page
The only thing you need is to provide an iframe tag in your html with the right url to the gadget. JavaScript can be added for things like navigate from one view to another or dynamic height.
Harry
Zerreißen Sie die Netze der Phisher, Hacker und Betrüger!
Ihre Internet-Sicherheits-Seiten auf Arcor.de bieten alle Infos und Hilfsmittel, die Sie zum sicheren Surfen brauchen! Play it safe!
http://www.arcor.de/footer-sicherheit/
Re: overwritting gadgets.js
Posted by Kevin Brown <et...@google.com>.
On Wed, Apr 1, 2009 at 11:18 AM, Stephens, Christopher <
christopher.stephens@lmco.com> wrote:
> Hey guys, I have a quick question for the community. I am implementing
> shindig and want to make sure as updates come out I don't have to
> rewrite anything (unless there is a major change), so for things like
> the gadets.js file, I have been overriding methods in that file.
> However, I am getting to the point where I need to totally rewrite some
> things. Specifically I need to give each gadget a UUID so I am replacing
> the incrementor with the UUID from our database. However the
> gadgetChomeID array retrieves chomeIDs based on the index of the array,
> which would have matched the incrementor. So anyhow I need to totally
> change the way the gadgetChrome array works, which gets me to my
> question.
>
> Is it the intention that the gadget.js file should be used only as a
> sample and totally rewritten?
Yes. There is no need to use javascript to create the gadgets at all.
> Or is this going to be updated and bug
> fixed where I would want to overwrite methods in it?
>
overwritting gadgets.js
Posted by "Stephens, Christopher" <ch...@lmco.com>.
Hey guys, I have a quick question for the community. I am implementing
shindig and want to make sure as updates come out I don't have to
rewrite anything (unless there is a major change), so for things like
the gadets.js file, I have been overriding methods in that file.
However, I am getting to the point where I need to totally rewrite some
things. Specifically I need to give each gadget a UUID so I am replacing
the incrementor with the UUID from our database. However the
gadgetChomeID array retrieves chomeIDs based on the index of the array,
which would have matched the incrementor. So anyhow I need to totally
change the way the gadgetChrome array works, which gets me to my
question.
Is it the intention that the gadget.js file should be used only as a
sample and totally rewritten? Or is this going to be updated and bug
fixed where I would want to overwrite methods in it?