Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

disappiring UDP packets

Thread view: 
Xanti - 08 Mar 2007 14:31 GMT
Hello, I have a simple UDP application. Server awaiting for datagrams
and client which can send a few different messages. All working OK as
stand-alone applications. Problem is that I want to use my client in
another application, but when I try i have SocketTimesException. I
need to use my UDP Client in a WebService application to send some
information to server. Do you know anything about not using UDP client-
server applications in web ervices?
Daniel Pitts - 08 Mar 2007 17:24 GMT
> Hello, I have a simple UDP application. Server awaiting for datagrams
> and client which can send a few different messages. All working OK as
[quoted text clipped - 3 lines]
> information to server. Do you know anything about not using UDP client-
> server applications in web ervices?

Your post was somewhat incoherent.
I gathered that you have two components, and they communicate with
UDP.  This works well when both components are on the same machine,
however it fails other the network, with a "SocketTimeoutException".
Although, you don't tell us which component (server or client).

Your question then is, how do we communicate between two components
without UDP.

Often, the best way to send data to a "web service" is, of course,
with a HTTP request.  Depending on the complexity of the request, you
can use the built-in java.net.URL class for the simpler ones, or you
may consider using apache's HttpClient class for more complicated
queries.

Hope this helps.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.