Charles Conover wrote: > > Is there a way to connect directly with a servlet, except > with the doGet and doPost methods? ... the servlets would > be on different machines, maybe even different countries. >
Not really. Servlets are, by definition, "things that handle HTTP requests"[1] So if you want to talk to a servlet on a remote machine, you're going to need to hand it an HTTP request. If put the application logic inside the servlets, you're pretty much stuck with the whole HTTP request response thing. That's not necessarily bad. It's simpler than trying to write EJB's. But if you want some other sort of interface then you're in for an uphill battle. Personally, I'd probably just POST the hashtable over to the other servlet. If it turns out that your servlets need more interaction, I'd consider maybe moving to a full-on application server and using RMI or CORBA or something. [1] In theory, they could handle other sorts of requests, but in practice, they don't. They just handle HTTP. -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.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
