> -----Original Message-----
> From: Maya Vayner [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 12:04 PM
> To: [EMAIL PROTECTED]
> Subject: Forwarding request to multiple web servers - the
> best solution
>
>
> Hello there,
> Need some ideas for this system:
>
> I need to share one user registration table among multiple
> sites, URLs stored in a
> property file.
>
> I am thinking of forwarding HTTP request to all sites that
> are in the "network" (i.e.
> listed in Properties). There are only 3 actions for the user:
> Add, Update and View, so it
> shouldn't be too difficult... Unless I am missing something
> big and important here.
>
> Has anyone had to resolve this kind of problem?
>
> My concern is about re-sending HTTP request object several
> times - how can I send the
> same one using something like this in my servlet code?
>
> GenericServlet.getServletContext().getRequestDispatcher("http:
//www.first.com").forward(request,
> response);
>
> GenericServlet.getServletContext().getRequestDispatcher("http:
//www.second.com").forward(request,
> response);
>
> GenericServlet.getServletContext().getRequestDispatcher("http:
//www.third.com").forward(request,
> response);

If you want that from your servlet you have to forward requests to different
pages in different contexts in different web servers, then RequestDispatcher
will not work. You shall have to use response.sendRedirect.
RequestDispatcher is a good choice if you have to forward requests between
the same context.

>
> etc.
>
> Or I even shouldn't do it in a servlet - once it sends the
> first one, doesn't it stop
> running?
>
> If that doesn't work what are other means to register / view
> and update a user info on
> many servers at once, anybody?
>
> Thank you very much.
> Sorry, I've made this message so long, that noone will take
> time to read it...
> --
> Best regards,
>
>     Maya Vayner
>     Senior Software Engineer
>     Erete Software
>     Email: [EMAIL PROTECTED]
>     Phone: (508)370-3960 ext.34
>     Fax: (508)370-3962
>     www.myerete.com
>
>
> =====
> Maya Vayner
> (617)596-1347 mobile
> [EMAIL PROTECTED]
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to