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.
>
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
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?