How to start a Servlet on the Startup of my application

          Hai al,
          I have an requirtment abt an application on which i need to start a servlet
          when my application starts. i am blank abt how to do this. can any body help me
          to do ths. Please mention the steps involved in doing this.
          Cheers
          Senthil Kumar M Rangaswamy
          

In web.xml deployment descriptor, specify <servlet><load-on-startup>1</load-on-startup></servlet>
element.
thanks,
Deepak
"Senthil Kumar M Rangaswamy" <[email protected]> wrote:
>
Hai all,
I have a requirment in my application, that i need to start a servlet
(automatically)
when i start my application, am blank in how to do ths can any body help
me to
achive ths. waitiing for a ur replys.
cheers
Senthil kumar MR

Similar Messages

  • How do you free space on the startup disk

    how do you free space on the startup disk

    If your disk is 80% full that is normal.  Time Machine uses up to 80% of the disk space for local snapshots.  To get rid of these snapshots simply plug in your Time Machine backup drive and run a backup. 
    If you have less than 20% disk space then it is time to roll up your sleeves and search for what you can delete and what you can offload to another disk.
    If you have less than 10 GB you definitely need to delete or offload some files.  You may want to maintain at least 20 GB of free space so when your disk starts filling again it will have some room before it hits that 10 GB mark again.  More headroom is better.  If you let the space fall much below 9 GB you might not be able to boot your machine.
    Initial easy steps to gain disk space:
    - Delete all files in the Downloads folder.
    - Empty the trash.
    - Start iPhoto, empty its trash and restart the computer.
    Deleting files:
    Run a Time Machine (or other) backup since you are about to delete and move files and you may need to recover from any inadvertent mistakes or decisions.  You will need one external hard drive for your Time Machine (or other) backup and a second one onto which you will offload some files.
    Then use the free application OmniDiskSweeper http://www.omnigroup.com/more to explore your volume in descending order by size so you can attack the problem from the top down, deleting the largest unwanted files first.  Delete with caution and do not delete any system files.  Remember to empty the trash after trashing the files.
    Moving files:
    Consider moving some of the no-often-used large files or directories to an external disk.  Use ODS again to find them. 
    As noted above this will be at least your second hard drive.  Your first one(s) is/are for your Time Machine (or other) backup(s).  Do not offload files onto a Time Machine disk.
    Format the second drive as Mac OS Extended (journaled).  Using OWS to find large files/folders and copy them from the system drive to the external hard drive and delete them from your internal drive.
    Then  > System Preferences > Time Machine > Options… > Remove the offload HD name from the exclusions list.
    Now both your system disk and your external offload disk will be backed up onto your Time Machine disk.
    For more about backups:
    Time Machine Basics: http://support.apple.com/kb/ht1427
    Most commonly used backup methods:
    https://discussions.apple.com/docs/DOC-3045
    Methodology to protect your data.  Backups vs. Archives.  Long-term data protection:
    https://discussions.apple.com/docs/DOC-6031
    From: http://www.thexlab.com/faqs/freeingspace.html
    To move your iTunes Music folder to another disk or partition:
    To change the location of your iTunes Music folder, carefully follow the instructions in the AppleCare® Knowledge Base document "iTunes for Mac: Moving your iTunes Music folder."Additional information can be found in iTunes Help.
    http://webcache.googleusercontent.com/search?q=cache:http://www.thexlab.com/105/ 00000849.html
    Laptop users may want to consider having two iTunes libraries: a small library of current favorites on their computer, while their complete library resides on an external hard drive. Utilities like iTunes Library Manager enable you to easily have multiple iTunes libraries you can use with your account.  https://www.macupdate.com/app/mac/7689/itunes-library-manager
    To move your iPhoto Library folder to another disk or partition:
    To move the iPhoto Library folder to a new location, employ the instructions in the AppleCare Knowledge Base document from http://support.apple.com/kb/PH2506 corresponding to the version of iPhoto you are using. Additional information can be found in iPhoto Help.
    Laptop users may want to consider having two iPhoto libraries: a small library of current, favorite photographs on their computer, while their complete library, or archives of older photos are saved on an external hard drive. Utilities such as iPhoto Buddy and iPhoto Library Managerenable you to have multiple iPhoto libraries that you can use with your account.
    https://www.macupdate.com/app/mac/12175/iphoto-buddy
    https://www.macupdate.com/app/mac/7158/iphoto-library-manager

  • How do I delete files on the startup disc on a macbook pro

    How do i delete files on the startup dics to make room to download itunes and such on my macbook pro

    Move items you don't need on it, such as the iTunes and iPhoto libraries, to another drive, verify they work in the new location, and then delete them from the internal drive. If you don't need something at all, drag it to the Trash and empty it.
    (92026)

  • HT201364 How can I reduce space on the startup disc to enable the download of Mavericks?

    How can I reduce space on the startup disc to enable the download of Mavericks?  I have enough overall disc space but the update won't download and tells me to reduce "startup" disc space.

      I have enough overall disc space but the update won't download and tells me to reduce "startup" disc space.
    How much free space do you have?
    This warning usually indicates, that your free disk space is critically low.
    Empty you Trash, delete files that you do not need at all, and move large media files, like iPhoto libraries or videos to an external drive.

  • How to start Integration server with the user XISUPER

    Hi,
    How to start Integration server with the user XISUPER?
    Regards,

    Mahesh,
    In the post installation document, under Creating User XISUPER,
    I see the following,
    1.You must now log on to the Integration server host with the user XISUPER, to switch the initial password to a valid password.
    2.You must restart the J2EE engine to transfer the user creation to the J2EE immediately.
    I am unable to proceed here.Can you please help me to resume the post installation steps ?
    Thanks,

  • How to start a thread after the execution/termination of another thread.???

    Hello,
    How to start a thread after the execution/termination of another thread....???
    For example:
    consider two threads: ThreadA and ThreadB
    I could start the ThreadB after the execution of ThreadA.
    How to identify the termination of one thread.....???
    Please help me...
    Thanks & Regards,
    Kayalvizhi

    What do you mean with "it doesn't work"? Do you get a compiler error? Do you get an exception at runtime? What's the error message?
    Jesper

  • How to start Flash Media Encoder 3.2 from Flex application with run time parameters?

    Hello ,
    I'm developing the application to stream High Quality video.While streming by default camera/microphone settings the qulaity of streaming is not upto my expected level.I want to stream through Flash Media Encoder.My aim is the user login to the application.Video/audio qulaity details are retrived from shared object stored in the client machine.The login user name only gathered at run time & it will be the streaming profile name to Encoder.Once the the Encoder started the outgoing video will be come into screen to client.Please guide me How to start Flash Media Encoder 3.2 from Flex application with run time parameters(User name as  streaming name) without manually start the FME?
    Thanks in advance.
    Regards
    Sasharyuva

    Hi MarcSaphiron,
    Could you please send the samples?It will be much helpful to complete my
    job within the deadline.
    Thanks in advance.
    Regards,
    Sasharyuva

  • How to call a package from the Report in Oracle Application Express

    How to call a package from the Report in Oracle Application Express

    Hello,
    What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
    Or do you want to execute a procedure when something happens on the page, like clicking a button?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How do I get rid of the alert "(Java Scriprt Application)Type error: Text is undefined   I get it when I get a new Internet page using Firefow

    How do I get rid of the alert "(Java Scriprt Application)Type error: Text is undefined>  I get it when I get a new Internet page using Firefow

    I do not want to half to install things into my PC that i do not trust! I just want this gone and like i said Firefox should of given us the choice to add this and not forced us, because if there is no actual way to remove it then il be forced to remove Firefox till they either remove it or allow us to remove it!

  • Please i don�t know how start a servlet in the server

    I have done a servlet, it is very simple. When i try to see with the servletrunner it�s run very well.
    But i want to put it in the server (Internet Information Server), i want to see in the web. But i don�t know what i can do ???? �in the servlet? �in the server?.
    I don�t know so much of the server. I have tried to start the servlet with the servletrunner in the server, but when i try to see in the web, the page doesn�t exist.
    Please help me to configure the server and the servlet.
    Thanks

    I have seen that the JRUN is a plug-in who configure my Internet Information Server, for starting and seeing a sevlet in the web, isn�t it???
    But i don�t know where i can take and how, and is free?
    Thanks

  • How can I remove files from the startup disk

    I am getting a screen when I am trying to quit saying   the "MAC OS X startup disk has no more space available for application memory"  by closing the windows and removing files from the startup disk will help.
    How do I do this?

    That error message is misleading. Your problem is excessive swapping of data between physical memory and virtual memory.
    That can happen for two reasons:
    You have a long-running process with a memory leak (i.e., a bug), or
    You don't have enough memory installed for your usage pattern.
    Tracking down a memory leak can be difficult, and it may come down to a process of elimination.
    In the Activity Monitor application, select All Processes from the menu in the toolbar, if not already selected. Click the heading of the  Real Mem column in the process table twice to sort the table with the highest value at the top. If you don't see that column, select
    View ▹ Columns ▹ Real Memory
    from the menu bar.
    If one process (excluding "kernel_task") is using much more memory than all the others, that could be an indication of a leak. A better indication would be a process that continually grabs more and more real memory over time without ever releasing it. Here is an example of how it's done.
    The process named "Safari Web Content" renders web pages for Safari and other applications. It uses a lot of memory and may leak if certain Safari extensions or third-party web plugins are installed. Consider it a prime suspect.
    If you don't have an obvious memory leak, your options are to install more memory (if possible) or to run fewer programs simultaneously.
    The next suggestion is only for users familiar with the shell. For a more precise, but potentially misleading, test, run the following command: 
    sudo leaks -nocontext -nostacks process | grep total
    where process is the name of a process you suspect of leaking memory. Almost every process will leak some memory; the question is how much, and especially how much the leak increases with time. I can’t be more specific. See the leaks(1) man page and the Apple developer documentation for details.

  • How to start two threads at the same time

    Hi there,
      I want to include multithreading in the CVI program. I have two tasks which has no dependence between them, so I would like to start two threads for perform the tasks. I follow the introduction http://www.ni.com/white-paper/3663/en/ to start my code. In my code, I add a command button, when it is pressed, I create two threads to perform the tasks. In each task, I have a big loop and in each iteration, I use ProcessSystemEvents to avoid no response on system message. But it doesn't work actually, the program suspended. I wonder must I initialize the threads in main. I am looking for a way to start the threads in the callback function for a button since I am not starting those threads at the beginning but while it is triggered.
    the main frame of the code looks
    int CVICALLBACK Test1(void *functionData)
    { int i=0;
    for (i = 0; i<100000; i++) {ProcessSystemEvents();}
    return 0;
    int CVICALLBACK Test2(void *functionData)
    int i = 0;
    for (i = 0; i<100000; i++) {ProcessSystemEvents();}
    return 0;
    int CVICALLBACK cmdcb(int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
    { int threadID1, threadID2;
    if (event==EVENT_COMMIT)
    SetPanelAttribute(panelHandle, ATTR_DIMMED, 1);
    CmtScheduleThreadPoolFunction(DEFAULT_THREAD_POOL_HANDLE, Test1, NULL, &threadID1);
    CmtScheduleThreadPoolFunction(DEFAULT_THREAD_POOL_HANDLE, Test2, NULL, &threadID2);
    CmtWaitForThreadPoolFunctionCompletion (DEFAULT_THREAD_POOL_HANDLE, threadID1, 0);
    CmtWaitForThreadPoolFunctionCompletion (DEFAULT_THREAD_POOL_HANDLE, threadID2, 0);
    return 0;
    Attachments:
    TestThread.zip ‏239 KB

    In my opinion your threads may be simply lasting longer than expected due to an incorrect sleep policy of threads paired with with ProcessSystemEvents () in the loop.
    I made up a quick example that shows this behaviour: playing with "Do not sleep" and "Call ProcessSystemEvents" options you can see how threads execute.
    BTW: do not forget to release the thread function IDs at the end of functions.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?
    Attachments:
    thread.zip ‏7 KB

  • How to fix this error? The startup disk cannot be partitioned or restored to a single partition.

    Hey guys,
         I am trying to install windows 7 ultimate 64 bit via bootcamp assistant. I open bootcamp assistant from utilities and i get the second window and try to click continue and i get a pop up, saying "The startup disk must be formatted as a single Mac OS Extneded (journaled) volume or already partitioned by Boot Camp Assistant for installing Windows." I looked around on the internet, i found that my internal HD must be set to OS Extended (Journaled). I went into disk utility and i clicked partition tab and the option was set to OS extended (journaled). Any ideas on how to overcome this error so i can install windows 7?

    Error is:
    1: common
    2: misleading and poorly worded
    3: space must be:
    A: contiguous, that means unfragmented and in ONE section, not multiple
    B: files cannot be loced, anchored or in such a manner as to prevent or block partition operation
    C: to move, unlock and shuffle files requires booting from another drive or device
    Shrink the HFS+ volume by as much or more than you need to set aside to use
    If that does not,
    Try iDefrag from another hard drive or by burning and using its own CD that is just for consolidating free space
    Clone your system (should have backups already, clone is just bootable)
    Erase and restore from clone - SuperDuper does consolidate files and free space and result in unfragmented (99% success rate)
    None of which has to do iwth what that error message says. This error has been almost a daily threat topic - has gotten less but has not "gone away."

  • How to invoke a servlet from the command line

    Hi,
    I have a process that needs to do something remotely. One of the ideas is to have a servlet on the other side that can do that. So the question is how can I invoke it from my process?
    Thanks,

    First approximation to code:URL remoteTask = new URL("http://yourserver.org/yourservlet");
    InputStream response = remoteTask.openStream();
    // read the servlet's response from that InputStreamYou will find more comprehensive versions of this code if you search the forum.

  • How to put  jsp/servlets on the oc4j and view them with browser

    I have no experience with it.
    perhaps with: localhost:8888/ ???
    witch xml-files must I configure??
    thank you

    I m new in jboss application server with myeclipse plateform.
    im unable to solve this error.which are occured doring the starting of server in my eclipse.
    How to compile jsp project on the plateform of Myeclipse and jboss
    hi :-) this is not eclipse forum and not that sure about your problem but i'll try to answer :-)
    i'm not sure how you create your war but there something wrong with your web.xml. kindly check it :-)
    by d way, you can deploy your project in my-eclipse by
    - right click on the project then select my-eclipse > Add and Remove Project Deployment's
    - a new window will open and you can now configure how you deploy your project :-)
    other alternative edit your jboss-service.xml then put something like this
    <attribute name="URLs">deploy/, file:/D:/workspace/deploy</attribute>
    (note, change the path according to your needs)
    regards,

Maybe you are looking for

  • Variable conversion in BEx Web 3.5 after EHP1 Update

    Hello experts, we have a problem after updating to ehp1 with a 3.5 web query. When we enter in the variable screen for the characteristic variable of fiscal year "0032010" then the bi clears that field. Without ehp1 the system replaces "00332010" wit

  • JS how to access objects created by plugins?

    say if a textframe was created by a third party InDesign plugin. How should one access and modify this "textframe" property using JS? Thanks in advance.

  • E90 Greek Language Characters

    Have bought my E90 from Switzerland as in Greece as waiting after an order for more than 4 months.....?????!!!!!!! The problem is that it was set without Greek language .... How can I update to include my language as well. Thx otpkma

  • How to delete locked files on pen drive

    I have a pen drive which has 2 partitions and there is no problem with one partition.  Other partition shows itself as "CDROM" and none of the files in that partition could be deleted.  There is no option to format the entire pen drive also.  Even if

  • Tolerance Limit for Price Variance (Purchase Order)

    Hello, Business Case : Final users require a specific tolerance limit rate for Price variance in Freight services POs. We have a current rate set up at Company level --> standard customizing (MM / Purchasing / Purchase order / Set tolerance limit for