RFCEXEC running as a windows service

Hello,
   Is it possible to run rfcexec.exe from the RFC SDK as a Windows service (other than being launched by srvany.exe, for example) ? Thanks in advance for your input.
Peter DOUGHERTY

If you have Visual studio installed, create a windows service project with all the parameters, see the following example:
Shell (rfcexec.exe -a  XXXXXX  -g xxxxx -x sapgw01)
Compile it as exe file.
use SAP provided ntscmgr program to register this as a windows service.
This is working great in my environment.
Thanks,

Similar Messages

  • How do you create a program in Labview that can be run as a Windows Service?

    I would like to create a Labview program that can be run as a Windows service.  I have read the following Knowlegebase articles and have done what they say. 
    Creating a Windows NT Service Using LabVIEW http://www.ni.com/white-paper/3185/en 
    Running a LabVIEW Application as a Windows NT/2000/XP/Server 2008/7  User-Defined Service http://digital.ni.com/public.nsf/allkb/21BA0F671A63A60386256CB4004DF99B
    When trying to start the service I get an error that says the program didn't respond to the start in a timely manner.  I also set the "run when opened" parameter in the VI.  I am programming in Labivew 2010, proffesional version.  The server is running Windows Server 2008.  Can anyone help?  Is the ini file important in Windows Server 2008?

    I haven't looked through all those links.  But I have created Windows Services from LabVIEW executables way back when WinXP came on the market.
    The problem with services is that they have no UI.  So you can't really see what is going on.  Your EXE might be failing or hanging due to some kind of error (most liklely a security/permissions error), but you can't see the error.  So my advice is to either:
    1.  Have your EXE write lots of info to a log file.  Write info that log every step in the application.  If an error ocurrs, have it write the error info to the log file.  That is a very useful debugging tool.
    2.  Use VI Server functions to monitor the service to see what is going on. 

  • Recommendations for configuring DSEE 6.3.1 to run as a Windows service?

    Hi All, I need some recommendations for configuring DSEE to run as a Windows service. Currently I have CACAO, DSCC, and the Web Console configured and running as Windows services and this works fine. I would like to configure the directory itself to run as a Windows service so that it will restart automatically if the server reboots for any reason. Using dsadm enable-service --type WIN_SERVICE I configured this but initial testing indicated that the service will fail to start automatically on reboot. I can start it manually once the server is rebooted. This appears to indicate a dependancy of some sort with one of the other services like CACAO or DSCC but I did not see any documentation on this. Does anyone know the appropriate way to configure the directory to run as a Windows service? Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    There is an entry in the application-management-common-agent-container log
    [ Apr 22 09:17:52 Executing start method ("/opt/test/dsee6/cacao_2/usr/lib/cacao/lib/tools/scripts/cacao_smf start default") ]
    Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException:
    zone1: zone1
    Which was the problem. The zone was picking up a stale NIS map with the wrong hosname for its IP address.

  • Run .jar as window services.

    Hi,
    I?ve tried running .jar using batch file in window scheduler. The program will auto end if we logoff from the OS(window server 2003).
    How can we run .jar as window services, beside using Java wrapper?
    Most window wrapper need license to execute. I will like to deploy this .jar as window services in our customer side.

    You have to chose the option while creating the task as "When my computer starts", this will work as soon system boots up and until the task is explicity stopped later. This works independent of user logging into the computer; as soon the machine boots up to windows.
    If you choose "When I login" during task scheduling, the task becomes active as log as you have logged on to that desktop.
    Hope this helps.

  • App Server 8.0, run as a Windows service?

    I am running Sun Java System Application Server 8 (Platform Edition) on Windows XP.
    I want to run the app server as a Windows service.
    How can I do this?
    I looked at Sun's documentation. I could not find any information about using the app server as a Windows service.

    Some details:
    The server is started/stoped by a batch asadmin, which collect some parameters and use a java class to instantiate/stop the server. The server process then forks and will be an independent one. Moreover, the App Server is dependent of Sun Message Queue, another service it will start. This other service is called by an exe that will initiate another java process to implement this service. You end up with three process: the java process of the App Server, an exe which controls the JMS service and another java process for the JMS. The Sun Message Queue can be installed as a Windows Service itself, see the docs. App Server 7 seemed to connect cleanly to a running instance of JMS (started either as service or from console), but App Server 8 seems to require its own. I write this in a hurry and it is still an unsolved problem for me (us?), sorry.

  • How to run application as Windows Service

    I have developed an appl using Java Swing. I want to run the application as Windows Service. How can I do that? Along with that, I also want to start Tomcat Server as a separate Windows service. Kindly Suggest some solutino to this!!

    There is a version of Tomcat that runs as a service. (1.4 for windows?)
    As for your own app, there are several free service launchers around (Google for java service etc.) Not sure about a service with a user interface though - services are usually headless. You may have to paritiotn your app into a headless service and a user interface app which communicaes by RMI, sockets or some other RPC mechanism.

  • Different thread/memory limits when running Java via Windows Service?

    My company is developing a Java application that employs a "black-box" interface, which generates several memory-intensive threads. When we run the application via a batch file, the threads seem to run in parallel on a quad-core server. However, when we install the application as a Windows Service on the same server, it appears that we hit a hard limit of 35 threads, and the process pegs out one of the server's CPU's at 100%. Does anyone know why we don't see the parallelism when we run it as a Windows Service? Does anyone know if Windows imposes different memory or thread restrictions on services, as opposed to normal desktop applications?

    My company is developing a Java application that employs a "black-box" interface, which generates several memory-intensive threads. When we run the application via a batch file, the threads seem to run in parallel on a quad-core server. However, when we install the application as a Windows Service on the same server, it appears that we hit a hard limit of 35 threads, and the process pegs out one of the server's CPU's at 100%. Does anyone know why we don't see the parallelism when we run it as a Windows Service? Does anyone know if Windows imposes different memory or thread restrictions on services, as opposed to normal desktop applications?

  • Classic JVM hangs when running Tomcat as Windows Service

    Hi!
    I am running a Tomcat 3.2.4 application, written with Java 1.3.1_01.
    To run it as a Windows Service (W2000), I am using a slightly altered version of JavaService, which works fine so far: I can use both the "hotspot" and the "server" JVM's (by selecting the jvm.dll from the respective subfolder of the JDK/jre/bin folder).
    However, when I try to run the same application with the "classic" JVM, the service starts, inside of it Tomcat starts, the first output appears (to the stdout logfile) and after some time Tomcat simply hangs - it doesn't respond to anything anymore, 0% CPU, no output to logfiles anymore, doesn't even respond to normal Tomcat shutdown (e.g. when stopping the service, Windows waits the standard timeout then just kills it).
    Using the classic JVM in a console (e.g. not through JavaService and the classic/jvm.dll) works fine! No problems!
    Anyone here who can offer any help on this?
    Any hints why Tomcat may behave correctly in 5 out of six possible configurations (hotspot-server/client as service or console or classic as console) but hanging with 1 configuration (classic as service)?
    Also, on my W2000 box where this happens, the moment Tomcat hangs, I hear a Windows warning sound being played (the standard warning gong), like it happens when an info dialog pops up - only there is no dialog or whatever and the same moment Tomcat's CPU usage drops to 0% (although the app is still in startup and should do some more work for a few seconds).
    This also doesn't always happen at the same moment during startup, but each time at a different moment, e.g. I can not pin it down to something that is done during startup, it just happens a short while (sometimes earlier, sometimes later) after startup...
    Of course, I could simply say "forget classic, it's being phased out anyway", only: The SAME thing happens with IBM's Java 1.3 VM too (except for the gong sound, which seems to be Sun-JVM specific ;-)! And I would very much like my app to be able to run on IBM's VM (usually I'm using Sun's VMs everywhere, but we have a few stray W2000 boxes with SP2 where Sun's 1.3.1_0x VMs crash with our application [not hang like described above, but really crash, even when run as a console]) and on those boxes the IBM JVM in a console works fine - now I only have to get it working as a service too (and while researching why it hangs I saw that Sun's classic JVM hangs too, so I figured, I first find out why that happens, with the hope that the fix is applicable to IBM's JVM too...).
    Thanks already,
    Johannes

    re setting classpath when using JavaService
    for Win2k, Tomcat 3.3.1a, JDK1.2
    below is my script for creating/installing JavaService
    (based on Alexandria web site version). However, if i
    try to add .jar files to classpath (ie, CP environment
    variable), the service does not work. It only works
    when this single .jar file is there. How can .jar or
    .zip files be added to classpath for this service?
    I've not been working with Tomcar as a service, so can't help directly, but can offer some comments that might be of use (apologies if they aren't!).
    There are Tomcat scripts for V3.1, V3.2 and V4 with the JavaService code from Alexandria SC. Looks like you need one for V3.3 as well?
    In these others, there are fairly long lists of jar files in the classpath, so I would expect it to work correctly for the version you are using (unless there is a problem with the way that classloaders are involved, which is something that is known to get in the way for some app server-based programs).
    I would expect the classpath to work if changed from what you have listed to something like the following:
    set CP=%TOMCAT_HOME%\lib\tomcat.jar;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME$\lib\other_library.jar
    Is that what you have tried to do, and found problems?
    Does this version of Tomcat bundle all of its resources into a single jar file (tomcat.jar), or is that a file you have created yourself?
    Is the problem found when loading and starting Tomcat itself, or from within your server-based application?
    Does it fail to load a 'standard' Tomcat library archive, or a jar file containing your own program code?
    set CP=%TOMCAT_HOME%\lib\tomcat.jar
    echo %CP%
    JavaService.exe -install "Jakarta-Tomcat"
    %java_home%\jre\bin\classic\jvm.dll
    -Djava.class.path=%CP% -Dtomcat.home=%TOMCAT_HOME%
    -Djava.security.policy=%TOMCAT_HOME%/conf/tomcat.policy
    -Xms128m -Xmx128m -start
    org.apache.tomcat.startup.Main -params start -stop
    org.apache.tomcat.startup.Main -params stop -out
    %TOMCAT_HOME%\logs\stdout.log -err
    %TOMCAT_HOME%\logs\stderr.log
    Regards,
    John Rutter

  • Problem with  WebLgoic running as a Windows Service

    If you know the answer, plase send me an email at [email protected]
    I'm running a weblogic startup class that starts a Thread. I need to
    run a batch program that should be running as long as WebLogic is
    running (to process new orders).
    It works fine when I run WebLogic (5.1 SP8) from a script, but causes
    problem when I'm running it as a Windows Service. It calls the
    startup class, however, the startup class never spawns the Thread
    class.
    Following is excerpts from different components:
    =============================================================
    *** weblogic.properties ***
    weblogic.system.startupClass.pdfCreatorStart=WebLogicStartupPdfCreator
    *** WebLogicStartupPdfCreator.java ***
    public class WebLogicStartupPdfCreator implements T3StartupDef {
    public String startup(String name, Hashtable args) throws
    Exception {
    Thread t = new ProductionPdfBatchRunner();
    t.start();
    return "success";
    *** ProductionPdfBatchRunner.java ***
    public class ProductionPdfBatchRunner extends Thread {
    public void run() {
    try {
    //work being done here
    this.sleep(30000);
    catch (InterruptedException ie) {               
    catch(Exception e) {
    e.printStackTrace();
    =============================================================
    Thanks for any help

    Hi.
    You can add extra path information by using the -extrapath option in your
    installNTservice.cmd script.
    Regards,
    Michael
    martin wang wrote:
    When I installed a weblogic server as a windows service using installNTservice.cmd,
    I found that the system path was not appended to the java.library.path. Here is
    the detail:
    step 1: went to ...\config\mydomain, run installNTservice.cmd, and the weblogic
    server "myServer" was installed as a NT service.
    step 2: went to Control Panel -> administrative tools -> services and started
    up the service "myserver".
    step 3: went to ...\config\mydomain\logs, open Weblogic.log and found that:
    java.library.path = C:\bea\wlserver6.0\bin;.;C:\WINNT\System32;C:\WINNT
    usually java.library.path should be the above paths plus the system path(which
    can be changed in control panel -> system ->advanced -> environment variables
    Does any one know why?--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Run JavaAPP as window service!

    I have created an app, now i need to make it as window service, i have found an wrapper to do it, but there is some problems on it
    1- there is no samples code
    Some one give me an solution!
    ps: anyone know a tool to decompiler .jar file :P because i saw there was a testwapper.jar, and it worked properly!

    try JAD to decompiler a jar.
    There are a number of service wrappers. If one doesn't do what you want try another.

  • Setting up OIM to start as a Windows Service running under Weblogic 10.3.2

    Hi,
    On recommendation from our Oracle Rep. we have begun migrating our existing OIM installation on Oracle AS to a Weblogic Application Server. As such we are looking for a way to get the OIM application to run as a service in windows - so we dont have to start it manually after a reboot and so that system monitoring can alert us if/when the application crashes for some reason.
    I have asked Oracle support - which basically said that no such howto/documentation exists and that "One needs to debug on their own when face any issue." (whatever the h*** that means).
    I was thinking that we werent the first customers trying to get the OIM webapplication to start automatically under weblogic and that someone must have figured out a way to accomplish this ?
    Any advice on how to do this will be greatly appreciated.
    Thank you in advance.
    /Jacob

    Hi Jacob,
    See this post that I answered few time ago. Re: Keeping Remote Manager running - Windows
    Our OIM is running as a Windows Service.
    REnato

  • Running a 9.2 managed server as a windows service

    Is it possible to run a WebLogic 9.2 managed server as a windows service? I was able to get the AdminServer to run as a service, but not my managed server. I am not using Node Manager. Should I be? Please help...

    Yes. I re-installed and this time I installed node manager and it runs as a windows service. I then was able to get my AdminServer to also run as a windows service, using a script I found in the BEA forum. I start up my managed server now through the Admin Console and it runs ok. Only problem now is that the managed server is not running as a windows service, so that if the machine re-boots I have to manually go in and re-start the managed server again. Do you know how to make the managed server start up automatically too?

  • How to get 'clover.cmd' running as Windows service?

    Right now I have the InDesign instances all running great as services so on a server reboot they start up fine. The clover/lbq part is  just the .cmd script and it's not running as a service. I looked in the documentation but haven't found any info on getting clover to run as a Windows service.
    Anyone know how to set it to do this? I'm on InDesign CS6 (server).
    thanks.

    This information is in the Install Guide that comes with EAS.Running EAS as a Windows service is an option you can select when you install it. If you did not do that, you can set it up to run as service by doing the following: (From the EAS Install Guide)----------------------------------------Adding Administration Server as a Windows ServiceYou can add Administration Server as a Windows service, even if it was not installed as a Windows service.?To add Administration Server to the list of Windows services:1. From a command prompt, navigate to the following directory: EASPATH\eas\server\bin2. Run the following command: install_service.batAdministration Services installs the Windows service as Hyperion-Essbase_Administration_Server Windows service. A message displayed in the command prompt window indicates that the service is installed.3. Start the Hyperion-Essbase_Administration_Server Windows service. See ?Starting the Administration Server Windows Service? on page 49.The Hyperion-Essbase_Administration_Server Windows service is set to start automatically each time you reboot.

  • Problems with ShutdownHook and Windows Service

    Hi friends,
    I am facing a problem with the ShutdownHook when a Java program is run as a Windows Service. In the program I am having a Daemon Thread which will be run in an infinite while loop accoridng to a boolean variable. I have a shutdown hook also which sets the boolean variable so that the Daemon Thread will be stopped gracefully. When i am using Ctrl-C the shutdown Hook is started and the Thread is stopped gracefully.
    Later i have made my program as a Windows Service using a utility Java Service Wrapper. But when i stop the service though the Services Window the ShutdownHook is not getting called. I was not able to fnd out why it is happening like that.
    Any help will be highly appreciated. Thanks in advance.

    Hi Drmetz
    If you are waiting on a reply it could be some time, as this is the *Mac OS X v10.3 & earlier* forum and few here know about Windows, parallels MacBooks or the Tiger OS.
    Mac's cover a wide field.
    You could try reposting in this forum which would be your best best I think.
    Windows Compatibility forum
    http://discussions.apple.com/forum.jspa?forumID=687
    also
    MacBook forum
    http://discussions.apple.com/category.jspa?categoryID=218
    or even the Tiger Forum
    http://discussions.apple.com/category.jspa?categoryID=160
    Good luck,
    regards roam

  • Jsx as a windows service

    I wrote socket listener class in javascript/photoshopscript.
    I basically need this to be running at all times.
    Here is a dumbed down code example that basically returns what is sent to it.
    Is there anyway to get this to run as a windows service?
    Currently I start it up from extendscript
    #target photoshop
    function Server( _port ){
        this.port = _port;
        this.tcp = new Socket( )
        this.connection;
        this.start = function( callBackFunc ){
            if( this.tcp.listen( this.port ) ){
                for(;;){
                    this.connection = this.tcp.poll()
                    if( this.connection != null ){
                        var tmp = this.connection.readln()
                        callBackFunc( tmp )
        this.response = function( val ){
            this.connection.writeln( val )
    function callBackFunction( data ){
        server.response( data )
    var server = new Server( 12345 );
    server.start( callBackFunction )

    I looked at  App.scheduleTask();
    This function reminds me of the old setTimeOut actionscript function.
    How can this be thread safe?
    It
    also dawned on me that if i dump the "for(;;)" Loop and just use the
    scheduleTask() to call a script that polls the socket I could achieve
    the same effect.
    But I fail to see the benefits of doing it this way.
    One approach is
    When you script starts, open a UI script  to start, stop and monitor the script via a log window (in addition to a log file)
    Use scheduleTask to start your polling loop.This prevents the UI from locking up.
    When a request comes in to the polling loop, use scheduleTask to hand add the request
    In that thread, see if a job processing thread if exists. If not start it and add the new request/task to the queue. This thread then dies.
    In the job processing thread, see if there are any jobs to process. If not, have it wait for another X number of seconds before starting again. If there are request to process, check to see if PS is busy. If it isn't, send the request and wait for a response. Log all of this to file and to the UI. When the request has finished, move on to any outstanding requests.
    This code will be running on a dedicated machine for this job.
    with 12 core, 20something GiG ram, raided The machine specs might be overkill for it but it was a hand me down from another job.
    So I am not worried about having access to photoshop while the script is running.
    But having a UI to monitor what's going on will make your life a lot easier, especially if there are any problems. It also give you the ability to automatically restart PS periodically if it locks up and stops satisfying requests.
    All of this is about 99% done it has been up and running for a few months now.
    If there is an error I get emails too
    You can run external scripts for doing email with app.system() in Bridge.
    I looked and looked and still do not see a way to run scripts in CS4 bridge-3.0
    Or am I just misunderstanding and scripts can only be run from ESTK/Photo Shop?
    You add code to add the script to a Bridge menu. Put the script in the magic startup folder and it gets run whenever Bridge starts up.
    During development and debugging, you probably just want to launch it from ESTK.
    Alternatively, you and have a script that you launch via the File>Scripts menu (or recorded as an Action step) that sends a message to Bridge to launch the script.
    I know can sound a bit complicated, but if you need a script that runs continuously for days at a time, never fails, and keeps you updated on its progress (and failures), it does take a bit of work.
    I've used variants of these techniques in different scripts over the years, so I know they can work. I hope you find some of these ideas helpful.

Maybe you are looking for

  • What's the best way to manage movie resolutions with iTunes/iPod

    I've just been given a new video iPod, and am now considering importing movies into iTunes so that I can have them on my iPod. What I have is a bunch of MPGs (e.g., family movies from a camcorder, etc.); but I noticed that the iPod won't play them, p

  • Where to find the Opening Balance Of a Profit Center

    Hi, Which report can i use to check the opening balance of a profit center which is carried forward from last year for a balance sheet account?

  • Datagrid editable row

    Hi, I would like to know if there is a way to make an entire row in a datagrid editable when that row is selected.  Currently when a user selects a cell of the row, only that cell becomes editable.  I would like to have that entire row become editabl

  • Using the MATRIXx linksim cmd with Visual C+ for UserCode

    Need help. Trying to create a static library in the Microsoft Visual C+ Developement environment (v6.0) and link it to MATRIXx (v62.2) using the "linksim" Xmath command. I build the library in MS Vis C and then add it to the makeucb.mk file in the ..

  • The language in my iPhoto program changed and I can't change it back to English

    My IPhoto program change language from English to French and I don't know how.  I went into my setting and deleted all languages except English and it does not help.  Any suggestions on how to get it back to English?  I can't read French.