Hi Haris,

I'm also doing the same thing as u are--developing a
B2B application in which exchange XML documents
between two servlets running on different machines.
Glad to find some one who can I discuss with!!

I'm still working on it now, having in mind that
RequestDispatcher.forward() to forward the XMLDoc as a
request object to the other servlet. But the problem
is RequestDispatcher only work for servlet within the
same web server, so I have to create an URL object of
the XML document, which is passing the URL of the
document as a parameter.Then use URL ans URLConnection
classes in the receiver servlet to download the
document.

Hope this give u some idea on it, and we can discuss
further on this topic as we work on. Have u try the
stream socket approach already? If does sucess, tell
me coz' I haven't try that approach, ok?

Best Regards,
MeiLing.



--- 653 <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I am develpoing a B2B application in which I have to
> exchange XML documents
> between two servlets running on different machines.
> Solution in my mind is
> to open a socket between servlets and then stream
> that docuemt. I know that
> this thing will work in any case, is there any other
> better and efficient
> method for this document transfer between two
> applications ?
>
> Regards,
> Haris
>
>
___________________________________________________________________________
> 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


__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.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

Reply via email to