proxy

8 views
Skip to first unread message

Krzysztof Kanciak

unread,
Sep 2, 2010, 9:02:56 AM9/2/10
to em...@googlegroups.com
Hi, how can i replace ProxyServlet (which is bundled for testing purposes only) with Apache2?
What has to be changed on the hablar side?
Does anyone have an apache configuration?


Many thanks

dani

unread,
Sep 2, 2010, 9:27:56 AM9/2/10
to em...@googlegroups.com
You have to compile Hablar (not download yet, but soon) and place it
into an apache accessible folder. See
http://code.google.com/p/emite/wiki/QuickStart (Appendix D: Apache
configuration) for more info.

I hope it helps
Bests,
Dani

> --
> You received this message because you are subscribed to the Google Groups
> "emite" group.
> To post to this group, send email to em...@googlegroups.com.
> To unsubscribe from this group, send email to
> emite+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/emite?hl=en.
>

dani

unread,
Sep 3, 2010, 8:45:43 PM9/3/10
to Krzysztof Kanciak, em...@googlegroups.com
Hello:

On Fri, Sep 3, 2010 at 10:40, Krzysztof Kanciak <krzy...@gmail.com> wrote:
> Many thanks for your help and quick responses.
> I tried but to configure apache2 but..without success.
> Firstly in my application I needed to change few things so I have built
> emite from sources. And I have output jar which should be copied to apache.
> but...where exactly? is apache root catalog ok?

You have to compile with GWT. The output are some javascript files (I
recommend to use the google-eclipse-gwt plugin)

>
> What changes should be done in my code? Do I have to remove ProxyServlet
> from my web.xml and proxy entry (<servlet path="/proxy"
> class="de.spieleck.servlets.ProxyServlet" />) from my gwt.xml?

You have to copy the resulting .js and .html files into the apache
directory, and open them with a browser. The only configuration you
need is on the the emite wiki page...

>
> VirtualHost in Apache should be listening on the same port as my application
> server, am I right? meaning that if I have configured virtualhost that is
> proxing traffic to my application server I have to extend it with content
> from Appendix D?

Mmm... I don't understand very well... You have to configure a xmpp
server and proxy it with apache (that's why the apache config) and
then open the html files ;)

I hope it makes sense
Saludos
Dani


>
> br,
> christopher

dani

unread,
Sep 7, 2010, 5:40:27 AM9/7/10
to emite
Hi:

A normal setup include a web (apache?) and xmpp servers running.
Because the browser's same origin police, you have to setup a proxy to
redirect the request from emite to your xmpp server (because emite
won't be able to send a http request directly to your xmpp server bosh
url). ProxyServlet is a low performance servlet using during
development, but a better proxy is recommended for production use.
What i have is a proxy setup in apache that redirects all request to
the xmpp server: you have to configure an url in apache (for example
yourhost.org/xmpp-bosh) and use that url in the BoshSettings (either
by code, or using html meta tags...)

In my apache configuration I have the following line:

   RewriteRule http-bind/ http://emite.calclab.com:5280/http-bind/ [P]

And I use the following meta tags inside my html files:

   <meta name="emite.httpBase" content="/http-bind/" />
   <meta name="emite.host" content="emite.calclab.com" />

I recommend NOT to use ProxyServlet.

I hope it helps

Saludos
Dani


On Mon, Sep 6, 2010 at 08:55, Krzysztof Kanciak <krzy...@gmail.com> wrote:
> ..I do not understand..
> I have an java web application. Emite chat is a part of this application.
> The application is deployed on glassfish. and if I have ProxyServlet I
> utilize connection pool of glassfish (after each message the connection is
> opened 60 seconds), so if some users log in, the application can crash
> because of connection pool size.
> So...I want my chat running without utilizing glassfish.
> How can I get this working?

Reply all
Reply to author
Forward
0 new messages