How can I accomplish this function that control a server application on jav

Now I write a server application,and want write a control shell to operate it,like start,stop,restart and so on.
just like the apache server shell and Tomcat 5.0 server shell,but mine shell just add the system configure panel.
I need your help,Thank u very much!

just make your server to listen to some specific
command either in the same port or different port.I don't know what u say,can u give me an example?or very specific introduce.
how to listen to some specific command in the same port or different port.

Similar Messages

  • I have an ipod that is synced with an old PC, and now I have a Mac and I want the ipod to sync the photos on it with the Itunes on my Mac, but it says it was synced with another ipod.  How can I accomplish this?

    I have an ipod that is synced with an old PC, and now I have a Mac and I want the ipod to sync the photos on it with the Itunes on my Mac, but it says it was synced with another ipod.  How can I accomplish this?

    Is it the same user/iTunes account or...?
    Syncing to a new computer should give you the opportunity to replace the exisiting contents with the new.

  • Lightroom 6 is up and running.  Upgraded from LR5.  However I want to change the file name to be more generic, e.g., description in LR5 references LR5 and I want to change that to just John G's LR Catalog/Library.lrcat.  How can I accomplish this without

    Lightroom 6 is up and running.  Upgraded from LR5.  However I want to change the file name to be more generic, e.g., description in LR5 references LR5 and I want to change that to just John G's LR Catalog/Library.lrcat.  How can I accomplish this without fouling everything up?

    Ok, well you'll need to do something like this. Now this part is a little dependent on your database server:
           try {
                Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                Connection c = DriverManager.getConnection(
                                                           "jdbc:mysql://{database-server}/{database-name}:3306?user={username}&password={password}");
                Statement Stmt = c.createStatement();
                int count = Stmt.executeUpdate(cmd);
                if(count>0) {
                     System.out.println("count: " + count);
            } catch (Exception e) {
                e.printStackTrace();
        }That was some sample code for a MySQL database.
    Note that the applet can only contact the server that is was loaded from, so you might want to do a getCodeBase() or something like that to get the server address.
    Hope this is helpful.

  • Today I updated the OX Maverisk. It turns out that the three finger gesture in the finder( go back and forward) is disabled. How can I get this function back? I love it so much!!!

    Today I updated the OX Maverisk. It turns out that the three finger gesture in the finder( go back and forward) is disabled. How can I get this function back? I love it so much!

    Try System Preferences/Trackpad/More Gestures.

  • How can I get this function to fire off last?

    In the following code, there are two buttons on the stage- "button1" and "button2". 
    I want to get the buttons to change frames and THEN have the "playerChange" function fire off.
    Currently, the "playerChange" function fires first. Moving the function  either renders the code inoperable or
    returns error messages.
    function buttonChange (e:MouseEvent)
    {if    
                    (e.target.currentFrame == "frame1" )
             if (e.target==button1) (playerChange)
                     (e.target.gotoAndStop(player.currentFrame + 1)) 
               else{player.gotoAndStop(player.currentFrame)
              if (e.target==button2)  (playerChange) 
                    (e.target.gotoAndStop(player.currentFrame + 1))
              else{player2.gotoAndStop(player2.currentFrame)
    button1.addEventListener(MouseEvent.CLICK,buttonChange );
    button2.addEventListener(MouseEvent.CLICK,buttonChange);
    Note:this is an abridged version of the code. The code I'm actually using uses 20 buttons and about 8 conditionals for each button, so e.target is more convenient than writing a command for each button.

A: How can I get this function to fire off last?

the code is very hard to understand
it's badly formatted
{}'s don't match
you aren't calling a playerChange function
this is my guess at something that might work for you
function buttonChange (e:MouseEvent)
          if(e.target.currentFrame == "frame1" )
                    if (e.target == button1)
                              e.target.gotoAndStop(player.currentFrame + 1);
                              playerChange();
                    else
                              player.gotoAndStop(player.currentFrame);
                              if (e.target == button2)
                                        e.target.gotoAndStop(player.currentFrame + 1);
                                        playerChange();
                              else
                                        player2.gotoAndStop(player2.currentFrame)
button1.addEventListener(MouseEvent.CLICK,buttonChange );
button2.addEventListener(MouseEvent.CLICK, buttonChange);

the code is very hard to understand
it's badly formatted
{}'s don't match
you aren't calling a playerChange function
this is my guess at something that might work for you
function buttonChange (e:MouseEvent)
          if(e.target.currentFrame == "frame1" )
                    if (e.target == button1)
                              e.target.gotoAndStop(player.currentFrame + 1);
                              playerChange();
                    else
                              player.gotoAndStop(player.currentFrame);
                              if (e.target == button2)
                                        e.target.gotoAndStop(player.currentFrame + 1);
                                        playerChange();
                              else
                                        player2.gotoAndStop(player2.currentFrame)
button1.addEventListener(MouseEvent.CLICK,buttonChange );
button2.addEventListener(MouseEvent.CLICK, buttonChange);

  • HT201303 On Itune, my library deemd this new computer as needing to be authorized. How can I accomplish this

    On itunes, it says that my computer needs to be authorized. This is a new coputer am-nd uses microsoft 8.How can i accomplish this?

    " I have been in the preferences extensively and i keep updating it to go to to new location"
    Apple does a poor job of documenting/explaining this setting - the iTunes Media folder location setting in Edit > Preferences > Advanced doesn't tell iTunes where to find the content of your library.  Rather, this determines where iTunes will put new content when you add it.  Current locations are held within the iTunes database (the iTunes Library.itl file).  As tt2 says, if you hold down SHIFT while starting iTunes and when you get this prompt:
    click on Choose Library..., navigate to your D: drive and select the iTunes Library.itl file that should be there.  Ideally you should have copied everything to D:\iTunes with this structure:

  • I've installed the Adobe Reader Plug In. Yet every time I click to see a PDF, it opens another browser and it is blank. The Browser reads about:blank. How can I fix this so that PDF's open in the browser?

    I've installed the Adobe Reader Plug In. Yet every time I click to see a PDF, it opens another browser and it is blank. The Browser reads about:blank. How can I fix this so that PDF's open in the browser?

    Check your settings in Options > Applications: https://support.mozilla.com/en-US/kb/Opening%20PDF%20files%20within%20Firefox#w_check-firefox-settings
    Also see:
    *https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox
    *http://kb.mozillazine.org/File_types_and_download_actions
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

  • How can i use this  function module

    Hai
    How can i use this function module /SAPHT/SALES_ORDER_READ, already apply the some parameters in this function module, but it shows the error , please tell me, how to declare the parameters in this function module ,
    thanks
    neelima

    Hi
    For a particular sales order,you have to pass the order number and the item number in the sales order.
    It will display the rest of the values which u can capture them using internal tables.
    Regards,
    Vishwa.

  • I'm new to Photoshop Elements and just getting started.  While in the organizer I have one group of photos up to learn with and now it says Edit in Progress with a padlock icon.  How can I remove this so that the photos will be restored to normal?

    I'm new to Photoshop Elements and just getting started.  While in the organizer I have one group of photos up to learn with and now it says Edit in Progress with a padlock icon.  How can I remove this so that the photos will be restored to normal?

    Go back to the editor and close the photo there.

  • Nobody get back to me on my other question, so I'm going to try again. I am making a PowerPoint for a meeting and I want to take a 3D PDF and have it spin or rotate on a continuous loop. How can I accomplish this?

    Nobody get back to me on my other question, so I'm going to try again. I am making a PowerPoint for a meeting and I want to take a 3D PDF and have it spin or rotate on a continuous loop. How can I accomplish this?

    Please ignore PowerPoint comment, I can make the 3D PDF no problem with my converter plug-in for AutoCAD. Once it is made though you can spin it by hand/mouse in Adobe. but I want a video like scene with the object spinning by itself for modeling purposes?

  • All photos in portrait format are displayed blurred in the preview mode "fill" of the library. In all other modes e.g. "fit"or "1:2" the photos are sharp. How can I change this, so that the photos are still sharp when displaying them in the mode "fill"?

    All photos in portrait format are displayed blurred in the preview mode "fill" of the library. In all other modes e.g. "fit"or "1:2" the photos are sharp. How can I change this, so that the photos are still sharp when displaying them in the mode "fill"? My Lightroom release is 5.7.1.
    Thanking you in anticipation!

    I'd like to get all these '-1 suffix' files together with their associated Develop adjustments into one folder (if they aren't already) so I can see them in Grid view in the Library module, which I use as my basic starting point for everything else at this early stage of my Lightroom 'career'.
    To see what folder these are stored in, right-click on a photo and select "Go to Folder in Library".
    Advice: if you are going to use Lightroom effectively, you probably want to stop using folders as your method to create a grouping of photos that are already in Lightroom; there are plenty of built-in tools, such as keywords, collections, color labels, etc.
    I don't understand why the search on the entire catalog picked up apparently the same two file versions but also got the Develop adjustments when going to the relevant Folder didn't show the adjustment black squares against each image in Grid view nor were they there when the images were opened in the Develop module.  Perhaps if I understood this, I'd be a bit more confident of moving forward myself.
    These are most likely different versions of the same photo, in different folders. Lightroom stores the edits in its own catalog, and so it knows that one folder's photos have edits, and the other folder's photos do not have edits. Please understand that Lightroom is a database, it knows where the photos are at the time you import them (or add them to the catalog by synchronize), and then if you move things around in your operating system, Lightroom does not know anything about that and problems begin. Thus the advice to organize using Lightroom tools and methods and not operating system tools and methods.

  • I can't trasfer music from my library in itunes to my iphone 3GS. A black ring with a line through it comes up when i try to move music onto my iphone from itunes. How can I fix this so that I can load my phone with music?

    I can't trasfer music from my library in itunes to my iphone 3GS. A black ring with a line through it comes up when i try to move music onto my iphone from itunes. How can I fix this so that I can load my phone with music?

    How are you trying to transfer it and what are your setting on iTunes.  I'm not on a computer that has iTunes at the moment so I'm going from memory and similar issue.  If iTunes is set to sync music then I don't think you can select and drag, if set to manual manage music then you can.  Also make sure you are dragging to music on the iPhone.
    Hope this helps

  • Everytime that I sign on FaceTime on my macbook pro, it says "the server encountered an error processing registration. Please try again later". How can I fix this so that I can use facetime again

    Everytime that I sign on FaceTime on my macbook pro, it says "the server encountered an error processing registration. Please try again later". How can I fix this so that I can use facetime again

    Not a solution, but was able to login at work.   Then when I got back to the hotel all was fine and it works now.  Just will not change IDs I guess.  

  • I want to upgrade my account to include illustrator but do not want to pay full price for both photoshop and illustrator.  How can I accomplish this?

    I want to upgrade my account to include illustrator but do not want to pay full price for both photoshop and illustrator.  How can I accomplish this?

    Photography plan is $9.99 and any added single subscription is $19.99
    Cloud Plans https://creative.adobe.com/plans

  • HT5454 I'm in an educational environment.  New student computers have ARD installed.  We don't want them to use the administration features of ARD but to be clients only.  How can I accomplish this?

    I'm in an educational environment.  New student computers have ARD installed.  We don't want them to use the administration features of ARD but to be clients only.  How can I accomplish this?

    Unless you installed the ARD administration application on the computers yourselves, all they'll have is the client. The ARD admin app is not included with Macs; it must be purchased from the Mac App Store. If you did for some reason install the ARD admin app, just remove it.
    Regards.

  • Maybe you are looking for