One option might be to use the Filter technique that was just introduced in
the latest Servlet Spec.  You could run your Authentication and Registration
system as the same Servlet Filter on each site.  Not sure how viable this
is, but it's probably worth a look.
  (*Chris*)

----- Original Message -----
From: "Maya Vayner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 12:04 PM
Subject: [SERVLET-INTEREST] 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.co
m").forward(request,
> response);
>
>
GenericServlet.getServletContext().getRequestDispatcher("http://www.second.c
om").forward(request,
> response);
>
>
GenericServlet.getServletContext().getRequestDispatcher("http://www.third.co
m").forward(request,
> response);
>
> 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