Bosh http-binding with webrick or glass fish server


My application is based on ruby on rails.

I want to setup “BOSH Http-Binding” connection with my application.

Its works successfully on apache but my requirement is to use webrick or glass fish web server for applications.

Is there any way how can i do?

i try hard but not working…

My Apache Configuration file (httpd.conf file)

ProxyRequests Off
ProxyPass /xmpp-httpbind
ProxyPassReverse /xmpp-httpbind

Is there any way how can i do it?