API to Start / Stop Applications or to perform NWA like operations

Hello,
is there an API available that enables me to start and stop deployed ears programmatically?
Or more generally asked, is there a way to perform the same actions that are possible with the NWA, e.g. modify web service ports, deploy applications and so on.
Thanks in advance.
ciao,
Elmar

Yes there is. I am trying to use it right now.
It is the DeplyService interface (com.sap.engine.services.deploy.DeployService) which is contained in the deploy.sda.
You can use it to start/stop applications, remove applications, deploy applications, etc.

Similar Messages

  • Any JAVA Api to start/stop dhcp server?

    Hello,
    Does JAVA has any API to start/stop DHCP server.
    thanks,
    shimsha

    http://edocs.bea.com/wls/docs81/deployment/tools.html#998698
    That is the API you need to what the weblogic.Deployer tool does.
    Sam
    Amir wrote:
    Hi
    Does anyone knows if weblogic 8.1 provides set of apis to start and stop J2EE
    applications programmatically?
    I know weblogic deployer provides the means to start and stop the J2EE applications
    through scripts. What I want to know if the apis for the scripts are exposed to
    be used within java code.
    Thanks

  • Creating a Business Service for Start/Stop Application Service in CCB 2.3.1

    Hi,
    I'm in the process of creating a BPA script that invokes a Business Service to perform a Start/Stop for a given Account ID/Premise ID combination. The Business Service is using the base Application Service: Start Stop (CILCSSEP). I am moving the Account ID and Premise ID, along with the start date and requested by fields to the data area of the Business Service, prior to invoking it. When I invoke the Business Service via the BPA script, it throws the below error message... I'm at a loss because the BILL_ADDR_SRCE_FLG is being set to a default of "PREM" on the Business Service Schema:
    A Bill Address Source is required on the address override record. Please enter a valid value.
    One of these two is true:
    1) The Bill Route Type on this record has a Bill Routing Method of 'Postall', or
    2) The main customer on the Account has a Quote Route Type with a Quote Routing Method of 'Postal'.
    In either case, the Bill Address Source must be populated with a valid value.
    If you need support please supply the following info to system support:
    Message number: 3, 59204
    Business Service: CMSTARTSERVICE
    Application Service: CILCSSEP
    Schema:
    <schema pageAction="fastChange">
    <accountId mapField="ACCT_ID"/>
    <df mapField="DEFAULT_FOR_FLG"/>
    <startDate mapField="STRT_START_DT"/>
    <startOption mapField="STRT_TYPE_FLG"/>
    <premiseId mapField="STRT_PREM_ID"/>
    <premAddress mapField="ADDRESS1"/>
    <premCity mapField="CITY"/>
    <startCisDiv mapField="STRT_CIS_DIVISION"/>
    <startReqBy mapField="STRT_STRT_REQ_BY"/>
    <bldStrtSaSw mapField="BUILD_START_SA_SW" default="true"/>
    <accountIdtwo mapField="ACCT_ID2"/>
    <mainCustPerId mapField="MAIN_CUST_PER_ID"/>
    <billFrmtFlg mapField="BILL_RTE_TYPE_CD" default="POSTAL" private="true"/>
    <billAddrSrcFlg mapField="BILL_ADDR_SRCE_FLG" default="PREM"/>
    <billAddrSrcFlg2 mapField="BILL_ADDR_SRCE_FLG2" default="PREM"/>
    <startStopTelephoneOverride type="list" mapList="OVRD_PHONE">
    <accountId mapField="ACCT_ID"/>
    <sequence mapField="SEQ_NUM"/>
    <phoneType mapField="PHONE_TYPE_CD"/>
    <internationalPrefix mapField="COUNTRY_CODE"/>
    <phone mapField="PHONE"/>
    <extension mapField="EXTENSION"/>
    <version mapField="VERSION"/>
    </startStopTelephoneOverride>
    <startBtn mapField="ACTION_START_SW" default="true" private="true"/>
    </schema>
    I'm running CC&B 2.3.1 - Any help in pointing me in the right direction to get this working would be greatly appreciated, Thanks!
    Regards,
    Jack

    Hi,
    Can you try and do this transaction online and see if the error occurs as well? If so run it with traces on and check for the details just before the error is thrown. ( you can also switch on debug via the service call, but it may be easier to debug when doing this online. ) I am predicting this error will occur also when you do it online.
    When you are using an Account with its main Person set up with BILL_ADDR_SRC_FLG as PREM you will need a valide PREM_ID on the CI_ACCT record for MAILING_PREM_ID and the premise needs to have a switch set to YES indicating it is a Mailing Address type Premise.
    Good luck
    Arjen

  • Java api to start/stop J2EE apps

    Hi
    Does anyone knows if weblogic 8.1 provides set of apis to start and stop J2EE
    applications programmatically?
    I know weblogic deployer provides the means to start and stop the J2EE applications
    through scripts. What I want to know if the apis for the scripts are exposed to
    be used within java code.
    Thanks

    http://edocs.bea.com/wls/docs81/deployment/tools.html#998698
    That is the API you need to what the weblogic.Deployer tool does.
    Sam
    Amir wrote:
    Hi
    Does anyone knows if weblogic 8.1 provides set of apis to start and stop J2EE
    applications programmatically?
    I know weblogic deployer provides the means to start and stop the J2EE applications
    through scripts. What I want to know if the apis for the scripts are exposed to
    be used within java code.
    Thanks

  • Programmatically start/stop applications without admin server connection

    I know I can programmatically start/stop an application through WebLogic's deployment API, but the call needs to go through admin server. I was wondering if there's a way for an application to start/stop another application on the same managed server when the admin server is down. I remember a managed server could be started without an admin server (unless it's started for the first time). So I suppose there must be some way to programmatically start/stop local applications without an admin server as well.
    Thank you for your help in advance.

    Hai,
    I read the Oracle weblogic wlst script document without Admin server you cannot connect the managed server through the WLST script. see the below lines
    "The start command starts Managed Servers or clusters in a domain using Node Manager.
    To use the start command, WLST must be connected to a running Administration Server.
    To start Managed Servers without requiring a running Administration Server, use the
    nmStart command with WLST connected to Node Manager."
    "You shut down a server to which WLST is connected by entering the shutdown command
    without any arguments.
    When connected to a Managed Server instance, you only use the shutdown command to shut
    down the Managed Server instance to which WLST is connected; you cannot shut down another
    server while connected to a Managed Server instance.
    WLST uses Node Manager to shut down a Managed Server. When shutting down a Managed
    Server, Node Manager must be running.
    In the event of an error, the command returns"
    They are two option if you are using adminserver then we can stop the any Managed server.
    The option is if you are using the nodemanager without admin server we can stop the any Managed server.
    The last final solution to kill the particular Managed server pid.
    Regards,
    S.vinoth babu

  • Starting/Stopping Application Server Forms and Reports

    Hello,
    Are there any scripts (like dbstart and dbshut for Oracle DB) for starting and stopping "Application Server Forms and Reports". If not, any special suggestions?
    I must automatically start this application on Unix. I know that during starting some steps must be performedy by the root user (export DISPLAY env variable and issue the "xhost +" command) and later the oracle user must do some things( export ORACLE_HOME and DISPLAY and issue the "opmnctl startall" command). Does anybody have scripts like that?
    Regards,
    Tim

    If you're on 10.1.2, there is a script (requires an X Windows session). It's called runstartupconsole.sh, but you've got to update the install type to Portal in the ias.properties file if I remember right. It looks cool, but a shell script works better.
    Here is a shell script that does some of those things. You still need to run xhost+ after running a display if you're using something that requires a DISPLAY to start. Someone may have a better one, but this one works.
    We actually use one that starts all the different components individually except for Reports in rc scripts. That is the only thing we have that needs a Display set to start. So then xhost + is run & at the same time, the Unix sysadmin runs a script that start Reports from opmn.
    I hope this is useful.
    Cordially,
    Steve
    #!/bin/sh
    # =======================
    # Collect Global Variables
    # =======================
    # Collect server specific install location
    export ORACLE_BASE=/u01/app/oracle
    export MIDDLE_TIER_ORACLE_HOME=$ORACLE_BASE/product/ias/101202_EE/mt_maxportal_02
    export INFRASTRUCTURE_ORACLE_HOME=$ORACLE_BASE/product/ias/101202_EE/if_maxportal_02
    export SID=orcl
    # Collect current PATH and LD_LIBRARY_PATH for reuse
    export OLD_PATH=$PATH
    export OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
    # Unset variables that can cause problems starting or stopping
    unset CLASSPATH
    case "$1" in
    start)
    # =======================
    # Start Infrastructure
    # =======================
    # Set environment to start infrastructure components
    export ORACLE_SID=$SID
    export ORACLE_HOME=$INFRASTRUCTURE_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Start Infrastructure Database Listener
    echo -n "Starting Infrastructure Database Listener: "
    $ORACLE_HOME/bin/lsnrctl start
    echo "OK"
    # Start Infrastructure Database
    echo -n "Starting Infrastructure Database: "
    $ORACLE_HOME/bin/dbstart
    echo "OK"
    # Start Infrastructure OPMN managed components
    echo -n "Starting Infrastructure OPMN Managed Components: "
    $ORACLE_HOME/opmn/bin/opmnctl startall
    echo "OK"
    # =======================
    # Start Middle Tier
    # =======================
    # Change environment for middle tier
    unset ORACLE_SID
    export ORACLE_HOME=$MIDDLE_TIER_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Start Middle Tier OPMN managed components
    echo -n "Starting Middle Tier OPMN Managed Components: "
    $ORACLE_HOME/opmn/bin/opmnctl startall
    echo "OK"
    # Start Application Server Control
    echo -n "Starting Application Server Control: "
    $ORACLE_HOME/bin/emctl startifdown iasconsole
    echo "OK"
    stop)
    # =======================
    # Stop Middle Tier
    # =======================
    # Set environment for middle tier
    unset ORACLE_SID
    export ORACLE_HOME=$MIDDLE_TIER_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Stop Application Server Control
    echo -n "Stopping Application Server Control: "
    $ORACLE_HOME/bin/emctl stop iasconsole
    echo "OK"
    # Stop Middle Tier OPMN managed components
    echo -n "Stopping Middle Tier OPMN managed components: "
    $ORACLE_HOME/opmn/bin/opmnctl stopall
    echo "OK"
    # =======================
    # Stop Infrastructure
    # =======================
    # Set environment to start infrastructure components
    export ORACLE_SID=$SID
    export ORACLE_HOME=$INFRASTRUCTURE_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Stop Infrastructure OPMN managed components
    echo -n "Stopping Infrastructure OPMN managed components: "
    $ORACLE_HOME/opmn/bin/opmnctl stopall
    echo "OK"
    # Stop Infrastructure Database
    echo -n "Stopping Infrastructure Database: "
    $ORACLE_HOME/bin/dbshut
    echo "OK"
    # Stop Infrastructure Database Listener
    echo -n "Stopping Infrastrucutre Database Listener: "
    $ORACLE_HOME/bin/lsnrctl stop
    echo "OK"
    reload|restart)
         $0 stop
    $0 start
    echo "Usage: `basename $0` start|stop|restart|reload"
    exit 1
    esac
    exit 0

  • Connecterra API to Start/Stop readers.

    Hello,
    Is there API support by connecterra to start and stop the readers?
    I googled but couldnt find any usefull stuff. If some one has worked on it, can you please tell em know where can i get the same..
    We are working on bea rfid_edge21 .
    API and also if possible sample examples.
    your help would be highly appreciated.
    Thanks in Advance.

    Hi Shridhar,
    RFID API guidline
    PIOS RFID API Guidelines
    Definition
    This document explains several guidelines for the PIOS RFID API, part of the MI Client API. Each of the guidelines is discussed below.
    Use
    These guidelines are intended for all the developers working on the SAP NetWeaver Developer Studio in a mobile application with RFID peripheral requirements. It helps the developer get the most out of the PIOS architecture. The developer can access these features provided by PIOSthrough the MI Client API.
           1.      Tag Configuration File
    The RFID API programs, reads, and/or writes tag types that have been predefined in the tag configuration file. The tags can be edited, added to, or removed from the file using the tag configuration manager, part of the RFID API.
    The RFID reader can only work (read, write, and so on) those tag types defined in the tag configuration file and supported by the hardware. Supported tag types depend on the RFID reader make and model.
    Tags that are not defined in the tag configuration file will be ignored by the API even if they are supported by the RFID reader.
           2.      List Tag Types method
    This method returns all the tag types that have been configured in the API. An array of tag types is returned. The configured tag types are returned in an array. This method must be called before an identify by tag type is called, this assures using a valid tag type when calling the identify.
           3.      Tag configuration manager
    To receive a list of all the configured tag types for a specific RFID reader, use the listTagTypes method. To edit the list by adding or removing a tag type, or to edit a particular tag type use the TagConfigurationManager class.
           4.      Identify method
    To get a list of all the tags (that are defined in the API) inside the RFID reader's range, use the identify method with no parameters. To get a list of all the tags in range of a specific tag type, pass the tag type as a parameter to the identify method.
           5.      Read and write operations
    The API can read from or write data to one tag at any given time. The tag to be accessed must be inside the RFID reader's range. To accomplish this, call the identify method before invoking either the read or the write. This guarantees the use of a valid (in range) tag.
           6.      Tag structure awareness
    An RFID tag may be divided in several areas. These areas can be one the following:
                                a.      Reserved - This data is written by the tag manufacturer. The data in this area may be used internally by the tag.
                                b.      Read only - A portion of the data that was both written and locked, or was written in a single-use tag. The information in this area is accessible but cannot be changed.
                                c.      Writable - This area may be written and read using the API.
    It is important to be aware of the different areas and to avoid trying to write to reserved or read-only areas. Otherwise an exception will be thrown.
           7.      Writing without exceptions
    The following procedure is recommended to write to a tag without raising an exception:
                                a.      Identify the tags in the RFID reader's range, either with a tag type as a parameter or without a tag type. It depends on what needs to be done. A list of available tags is returned.
                                b.      Select the tag that will be written to from the list and get its tag type.
                                c.      Use the tag type writable areas for the tag to determine what section or sections of the tag can be written to.
    Hope this helps
    Thanks N Regards
    Santosh
    Reward if helpful !!!

  • Maxl script start & Stop application

    Hello all-
    Is there a way to start and stop the application via MAXL script? What command should i use to acheive this?
    Thanks

    Maxl
    alter application load database app.db
    alter application unload database app.db
    More info here :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/altapp.htm
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Will JDev support App Server interfaces like start/stop/deploy/debug?

    I don't see support for any application servers from with in JDeveloper IDE the way Eclipse Webtools provides.
    JDev only creates a WAR/EAR file and copies for hot deployment in the App Servers.
    Will there be any future support for Servers like JBoss/Webshpere/Weblogic/Tomcat/Geronimo etc. where I can start/stop the server and debug the Application from with in IDE.
    I tried with Tomcat/JBoss I can't do anything to start/stop etc. for this from IDE like many IDEs suport.
    The support lacks completely in the IDE although I see they create the Vendor specific app server xml deployment descriptors being created.
    I feel this a must to have.

    Do you have any plan as the IDE is moving ahead ?
    It would be exceptionally helpful if we have the same support of Eclipse Webtools and IntelliJ to deploy/undeploy/start/stop/debug etc. for the popular App Servers (including Websphere).
    Otherwise, for these App Server projects JDev has to give way to other IDEs.
    some initial missing features are never worked out in this IDE.
    Like a) clickable URL Go To Declaration doesn't show a hover button.
    b) No distinguished icons for Class/Interface/Enum/abstract class/ final class etc.

  • Using non-administrator user to start/stop services

    We have Crystal Report Server (BOE XI) running on Windows platform.
    Our customer's policy dictates that operator ID are to be use to manage starting/stopping of Crytal Report Server. The operator ID has no administrator rights and it has no access to the Microsoft Management Console.
    Would it be possible to use non-administrator ID to start/stop Crystal Report Server services? Appreciate if anyone could share on the configuration.
    Thank you.

    salafrance wrote:A simple way would be to write a small C program to run systemctl setuid root.
    So perhaps like this?
    #include <stdlib.h>
    #include <unistd.h>
    int main(void)
    execl("/usr/bin/systemctl", "systemctl", "start", "calibre", NULL);
    return(EXIT_SUCCESS);
    compiled it, then "chown root:root test", "chmod u+s test" and it worked.
    But is this safe? I have absolutely no knowledge about potential security issues...
    I also have thought about periodically restarting calibre, but on the Raspberry Pi, with it's slow ARM, the start takes ages and the processor is completely busy with that task for some minutes.
    And that's the reason why I also want to avoid starting an entire second systemd session... Or is this not that resource intensive?

  • Is there an API to export an application?

    I noticed the API to install an application. However, I would like to export a page, or an application using the API. Is this possible?

    Nothing documented that I can see. http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/toc.htm#
    See: http://jes.blogs.shellprompt.net/2006/12/12/backing-up-your-applications/

  • Starting and stopping applications via a Java-application on Windows/Unix

    Hello,
    I want to start java and other applications via a java application.
    This java application should start several different applications on windows and
    on unix systems and take care of their current state (e.g. running/not running).
    For all applications to be started there are .sh-scripts for unix and .bat-scripts
    for windows. In the scripts there could be a java call, e.g. "java someApplication",
    or some executables could be called. These scripts set the applications' environment etc.
    and start the application finally.
    My java application calls these scripts via the ProcessBuilder API, which is working fine.
    But there is the following problem: on windows, when executing a script that starts
    some other application, the ProcessBuilder gives me process-handle to the started
    process. If calling destroy() on this handle, only the cmd.exe gets killed which
    started the application. The application itself is running on. This is undesired behaviour
    since I want to be able to control the started applications, at least start and stop it which
    is impossible that way.
    On unix, it is working when using
    "exec java someApplication"
    instead of just
    "java someApplication"
    in the .sh-scripts. The exec command substitutes the shell process with the underlying
    process started in the script, so everything is working as expected on unix.
    But how could I get this working on windows systems? Is there any equivalent to the exec
    command on unix? Any suggestions appreciated.
    If something's unclear in my description, please let me know.

    Yes - after looking at this option - I think that's the direction I am going to go. It probably makes sense to give my JMS topics and my BPEL server their own OC4J instances anyway - for a number of reasons.
    Lon

  • Resource not release when starting/stopping the deployed application

    I am testing to deploy an standard web application on Weblogic 11gR1 at Windows XP. It is running and everything is working fine. But I noticed below situation which concersns about the release of resouce during stop and start deployed application by using Admin Server Console:
    After the deployed application starting running in Weblogic, I go to Admin Server Console to select the deployed application at deployment section and click "stop\When work complete". It looks like that the deployed application was stopped and its state went to "Prepared". Then I start it again by click "Start\Servicing all requests". It started correctly. If I tried multiple times of "Start \ Stop" operations on this deployed application, then eventurally, I got "output memory" exception and Weblogic died. I wached the memory usage of Weblogic, when applying multiple times of 'start / stop' operation on an deployed application, the memory usage of weblogic continuese to grow and until "output memory" exception occurs.
    Is it normal? What might be wrong when configuring weblogc? or somethng wrong for deployed application?
    Anybody can provide any help would be great appreciated.
    Thanks in advance.
    Jim

    Hi Mithun,
    Thanks for your reply! If stopping the deployment need some time to finish, So, admin console of weblogic should disable ( grey out ) its starting button while the related deployed application is still shutting down. After the deployed application were stopped completely, then enable the starting button again to avoid the issue.
    I just feel a little bit strange for the admin console of Weblogic to behavior on start / stop deployed application.
    Thanks,
    Zhiping

  • How to start/stop/restart a java desktop application from remote machine

    Hi,
    I want to know is there a way in java where i can start/stop/restart a java desktop application running on a remote machine through another java desktop application?
    For e.g i have an Admin console which monitors its clients based on socket communication, all of them are java desktop applications. I want to also give start/stop remote clients through my Admin console.
    I am thinking in terms of windows system service which can start/restart/stop my clients on request of Admin console, but how can i call this system service remotely?
    How can i do it?

    I got it. its about connection...

  • How to Start / Stop Oracle Applications

    How to Start / Stop Oracle Applications.
    Oracle Applications Services (TCF, ConcManagers, Metric, Forms, Reports etc...) TnsListner & Oracle Service (DB) are started when the Server is started.
    What is the sequential Order to Start / Shutdown services, Listener & DB.
    Best regards,

    hi
    there is no hard coded rule on which service should be started first.
    the basic thing is concurrent manager uses database for starting, so i advice you the following sequence:
    1. start the database
    2. start the database listener
    3. Apache server
    4. forms server
    5. report server
    6. concurrent manager
    and shutdown in the reverse order
    simple
    regards
    srinivas

Maybe you are looking for

  • How to set up a Time Capsule to extend a non-Apple router and play tunes to an Airport Express?

    I have an older Time capsule that I would like to give my sister in order to extend her CenturyLink wifi.  I can connect via ethernet but she would like to play music thru an Airport Express at the stereo system. My question is:  would it be better t

  • LaserJet 4000 errors

    I've got a problem with a laserjet 4000.  It started with print jobs being sent, but not printing. The only solution would be to shut the machine on, and wait a few seconds, turn it back on, and then it'd be fine. That temporary solution has stopped

  • How it can't show Dialog? mailbox

    Hi everyone: I find some code which monitor the mailbox.When there is an new mail it will show a dialog to modify user.I setup a mail server "Argosoft" and startup IMAP service. When I send a mail the mail server will log the information.But the appl

  • How to handle sub-email accounts?

    Hi, I asked this question years ago! Is it possible by now with the new ipads to respond with an email account's sub-accounts?

  • Importing IFO/VOB/BUP to IMovie

    Hello Everyone! My name is Wallace (former PC enthusiast) and I am new to the Mac world. I am trying to import files so I can edited them into IMovie. I am excited about using my Mac to the fullest. Any suggestions?