JSP back-end interface to Remote server. Please help the newbie

Could someone comment on pros and cons of the JSP back-end interfaces to the remote server/programs using..
(1) Socket Interface between JSP and Remote Server. One socket for one JSP session. JSP to create and delete the socket when done.
(2) RMI between JSP and Remote program.
(3) Message Exchange using JMS between JSP and the Remote Server.
(4) Peer-to-peer JAXM message exchange. JSP/JAXM Client to Remote JAXM Server
(5) Anything else?
Thanks in advance..

(1) Socket Interface between JSP and Remote Server.
One socket for one JSP session. JSP to create and
delete the socket when done.JSPs are compiled to servlets, which use the HTTP protocol. The remote server should be the servlet/JSP engine.
(2) RMI between JSP and Remote program.As soon as you say "JSP", you're assuming HTTP request/response. If you want to talk to RMI objects, I think that's best done elsewhere than a JSP. They really should be for interface only. Have your JSP talk to a central, front controller servlet and have it invoke methods that deal with RMI objects or EJBs or POJOs on the back end. That stuff doesn't belong in JSPs, IMO.
(3) Message Exchange using JMS between JSP and the Remote Server.No.
(4) Peer-to-peer JAXM message exchange. JSP/JAXM
Client to Remote JAXM ServerNo. This is crazy. JSP = HTTP, which is client/server by definition.
(5) Anything else?All these might be fine options, but they don't belong in JSPs. Those should be for Web interface, a thin client. The details of how you process (e.g., RMI vs. EJB, synchronous vs. asynchronous, etc.) are best encapsulated somewhere else besides a JSP.
HTTP is a client/server, synchronous, request/response protocol, of course. As soon as you say JSP, these assumptions are built into your system. You can do asynchronous processing, but you still have to send back a response synchronously (e.g., "Your order is being processed. Please come back.")

Similar Messages

  • Please help the newbie!

    I've created a photo gallery in Flash CS3 that contains 2 UI
    Loaders (one for a graphic title for the image, and one for the
    image itself) and have tested it and it works fine. I even
    published the file as an independent html file and it seems to work
    fine when tested in the browser too. My problem is that when I
    place the .swf into my html page in dreamweaver and test it, the
    file shows up, but the loader info doesn't work. The images don't
    load.
    Here is the code I have set up in Dreamweaver -
    Within the head, I have this:
    <script src="../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    Within the body, I have this set up for where the swf gallery
    is supposed to be:
    <div id="content_main">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','911','height','540','title','Photo
    Gallery','movie','../flash/photography2','quality','high','loop','false','play','false'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="911" height="540" title="Photo Gallery">
    <param name="movie" value="../flash/photography2.swf"
    />
    <param name="quality" value="high" /><param
    name="LOOP" value="false" /><param name="PLAY" value="false"
    />
    </object></noscript>
    </div>
    Can anyone help? Thanks so much. I appreciate any help I can
    get.

    Two suggestions -
    1. Please help yourself by using a subject line that is
    descriptive of your
    question/issue. Can you imagine how many posts there are that
    have exactly
    this subject? Later when you want to find this thread, you
    will be deep in
    the mud of other newbie posts.
    2. When you post a question about problems with your layout,
    please always
    post a link to the uploaded page? That way we can all examine
    the page's
    behavior, look at the code, and give you a precise answer.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mjordan1965" <[email protected]> wrote in
    message
    news:[email protected]...
    > I've created a photo gallery in Flash CS3 that contains
    2 UI Loaders (one
    > for a
    > graphic title for the image, and one for the image
    itself) and have tested
    > it
    > and it works fine. I even published the file as an
    independent html file
    > and it
    > seems to work fine when tested in the browser too. My
    problem is that when
    > I
    > place the .swf into my html page in dreamweaver and test
    it, the file
    > shows up,
    > but the loader info doesn't work. The images don't load.
    >
    > Here is the code I have set up in Dreamweaver -
    >
    > Within the head, I have this:
    >
    > <script src="../Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    >
    > Within the body, I have this set up for where the swf
    gallery is supposed
    > to
    > be:
    >
    > <div id="content_main">
    >
    > <script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=9,0,28,0','width','911','height','540','title','Photo
    >
    Gallery','movie','../flash/photography2','quality','high','loop','false','play',
    > 'false' ); //end AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=9,0,28,0" width="911" height="540" title="Photo
    Gallery">
    > <param name="movie" value="../flash/photography2.swf"
    />
    > <param name="quality" value="high" /><param
    name="LOOP" value="false"
    > /><param name="PLAY" value="false" />
    > </object></noscript>
    >
    > </div>
    >
    > Can anyone help? Thanks so much. I appreciate any help I
    can get.
    >

  • Pen tool in In design not working, please help the newbie!

    Hi there,
    I am very new to in design, I am trying to work the pen tool which previously worked when I was playing around with it on a previous version of in design but I have now downloaded the creative suite and when i use this in design if I am trying to draw a shape it creates black patches that firstly make it hard to move to the next point as it covers the image and then when I go to cut out the image and paste into its gone. 

    You have a fill selected as your default so when you create a shape it's being filled with color. Before you start drawing, set Fill to none and Stroke to a value like 1 point.

  • Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError $true -CurrentV

    I installed Exchange Server 2010 inside my VMWare Windows Server 2008 Ent R2. And After successful installation  when I try to open my Exchange Server Console, I am getting the following error message. I am very new to Exchange server please help me
    to solve this problem.
    Initialization Failed
    The following error occurred while searching for the on-premises Exchange server:
    [win-.local] Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError
    $true -CurrentVersion 'Version 14.1 (Build 218.15)''.
    Thanks Vivek
    SharePoint Foundation 2010 Book
    http://www.redpipit.com

    Hi,
    Please have a look at the article below:
    Troubleshooting Exchange 2010 Management Tools startup issues
    http://blogs.technet.com/b/exchange/archive/2010/02/04/3409289.aspx
    Resolving WinRM errors and Exchange 2010 Management tools startup failures
    http://blogs.technet.com/b/exchange/archive/2010/12/07/3411644.aspx
    Besides, please run the cmdlet below:
     set-user alias -remotepowershellenabled$true
    Xiu Zhang
    TechNet Community Support

  • HT201274 I have my brothers icloud account on my ipad and i want my icloud account back I have all my games from my acount but I can see his massages notes etc how can I get my icloud account back I tried so many things please help .???

    I have my brothers icloud account on my ipad and i want my icloud account back I have all my games from my acount but I can see his massages notes etc how can I get my icloud account back I tried so many things please help .???

    go to settings and sign out his apple id in the sections i tell you:
    1.game center
    2.itunes and appstore
    3.messages
    4.icloud(delete acount;it wont realy delete it will only remove from your ipad)
    5.facetime
    and then enter your icloud in each and every section

  • I was accidentally deleted pictures last week in my ipad mini. How can I restore them without any back up (icloud, itunes, etc)? Please help me.. Thank you

    I was accidentally deleted pictures last week in my ipad mini. How can I restore them without any back up (icloud, itunes, etc)? Please help me.. Thank you

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
    iSkysoft Free iPhone Data Recovery
    http://www.iskysoft.com/iphone-data-recovery/
    Recover iPhone/iPad/iPod touch lost data, Free.
    Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
    Recover data directly from iPhone or from iTunes backup
    Preview and recover lost iOS data with original quality
    Wondershare Dr.Fone for iOS
    http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
    Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
     Cheers, Tom

  • I have a big problem :( why is it i cant update my ipod touch 2g into ios 4! im using the latest version of itunes and everytime i click "update" it stucks on the "contacting server" please help :( i want to update it now

    i have a big problem why is it i cant update my ipod touch 2g into ios 4! im using the latest version of itunes and everytime i click "update" it stucks on the "contacting server" please help i want to update it now

    Maybe here:
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

  • Wlserver.exe error occur while start the web logic server-please help

    hi
    Iam getting wlserver.exe error when I start the web logic server-please help. and I cant able to start the web logic server.
    Thannks in Advance,
    Cheers,
    bala...

    Could you please mail the errors and the WLS Version and service pack as well.
    - Ramkumar

  • Have tried to restore settings due to problems, now Iphone shows Sim Failure, how can I get back to using my phone? Please help, its a business phone. :(

    Hi, I have tried to restore settings on my Iphone due to problems I was having with the phone cutting out when talking on the phone, now Iphone shows Sim Failure, how can I get back to using my phone? Please help, its a business phone.

    Hi jclarke64, 
    Thank you for contributing to the Apple Support Communities. 
    I'm sorry to hear that your iPhone 4s was lost, and glad that you were able to upgrade. 
    If your iPhone 4s was backed up to iCloud or using iTunes, you can restore the backed up data to your new phone. 
    See the steps in this article for help with restoring from a backup:
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    All the best,
    Jeremy 

  • I'm trying to set up my new iPhone 5s from a backup of my previous iPhone, when trying to enter my Facebook login info in settings I keep getting the following error message : error signing in could not communicate with server, please help !

    I'm trying to set up my new iPhone 5s from a backup of my previous iPhone, when trying to enter my Facebook login info in settings I keep getting the following error message : error signing in could not communicate with server, please help !

    Can you access other apps? Can you acess the internet? Can you access applications that use internet besides facebook?
    If answer is yes to all of these; contact Facebook.

  • I need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help

    i need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help if any one has the drivers or knows were i can download them

    Doug...
    If you don't have it for reference, the manual might come in handy > US/Boot_Camp_Install-Setup.pdf
    After it loads, Command + F to find information regarding the drivers.

  • HT201210 I have updated my iPhone to iOS6.1.3 today and lost all my photos and some data(messageies) I have tried iTunes back up but still not success, please help. This

    I have updated my iPhone to iOS6.1.3 today and lost all my photos and some data(messageies) I have tried iTunes back up but still not success, please help.

    If your messages and photos weren't part of your backup, then they're gone.
    Certainly you weren't foolish enough to update the iOS on your phone before importing your photos off your phone for safe keeping on your computer like you would do with any digital camera, were you?

  • Pretty please help, Quick newb question...

    I have a dell axim x50. I have the jad and jar files. How can I make my application work on the PDA??
    I've simulated with toolkit, and such.
    Please Please help ><

    The act of getting the jar from a pc to the device is called "provisioning"
    Some devices let you do this over bluetooth or IR and many others only allow it over http.
    I used to use some free web midlet hosting sites but the ones i used have been shut down now. (do a search on the net for "Free Midlet Hosting")
    These days i set up a web server on my development machine and then just use the phones wap browser to download the program.

  • Here is the message I got from the red "i" message... please help.The backup disk image "/Volumes/Data/Lisa's MacBook Pro.sparsebundle" is already in use.

    Here is the message I got from the red "i" message... please help.The backup disk image “/Volumes/Data/Lisa’s MacBook Pro.sparsebundle” is already in use.

    http://pondini.org/TM/C12.html

  • Please help the elderly (me). I took pics on my iphone and need to get them up on craigslist and nothing is working. I admit to being technologically challenged.

    Please help the elderly (me). I took pics on my IPhone and need to get the pics up onto craigslist. Can someone please walk me through this process. I plugged my iphone into the usb port of my windows7 desktop computer and now I am lost!
    If you help, you can consider it your good deed of the day! Thanks

    Get this app & you can upload your pics directly, no need to import them to your computer:
    https://itunes.apple.com/us/app/craigslist./id438875956?mt=8

Maybe you are looking for

  • How do I transfer devices from one iTunes account to a different iTunes account?

    My daughter got my mom'a old iPad for Xmas and I can't figure out how to change the iTunes account from hers to mine. Help!

  • How to run SmartCard Application on PC

    hi, i want to know how to convert class file into a CAP file and how to run on PC a smartCard Application. when i use converter use from command prompt then it will ask the AID how i get the AID at Conversion time. pls tell me the procedure for Conve

  • How to deploy a RAC with less than 5 disks in OVM 3.0.3

    Hello, Ive already successfully deployed two RACs based on the corresponding template. Now I want to deploy another RAC but only with 3 shared disks (instead of five). Of course Ive read the Appendix C of the template description but its not clear fo

  • Is this legal?

    Hi I am wondering if it is legal to rip music off of a friend's ipod. An example: Using ipod rip to transfer his music to my itunes library for personal use. Thanks for any help!

  • Installing NW Gateway 2.0 addon on fresh NW 740

    Hello, After installing a new NW 740, I follow up the steps in this how to doc: Installing and Configuring SAP NetWeaver Gateway 2.0 Non of the add on run successfully, for example, when I run the saint for GW_CORE i get The Add-On GW_CORE rel.200 is