Automatic Start of "Services" in J2EE

Hi,
I'm a complete novice in J2EE and have some questions.
I'm looking into using J2EE for supervising some "devices".
They will send "heart-beat"s back to the J2EE server to tell their alive, and I need to take actions in the J2EE server if heartbeats are missing.
1) I would like a "Service" monitoring that all devices are alive and sending "heart beats" to start automatically when the J2EE server starts. How can I start such a service in J2EE?
2) I want to minimize network impact of these heartbeats and I'm thinking about using raw UDP (or alternatively TCP). Does anyone know how I can open a UDP port and listen for incoming packets?
Thanks.

What you are probably looking for is may be turning your devices into SNMP agents that could send traps to an SNMP server that could take whatever appropriate action upon receival of the trap, one such action could be sending a message to a JMS queue on your J2EE application server.

Similar Messages

  • Automatic Start of J2EE services

    Hi
    I am trying to configure J2EE services to start automatically after boot in Windows 2000.
    Most of SAP* services in "services mananagment" are already configured to startup automatically, including SAPDB (this wasn't the default).
    I started manually via MMC and checked 'services managment' but I did not find any obvious service that were stopped and became running.
    What is the trick?
    Regards.

    Hi Ronaldo,
    you mean to configure the J2EE Engine to start automatically, right? To do that, set the value of the Autostart parameter to 1 in both profiles START_<InstanceID>_<host> and START_<Central instanceID>_<host> under \usr\sap\<SID>\SYS\profile directory. Then the J2EE Engine will be automatically started when windows boots.
    Regards,
    Ivo

  • How may I automatically stop and start Mail services at a set time please

    Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
    Cheers, David ( a realy newbie when it comes to administering OS X server)

    launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
    So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
    /Library/LaunchDaemons/local.postfix.stop.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.stop</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>stop</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>1</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    and /Library/LaunchDaemons/local.postfix.start.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.start</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>start</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>4</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
    I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down?

  • Reporting Services not automatically starting. System event log 7009, Application event: 18456

    For the past month (since Oct 11,2012)  reporting services (SSRS 2008R2) is not starting after the server is rebooted. The service is set to automatically start and starts manually without a problem.  The system event log contains the following error:
    Event ID 7009: A timeout was reached (30000 milliseconds) while waiting for the SQL Server Reporting Services (MSSQLSERVER) service to connect.
    SQL logs :
    The SQL logs has many "Event 18456 Login Failed, State 38" errors when the database engine starts. I assume clients conections are failing because the databases  aren't online yet. None of these 18456 errors coorespond to the account reporting services
    runs under.
    The SQL logs indication Event 7009 occures before the "ReportingServer" database is online so im assuming there is a dependancy but I don't know how to avoid this.
    This problem is occuring on a number of our servers running SSRS (if not all)
    Any ideas?
    Paul

    Hi A141695,
    For Event ID 7009, you can try to do the steps below to resolve it.
        1. Click Start, click Run, type regedit, and then click OK.
        2. Locate and then click the following registry subkey:
            HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
        3. Right-click Control, point to New, and then click DWORD Value.
        4. In the New Value #1 box, type ServicesPipeTimeout, and then press ENTER.
        5. Right-click ServicesPipeTimeout, and then click Modify.
        6. Click Decimal, type the number of milliseconds that you want to wait until the service times out, and then click OK.
    For example, to wait 60 seconds before the service times out, type 60000.
    Quit Registry Editor, and then restart the computer. For more information about it, please see:
    http://www.sqlservercentral.com/Forums/Topic850540-1550-1.aspx#bm851211
    http://myitforum.com/myitforumwp/2012/08/22/configmgr-2012-sms_srs_reporting_point-component-failure/
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.

  • Webdynpro application automatic start after j2ee startup

    Hi ,
    Is there a way to automatically start any specific webdynpro applications after j2ee startup
    Oren

    I guess you can write batch file for that.
    Example
    suppose you have a bat file which starts J2EE engine, startJ2EE.
    You can write a new bat file with following commands.
    startJ2EE.bat
    explorer http://<server>:<port>/webdynpro/<URL as application>
    Let me know if you need more help
    Ashutosh

  • ADFS 2.0 service does not automatically start after reboot

    Hello,
    We have two ADFS 2.0 servers in a farm.  Any time these servers reboot, the ADFS service does not automatically start, even though the service is set to auto start.  If I manually start the service it starts within 10 seconds.
    The error in the logs show:
    A timeout was reached (30000 milliseconds) while waiting for the AD FS 2.0 Windows Service service to connect.
    The AD FS 2.0 Windows Service service failed to start due to the following error:
    The service did not respond to the start or control request in a timely fashion.
    But after the reboot is completed, I can manually start the service with no problems.  Again, this ONLY happens on restart.  I've searched the forums and found potential solutions for people who have consistent issues with starting ADFS every time.
    Any ideas?

    UPDATE - I built a 3rd ADFS server and was unable to reproduce the problem, until...
    I went in to the service properties of ADFS and saw that even though I specified a Log On As account during the ADFS wizard, it changed itself back to "Network Service".  I re-entered our ADFS service account username and password, it was
    accepted, and I rebooted.  On the next reboot, the service did not start automatically (with the same errors as the other ADFS servers), but I was able to manually start it.
    I then went to the original ADFS server having the problem, switched it to use "Network Service", rebooted, and the service started up properly on reboot.  I then changed it back to the named domain service account, and the issue came right
    back.  There are no other errors in the System Log indicating a problem with anything else.
    So my guess is that something is happening to prevent the service from starting with the named Domain account on server reboot.  But what?

  • Starting rio service automatically

    Hai all,
    I have an application where i download the FPGA directly from the host pc (RIO version 3.0).  When i install the exe in a new system the problem am facing is that, RIO service doesnt start automatically and i need to start it manually by myself.  Is there a way to launch this service from LabVIEW.  Please help me out coz its not great to advice the customer to start the service when he installs it.
    Thanks for all help,
    JK
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

    JK1,
    You really only need the RIO Server running on your host PC if your intending communicate with RIO devices on the host system from other systems on the network.  For any cRIO real time controllers the RIO server is already started.  If you are wanting to communicate to RIO devices on your PC from another PC on the network your absolutely right that you'll need to either start the RIO server manually or set it to automatically start ( which you've already mentioned ).  How to do this is explained in MAX help but I put and image below just for completeness.
    So was the question really, How do I make my installer set the Service to Automatic during the install?  For this my first thought was you could have the installer run a .bat file after finishing and use a command line to set the windows setting for it, or possibly set the registry key ( if you knew it and knew what Windows version it would be installed on), some info might help here.
    Bassett
    Message Edited by Bassett Hound on 01-17-2008 10:54 AM
    Attachments:
    rioService.JPG ‏79 KB

  • How to let SOA Suite automatically start Oracle Database services if necess

    It occurs from time to time that I forget to start Oracle database services
    before I start Soa Suite. Can I somehow let SOa Suite startup script check in advance
    if Oracle database services need to be started (and start them automatically if necessary)?
    Peter

    Hi,
    This is a familiar issue. I've come up with the following solutions.
    1) On my linux machine, I start the database (EE) and soa suite at boot time using /etc/oratab.
    2) On my windows machine, I start the database (XE) at boot time, as a service that automatically starts. The soa suite is started manually. I could start the suite automatically as a service also, but because it takes up so much memory and I do not always want to run the suite, I prefer to start manually. In any way, the database is started automatically before the soa suite.
    Hope this will help you.
    Kind regards,
    H

  • Urgent! http listener not started with services

    Hi,
    I installed oracle 9i on my win2k, and it runs fine when I started manually with the ${ORA_HOME}\j2ee\Oracle9iDS\startinst.bat.
    I then try to registrate it as services with this command: rwserver -install rep_mypcname autostart=yes
    It registrated successfully and I save it is started automatically, I also saw an icon (smart agent) on my right hand bottom taskbar.
    But when I tested it via http://localhost:8888/reports/
    It can't find the server, and obviously no http listener is up.
    All my config are default, here is my rwservlet.properties:
    SERVER_IN_PROCESS=YES
    Also there is no log files generated in ${ORA_HOME}\j2ee\Oracle9iDS\log\ when it is started as service, but if it is started from command line by using "startinst.bat", some log files are generated.
    Am I missing some steps?
    Thanks.
    David

    David,
    Script startinst.bat starts the OC4J instance, not the Reports Server. When you send request to http://<server>:<port>/reports/rwservlet, it will startup an in-process Reports Server if it has not been started.
    The command you run:
    rwserver -install rep_mypcname autostart=yes
    only install Reports Server as a service. It has nothing to do with OC4J instance, which you will still need to startup yourself. That's why http server is not up.
    The difference is that if the Reports Server is up, after you start up OC4J, the in-process server will no longer need to be started.
    -Jeff

  • Start deployed applications when J2EE Server starts

    Hi experts,
    This is my problem.
    I've updated my Netweaver 04s Developer Workplace from SPS1 to SPS10.
    The problem I have is that when I start my J2EE Server via MMC, the applications (j2ee,ear,webdynpro,...) I deployed don't start.
    If in my Visual Administrator I go to server->services->deploy most of them are not started. I can start them manually, but that's not a solution...
    I suppose there are any possibities to set this applications to start when the server is started.
    Any ideas?
    Thanks a lot.
    Alberto.

    Hi Alberto
    If you can start the services manually w/o problems, then maybe you can try to change the startup mode to 'always' so that the service is started automatically. You should be able to check this via Configtool. Switch to the 'configuration editor' mode and go to cluster_data -> server -> cfg -> services. Look for the service and make click on the propertysheet. Usually you can modify the startup mode there.
    I hope this helps.
    Regards,
    Désiré

  • Starting Name Services by App Server

    hi,
    can someone tell me what types of name services the j2ee application
    server ri does automatically start when coming up ?
    what about the corba naming service, for instance; when i want to
    use this service i don't have to call 'orb.run()', that's done by
    the app server, am i right ? or how does this work generally ?
    any links, tutorials ?
    thanks a lot & best regards
    rivella50

    Hi,
    can someone tell me what types of name services the
    j2ee application
    server ri does automatically start when coming up ?It does start the DataSource,Naming Service(JNDI),Pooling Services,Container Services(Environment for specification based java objects),Connectors
    what about the corba naming service, for instance;
    when i want to
    use this service i don't have to call 'orb.run()',
    that's done by
    the app server, am i right ? or how does this work
    generally ?
    any links, tutorials ?I have come across the corba services in BAS only as I have not used it myself so cannot tell more about it.You can go to the borland site and get more about it.
    regards
    Vicky

  • Error in Starting the service.The Service Schedule doesnot Exist.

    when i install the Oracle 8i on Windows 2003 then
    it installed successfully and import and export data successfully wothout any Problem
    But after that when i restart the Server then
    it ask for the User name and Password BUT when i entered the User Name and Password it show's that Error
    "Error in Starting the service.
    The Service Schedule doesnot Exist."
    so please can you solve the problem ?
    My mail id is [email protected]
    Thanking you
    Vikas garg

    Hi
    i have got the answer for this question, i updated the registry with the correct file path, and then closed the registry, the services.msc file is automatically updated with the correct path
    and then started the CSService, then went to the OEM setup i clicked Retry buton, then it went through.
    Thanks to all the viewers.

  • Error in starting the service Oracle CSService not found

    Hi all,
    i am trying to install Oracle Enterprise manager grid control,
    i am getting the following error message
    "error in starting the service Oracle CSService not found"
    when i checked in the "services.msc" the Oracle CSService is not started, so i tried to start the service, but its not starting and giving the error message as "error 3 system cannot find the path specified"
    then i checked in the service properties, and the path is pointing to a different directory,
    now i want to change this path to the correct oracle bin directory.
    any views how to cnage/update this path in the services.msc, for "Oracle CSService"
    Thanks alot.

    Hi
    i have got the answer for this question, i updated the registry with the correct file path, and then closed the registry, the services.msc file is automatically updated with the correct path
    and then started the CSService, then went to the OEM setup i clicked Retry buton, then it went through.
    Thanks to all the viewers.

  • SAP system doesn't automatically start after restart (but manual start ok)

    Hi,
    We've got a new production line of SAP EP 7.0 systems, which have CI on HP-UX and DIs on windows. The version is NW2004s SPS09.
    What we see is that after a restart of the windows servers (usually because of windows patching), the SAP system doesn't automatically start up. It doesn't start up if I restart the SAP<SID>_<instance> service either. 
    However, I've got no problem starting the system with the MMC.
    Any idea what I am missing here? is it as simple as a profile parameter ?
    As far as I can see the profile used seem ok.
    After a restart of the windows server the following files have log entries in the c:\usr\sap\<SID>\J<instance>\work folder
    sapstartsrv.log
    trc file: "sapstartsrv.log", trc level: 0, release: "700"
    Fri Nov 17 15:51:26 2006
    <<- ERROR: SapSSLInit(read_profile=1)==SSSLERR_LIB_NOT_FOUND
    sapstart.log
    Starting WebService thread
    SapSSLInit failed => https support disabled
    Webservice named pipe thread started, listening on port
    .\pipe\sapcontrol_97
    Webservice thread started, listening on port 59713
    sapstart.trc
    Starting WebService thread
    SapSSLInit failed => https support disabled
    Webservice named pipe thread started, listening on port
    .\pipe\sapcontrol_97
    Webservice thread started, listening on port 59713
    The windows event log have the application events
    (first)SAP Service SAP<SID>_<instance> successfully started.
    (at the same time)
    Failed to update service environment from user (STATOIL-NET\<sid>adm) environment. [ntservmgr.cpp 201]
    (note that this doesn't happen for all systems which have this problem, for other there is no entry like this)
    I see no failed login attemps in the security event log, but see the that a login is performed for SAPService<SID>.
    Since it also fails to automatically startup when I restart the service, I am able to use filemon to see what happens at a file level. Here I see that it can access the shared file system without any problems, and can read the profile and everything.
    MOM is running on the server and gets some Access denied errors since it doesn't have access to the shared file system, but I don't think that matters.
    Cheers
    Dagfinn

    hi  we are using sap bw 3.5 . database is oracle 9i
    i applied a kernel patch and when i tried to start the services . there was no problem with the oracle services  and saposcol but the service sap<sid>_nr did not start .
    when i went to check the error in work folder ..
    it say " SapSSLinit failed => https support disabled  .
    then i tried to start sap from cmd pmt . din`t work .
    is there a way to statrt this ...
    thanks alot.
    arjun

  • How do I format a document in Pages 5.2 so that each sentence automatically starts with capital letter?

    How do I format a document in Pages 5.2 so that each sentence automatically starts with capital letter?

    If you installed the Devon Technologies (Freeware) WordService Service package, there is an item that will enable you to fix selected content to show initial capitals in sentences. You may need to enable this feature in the System Preferences > Keyboard > Shortcuts > Services selections. This only works in Pages v5.2 (and maybe later releases).

Maybe you are looking for

  • Adobe Audition installation problem

    Hi there, As soon as i go to start the installation of Adobe Audition i get this error: Access violation at address 00000000. Read of address 0000000. Any ideas why this is coming up? After that it wont let me go ahead with the installation at all! i

  • Exclude customers from payment run F110

    Hello, I have a question for exclusions in transaction code F110 (Automatic Payment Transactions). We have 2 different payment methods for Direct Debit (D) and Direct Debit SEPA (F). When we select payment method D or F, we get a very large log file,

  • Help I cant update the 2014 security. I keep getting error code 102

    My computor has updates that I cant get to update. itunes 11.2.2 and security update 2014-002 1.0. I have tryed many times but I keep getting error code 102. does anyone know what is happening?

  • Mapviewer demo v good - are you willing share the cartographic design?

    This mapviewer demo is good and has good cartographic design at most levels http://elocation.oracle.com/elocation/ajax/ We are building a Mapviewer applications with the same base map data in Australia. Rather than re-inventing the wheel would the cu

  • Cost analysis in COR3

    Hi:            I have a query regrading Cost analysis for finished goods in COR3, before saving order is make sure that costs have been calculated. I understand that these cost for RM/SFG is taken from price control indicator in MM based on MAP and s