Asking For the Solution

Do me a favor guys...help me to figure this out, which the best solution of this, i create some networks, what i plan is like this..
if client send their request to appServer which using web browser, the request will arrive to the appServer,right? and then i create some network application to forward the request to another computer to be process, and response the client... the problem are :
1. which is more efficient, faster,reliabe and secure ,create socket and i put the socket on My RMI or only using socket ?
2. if i combine both RMI and Socket, is that good or not? why?
Thank u so much for answer....

Thanks Before to All of U...
Now i got very clear, i do have done implement this, but i still have some problem, i implement this using RMI, When i try connect more than 1 client, My RMIServer can handle the connection but if the client request different things , My RMI Server response twice to the second client...
Like this :
= Client1 request A
Output AAAAAAAAA
= Client2 rquest B
Output BBBBBBBB
AAAAAAAA
RMI will send output client1 to client2,How could this happen? how's the solution?
If this is uses,here's my RMI Code : (This is just sample)
public void sendData(String packet)
          try
               if (packet.equals("."))
                    System.exit(0);
               else if (packet.equals("BF"))
                    fs = new FileInputStream("BF.txt");
               else if (packet.equals("SIJKTMES"))
                    fs = new FileInputStream("SIJKTMES.txt");
               else
          catch(Exception e)
     public ArrayList receiveData()
          try
               inputFromServer = new BufferedReader(new InputStreamReader(fs));
               Hasil = "";
               tmpList.clear();
for(int a=0;a<400;a++)
layar[a]=null;
               int counter = 1;
               while (counter == 1)
                    counter = BacaData();
                    if (counter==1)
                         Movedown();
               for (int a = 0; a < 400; a++)
                    if (layar[a]== null)
                         break;
                    tmpList.add(layar[a]); // WARNING Cause some Warning warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.ArrayList
          catch (Exception e)
          return tmpList;
     public int BacaData()
          try
               while(true)
                    if (inputFromServer.ready())
                         break;
               bufferControl = 0;
               while(bufferControl == 0 )
                    inputFromServer.read(cbuf);
                    bufferControl = (cbuf[0]); //Nilai Buffer = 47 untuk Karakter '/'
               int c = 0;
               for (int a = 2; a < 300; a++)
               bufferControl = (cbuf[a]);
               if (bufferControl == 41 && bufferControl == 94 && bufferControl == 124)
                         return 1;
               c += 1;
               int sw;
               if (bufferControl == 93 || bufferControl == 13)
                         int i;
                    sw = 0;
                    for (i = 0; i < 47; i++)
                              if (layar[i] == null)
                                   break;
                         if (sw == 0)
                    layar[i] = Hasil;
                    Hasil = "";
               else
                         Hasil += cbuf[a];
          catch(Exception e)
          System.out.println(e);
          return 0;
public void Movedown()
try
System.out.println ("Print MD");
catch(Exception e)
System.out.println(e);
********Client Code :
public class WebClient
     String op;
     ArrayList list = new ArrayList();
     BufferedReader bfr;
     public WebClient()
try
ServerInterface inf = (ServerInterface) Naming.lookup("rmi://localhost/ServerInterface");
               bfr = new BufferedReader(new InputStreamReader(System.in));
               System.out.print ("Input : ");
               op = bfr.readLine();
               inf.sendData(op);
               list = inf.receiveData();
               for (int i = 0; i < list.size() ; i++)
                    System.out.println (list.get(i));
catch (Exception ex)
          System.out.println("Error : "+ex.getMessage());
     public static void main(String[] args)
          new WebClient();
How can RMI Server know the request from who? and How can RMI Server response to the right client, if client more than 1?
At my code,i sign the warning comment,How could this happen?
Thanks...You're the best...

Similar Messages

  • HT4623 I updated my ipad but had to skip the update to the icloud because it was not finished within 2 hours. The ipad worked fine then, but I turned it off.  When I tried to turn it on again, it kept asking for the password over and over.  What do I do n

    I updated my ipad but had to skip the update to the icloud because it was not finished within 2 hours. The ipad worked fine then, but I turned it off.  When I tried to turn it on again, it kept asking for the password over and over.  What do I do now?

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • BlackBerry Desktop Keeps Asking for the Password

    Alright, well here is the problem. I've connected my father's Bold 9790 device to my laptop with BlackBerry Descktop Installe. However, it will not allow me to proceed with any actions such as the much needed backup feature without entering the password.
    Here is the catch, my father kept entering the wrong password on his phone for some reason. I'm not sure why, but he isn't one of the most tech savvy guys out there. He gave it to my little brother since he is (a dumb tryhard, well tech wise lol) and tries to always be the tech hero even when he lacks sufficient knowledge on the situation. I myself don't even own a blackberry, have never used one, but i was aware of the whole 10 attempt thing until the wipe. While he was making the attempts, i was thinking two things at the time. One was that there weren't two many attempts made yet. Two, that maybe after all these years since me learning about it, RIM may have came up with a better and less devastating security feature. Man was I wrong on both of these things. When my little brother gives up and my dad finally decides to give me the phone to figure out the issue. It asks for me to enter blackberry, then after that tells me it was the final attempt before a complete wipe. Had I had just one or two extra chances, i'm pretty positive i could have gotten it unlocked, but it's too late for that.
    I have a single shot, and not much else sadly. My first instinct was to obviously back it up. But as you can see, the worst of my fears have been realised seeing as Blackberry Desktop is also asking for the pass stating that it is also the final attempt. Backing up is often a recommended solution i find on these forums, but is Blackberry Desktop usually suppposed to always ask you for the pass before you can even connect to it fully?
    So now I'm at a point where i don't know what to do. Are there really no other options? I've heard that there are a few people who have claimed to bypass the security feature, but they've never shared how, and if true, it is also quite complex to figure out.
    One further complication is that by default, the keypad for the password enters numbers, but right now it is entering letters by default. His password contains 4 numbers. I've read on forums that if you type in the corresponding letters in place of the numbers, it is actually the correct way to enter it, instead of pressing alt and the corresponding character for the password. Can anyone else confirm this? So if the pass was "2113" would i put in the default "ewwr" instead of pressing alt to type in "2113?
    Any replies would most greatly be appreciated. I'm not a blackberry user, so issues such as these are not too fresh in my mind atm lol.

    Hi and Welcome to the Community!
    feloow72 wrote:
    Two, that maybe after all these years since me learning about it, RIM may have came up with a better and less devastating security feature.
    As you discovered, no. BB's remain the recognized leader in security, and lessening this function would lessen that rating.
    feloow72 wrote:
    but is Blackberry Desktop usually suppposed to always ask you for the pass before you can even connect to it fully?
    Yes...consider...if the Desktop Software could bypass the device lock security, then someone would have access to all of the data on the BB. The device lock security is intended to keep anyone but the actual user from accessing the information, regardless of method of attempted access. Again...part of that high security thing.
    feloow72 wrote:
    Are there really no other options? I've heard that there are a few people who have claimed to bypass the security feature, but they've never shared how, and if true, it is also quite complex to figure out.
    There is no "master", "override", or "bypass" mechanism to get past the user-created device lock password...again, if there were, then the security level of the device would not be as strong as it is. I've no idea what anyone may have claimed elsewhere...but I highly doubt that they are actually successful.
    Do note that, if you truly know the password, and can successfully enter it on either interface (the device keyboard or the PC keyboard when prompted), that will reset the counter...the same counter of attempts is used for both. So if you do succeed on one, you will have more chances again on the other.
    feloow72 wrote:
    One further complication is that by default, the keypad for the password enters numbers, but right now it is entering letters by default. His password contains 4 numbers. I've read on forums that if you type in the corresponding letters in place of the numbers, it is actually the correct way to enter it, instead of pressing alt and the corresponding character for the password. Can anyone else confirm this? So if the pass was "2113" would i put in the default "ewwr" instead of pressing alt to type in "2113?
    Maybe...it all depends on what the password actually is. If, when it was created, the proper sequence of using the alt key was not done, then the password may truly not be what it is thought to be.
    For instance, if your password is
    ab123
    and you enter
    a > b > ALT > 1 > 2 > 3
    the actual result will be
    ab1er
    You must enter
    a > b > ALT > 1 > ALT > 2 > ALT > 3
    in order to wind up with ab123. So, in this example, while on the BB keyboard you think you are typing ab123, you are actually typing ab1er.
    But no one can tell you what it is...only correctly entering it can reveal what is correct. And, with just the one chance left, the likelihood of success is low.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Client asked for the missing functionality (related to RG23D) -

    One of my client of SAP B1 2007 B SP0 PL7 asked for the functionality (related to RG23D) as follows -
    The tax amount they are paying at the time of purchase for a certain item, they have to receive the same amount of tax from the customer at time of saling the same item. And the tax amount (at the time of purchase) must be populated automatically at the time of sales. And an automatically generated number must be there (starting from purchase) for the reference of this tax amount linking from purchase to sales.
    Any one have a suitable solution for this?
    N.B. the related report Named RG23D format is also an additional requirement.

    Dear Narottam
    As on today SAP B1 India Localization doesn't support RG23D, we are working towards providing the solution to this feature. Please keep on checking the SAP market place for updates.
    As a workaround, you can replace the amount of AV at the time of sales with the amount of AV at the time of purchase manually so that you passon the right excise duty to end user.
    Regards
    CA. Deepak Kumar Garg
    Regional Solution Manager-IN/SG/ANZ/ZA
    SAP India Pvt. Ltd.

  • Various disk actions ask for the PW to my encrypted disk image, even though I'm not accessing this.  Help

    I have a small portion of hy hard drive set aside as an encrypted disk image.  Since installing OSX Lion, various actions that dont require access to that disk image (printing to PDF, opening Aperture) ask for the password, and wont do anything til I provide that password.  Has anyone else run into this, or more importantly, found a solution?
    Thanks
    Ted

    See Here for Troubleshooting
    Free Disc Space
    http://www.thexlab.com/faqs/freeingspace.html
    See Here for Resolving Startup Issues
    http://support.apple.com/kb/ts1417

  • HT3702 I have gift cards that were entered into my account.  I since have destroyed the cards and no when i try to purchase music it is asking for the card information.  I show a balance, what do i need to do?

    I have gift cards that were entered into my account.  I since have destroyed the cards and no when i try to purchase music it is asking for the card information.  I show a balance, what do i need to do?

    See Kappy's great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
     Cheers, Tom

  • Mail ask for the password all the time

    Hello.
    For the last month I´ve been experiencing problems with my mail. It ask me for the password every few seconds. I´ve have already tried all the solutions published at the help page in apple the site, but the problem is still on.
    Could anyone of you give some help.
    Many thanks.
    PS: if someone could send me an answer in spanish, it could be easier for me.
    Thanks.
    IBook G4   Mac OS X (10.4.8)  

    Hola Luis.
    I’ll reply in English, amongst other reasons because that allows me to copy & paste between posts, but let me know if there is something you don’t fully understand. You can post in Spanish if you want. BTW, you can make your life easier in these forums by going to System Preferences > International and moving English to the top of the list. The next time you launch an application, it'll be all in English.
    Open /Applications/Utilities/Keychain Access, choose Keychain First Aid from the application menu, and proceed to repair the keychain. If that doesn’t work, you may try removing the password entry from the keychain and letting Mail create it again.
    Note that Mail often doesn’t correctly report what the problem really is. If Mail can connect to the server but cannot log into your mail account for some reason, it’ll ask for your password, regardless of whether that’s really the problem or not. Don’t keep entering the password every time, because that’s not the problem (click Cancel instead, and take the account back online afterwards).
    Some ISPs refuse connection attempts if they are too frequent, for example, or limit the number of simultaneous connections that are allowed from the same IP address, or the account may have become full, or there might be a problem with the network, or there might be a problem with the server... If the latter (i.e. if there is a problem with the network or the server), the problem will probably fix itself after some time for no apparent reason.
    Actually, if Mail asks for the password every few seconds, then you’re probably checking for mail too often, and that alone could be the reason you have this problem. What’s the time interval chosen in Preferences > General > Check for New Mail? If it’s set to Every minute, try changing it to Every 5 minutes.
    Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list.
    Also, try using a different method to connect to Internet, if possible, or connecting the computer to Internet as directly as possible, i.e. bypassing any routers that might be present, using an ethernet cable instead of wireless, etc., and see whether that makes a difference.

  • I can't change my apple id password because my security answers don't match. It won't give me any other options and just keeps asking for the answers. What do I do?

    I can't change my apple id password because my security answers don't match. It won't give me any other options and just keeps asking for the answers. What do I do?

    Contact the Apple ID Security site from http://support.apple.com/kb/HT5699 or call the AppleCare support number from http://support.apple.com/kb/HE57 and ask to speak with the Account security Team.

  • Hi, I need help and advice. Basically me and my ex partner both had iphones and synced it with the same computer under the same ID. We split i have a new laptop and now it keeps asking for the old ID or it'll erase my apps bought on theold account.

    Hi, I need help and advice. Basically me and my ex partner both had iphones and synced it with the same computer under the same ID. We split up and now im trying to get all my apps and info onto my new laptop with a new account but it keeps asking me for the old apple ID which she is still using and she changed the password. i tried backing it up but still nohing. When i try to back up purchased items being apps etc its keeps asking for the old one. help

    See Recover your iTunes library from your iPod or iOS device. But you'll still need the password.
    Once you have the computer authorized to use the account she could change the password again to stop you buying apps on her card (assuming it's not on yours!). It would lock you out of upgrading them too but they should work unless she uses the deathorize all feature.
    It depends on how amicable the split is...
    tt2

  • I have to update all my application in my App Store however they are asking for the credit card details since this is to update only. Even to download some free games still they are asking my credit card details since it is a free. Please help me..

    I have 11 updates in my App Store but every time I click the update they ask first my apply ID that would be fine but after they will ask my credit card details since this is only to update. Please help me.
    Also, even I would like to download some games it's ok to ask for our Apple ID but in the second time they will ask for the credit card details. Please help me

    My younger brother had the same problem. You have to go into settings, app store, details and then change your credit card details to none. If there is no none option, you will have to use a different apple id.

  • My ipod has had a previous owner How do I change my ipods email address so that when I try to down load anything it asks for the previous owners password but when I go to my account it says its my email my account but not when I try to download????

    My ipod has had a previous owner How do I change my ipods email address so that when I try to down load anything it asks for the previous owners password but when I go to my account it says its my email my account but not when I try to download can anyone please help me ????Plus it still has some of the previous owners pictures and videos on it that I want to delete and can't????? Also is there a way to kill the apps that u have used throughout the day the battery doesn't last long at all ??????

    - How did you dlete stuff from the iPod? If you have a 1G or 2G iPod and deleted the stuff by going to Settings>Genera.>Reset>Erase aall contents and settings without being connected to a power source, the battery dies before he erase was comleted since it can take hour.
    - In any event try the following:
    - Connect to a chaging sour for three hours.
    - Reset the iPod and then connect to the computer and try to restore va iTunes.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Next try placing the iPod in recovery moe and then try to restore. For recovery mode:
    iPhone and iPod touch: Unable to update or restore
    - Last try DFU made and restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • I used to share one apple ID/account with my ex but made a new one for myself recently and logged out of the old one but when I try to update my iBooks it asks for the old account's password(which my ex changed by now)

    I used to share one apple ID/account with my ex but made a new one for myself recently and logged out of the old one but when I try to update my iBooks (only happens with this app)it asks for the other account's password(which my ex changed by now). I don't understand why this happens when I'm logged into my account and it only happens with that app. Please help, I need to update. :/

    Content (apps, music, ibooks, films etc) is tied to the account that originally downloaded it, so if the iBooks app was downloaded using the account that you used to share with your ex then only that account can download updates to it. As it's a free app you could delete it and re-download it under your own account - and then re-download your ibooks into it (or copy the books to your computer's iTunes first via File > Transfer Purchases and then sync them back to the app).

  • I have had to create a new iTunes account. However, there are updates that were not performed while under the old account. So now when I try to update apps, it's asking for the login of the old account, which I do not have.

    I have had to open a new account, however, there were App updates that did not get installed before I opened the new account. Therefore, when I try to do the updates, it's is asking for the sign-in and password for the old account, which I do not have this information. 

    All apps are tied to the Apple ID they are purchased with and is not transferable.
    Delete these apps and download them with the new Apple ID.

  • When I go to update my software using the app store download, it always asks for the previous user's ID, not mine.  Please help!

    When I go to update my software using the app store download, it always asks for the previous user's ID, not mine (my IT guy at school's-I am a faculty with admin priviledges).  I have signed in as me, have set the main preferences login user as me,and everywhere on the laptop I can use my apple ID except here.  It always shows me a greyed out ID of my IT.  How can I reset this to my ID? It doesn't give me an option to change the user ID, only a link to reset password.  I reset it, but it did not change the problem.  Can someone help me?

    It's not an ID problem, it's an ownership problem.
    When someone uses their personal Apple ID to buy and download content, the content is licensed to them and has their Apple ID engrained in it's DNA. It is an anti-piracy program. And when that personal Apple ID is used to setup a new Mac, it involves the Mac itself, the shipping OS and any pre-installed apps as well.
    It's not the correct way to handle Macs that belong to a business or an institution. And had it been handled correctly they would not now be in this predictument needing a drastic remedy.

  • I changed my Apple ID a while ago but my iPad is asking for the old one to set up iCloud?

    I changed my Apple ID a while ago because I got a new email address, and it works fine when I am downloading apps or music etc. but I just got the iOS 6 update on my iPad and it's asking for the password to my old apple ID to set up iCloud, iMessage, and FaceTime. I followed the steps to reset my password, but it's not working because its asking about the old email address and I can't seem to change it. It's an optional step but I'd like to be able to have this stuff set up on my iPad. Thanks for the help!

    If you need to change the ID for iMessage, go to Settings>Massages>Send & Receive, tap the ID, sign out, then sign back in with the ID you wish to use.  If you need to change the ID for FaceTime, do the same thin in Settings>FaceTime.
    If you need to change the ID for iCloud, go to Settings>iCloud, tap Delete Account, then sign back in with the new ID.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.
    To avoid losing photo stream photos, save them to your camera roll (if not already there) before deleting the account.  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, then tap Save to Camera Roll.

Maybe you are looking for

  • Itunes wont download propley

    When i had to reload my entire hp I had itunes which worked great. Now when i download it to the newest version it will stay on the quicktime download for hours which shouldnt happen. I never even had the chance to open itunes becuase of when it was

  • 2008 MBP -- DVI out -- DVI/HDMI converter -- HDTV ?

    Hi guys, I'm gonna go ahead and apologize in advance if this has been asked before, I'm having a bit of an emergency. The backlight on my 2008 MBP (model A1260) has gone out -- I can still somewhat see the screen but it's extremely dim. I'm wondering

  • N80. I can't connect to PC. bluetooth from toshiba...

    my N80 version V4.0623.0.42 my PC Suite version 6.82.22.0 my bluetooth software version v4.20.08(T) Bluetooth Stack for Windows by Toshiba pcsuite is not found my n80 help me please!

  • Fm for retrieving subordinates details when manager employeeid is given.

    Hi, is there any function module to retrieve the subordinate details when managers employee id is given other than BAPI_EMPLOYEE_GETDATA. for this requirement a fm is to be created.so can i know what are the basic fm's that could be included in the m

  • Useful Life is required - Screen Layout

    Hello SAP Guru, Good day! I have an issue while creating an asset under the Land Asset class. In transaction code OAYZ, I assigned 1000 screen Layout in Depreciation Area 01 Land asset class. Screen Layout 1000 has an optional setting for Useful life