Results 1 to 8 of 8
  1. #1
    developer89 is offline Member
    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0

    Default java udp request response mismatch

    we are providing a java library to be used in web application.Library methods can be accessed from jsp pages by creating objects for corresponding classes.Upon a method call , library will send udp request to third party server for response.

    If jsp page A calls library method B then request-0 will be transferred to server for key-0.If key-0 is obtained , then further method calls will be ignored.Consider B is called 4 times.4 requests namely request-0 , request-1 , request-2 , request-3 are transferred to server.Since we are using udp which is connectionless , key-3 is received before other responses.Key-3 is not for request-0.So it is ignored.Then Key-0 is received.This is not for request-1.So it is ignored.Similarly all responses are ignored. Now the library has no idea on how to handle these responses.Can anybody help in this?
    Last edited by developer89; 10-08-2013 at 05:27 PM.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,926
    Rep Power
    8

    Default Re: java udp request response mismatch

    I've deleted your duplicate posts.

    Please see the link in my signature on asking questions the smart way before posting again.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,926
    Rep Power
    8

    Default Re: java udp request response mismatch

    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  4. #4
    developer89 is offline Member
    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0

    Default Re: java udp request response mismatch

    Quote Originally Posted by KevinWorkman View Post
    Sorry ,


    i thought the question might be suitable for multiple sub forums

  5. #5
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,926
    Rep Power
    8

    Default Re: java udp request response mismatch

    That isn't really how forums work. You post in a single forum, that way the people with expertise in that area will be more likely to see your question. Posting it in multiple places just wastes our time.

    For that matter, this has nothing to do with threads or synchronization. I'm going to move it to a more appropriate forum. You also haven't really asked a question, so I still recommend reading the link in my signature on asking questions the smart way.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  6. #6
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: java udp request response mismatch

    Looks like a homework dump to me.

  7. #7
    developer89 is offline Member
    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0

    Default Re: java udp request response mismatch

    So , what is your point? Please provide appropriate solution

  8. #8
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,926
    Rep Power
    8

    Default Re: java udp request response mismatch

    Quote Originally Posted by developer89 View Post
    So , what is your point? Please provide appropriate solution
    That is absolutely not how this works. We won't do your homework for you. Ask a specific technical question (in SSCCE form) and post what you've tried, and we'll go from there. If that's too much to ask of you, then good luck.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Servlet request and Response Size
    By giladma in forum Java Servlet
    Replies: 0
    Last Post: 09-23-2011, 03:27 PM
  2. How request and response objects are forwarded
    By Matang in forum Java Servlet
    Replies: 3
    Last Post: 03-28-2011, 12:10 PM
  3. MDB/JMS Request/Response
    By rkands in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 03-04-2010, 02:38 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •