My code is running on machine A but want to run nodemanager on machine B.

Consider I am on machine A and want to start nodemanager on the same machine using WLST. For this I can write code like given below.
import org.python.util.InteractiveInterpreter;
import weblogic.management.scripting.utils.WLSTInterpreter;
public class StartAdminAndNodeManager {
     public static void main(String args[]) {
          System.out.println("Starting NodeManager");
          InteractiveInterpreter  interpreter = new WLSTInterpreter();          
          nterpreter.exec("startNodeManager()");
}This code is working fine for local machine.
But if I want to start node manager which is on machine B and my code is running on machine A then what should I do.
Is there any command like.
startNodeManager('IP Address');Can any body tell me how to proceed.

the only solution coming to my (weak) mind is using SHH to execute a startNodeManager.sh command remotely
see http://ant.apache.org/manual/Tasks/sshexec.html for inspiration
there are open source SSH libraries you can incorporate in your Java program
I hears also of Fabric, a Python framework to run remotely Python scripts... you might look into it (and let us know, I am curious!)

Similar Messages

  • Is there a way to force a new session so my "on new session" code will run?

    I'm using apex.oracle.com and I find values of application (global) and page items persisting across logins.
    I didn't expect that? I thought they would go away when I logged out of APEX. But I can change the values, logout, and log back in to the same values. And when I login and start an application, it's not running my "shared components > application processes" initialization code which is set "on new session".
    I thought each login would be a distinct new session with it's distinct set of items. (see definition below)
    So when I run an application, is there a way to force a new session so my "on new session" code will run?
    >
    What Is a Session?
    A session is a logical construct that establishes persistence (or stateful behavior) across page views. Each session is assigned a unique identifier. The Application Express engine uses this identifier (or session ID) to store and retrieve an application's working set of data (or session state) before and after each page view.
    Because sessions are entirely independent of one another, any number of sessions can exist in the database at the same time. Also, because sessions persist in the database until purged by an administrator, a user can return to an old session and continue running an application long after first launching it. A user can also run multiple instances of an application simultaneously in different browser sessions.
    Sessions are logically and physically distinct from Oracle database sessions used to service page requests. A user runs an application in a single Oracle Application Express session from log in to log out with a typical duration measured in minutes or hours. Each page requested during that session results in the Application Express engine creating or reusing an Oracle database session to access database resources. Often these database sessions last just a fraction of a second.
    >
    Thanks -- Howard

    I cleaned up the copy of the Select List code in APEX 4.1.xxx which was not operating correctly before. Now it matches what I have in APEX 4.2.yyyy. And, drum roll please, the select list seemingly works fine there (4.1) as well. But now, the initialization code--which was working fine(!)--FAILS in 4.1!
    <font size="3"><font color="red">•<font face="courier new">
    Okay. Maybe this will help. 1) I logged in. Ran the login page but did not login. Opened the "session" window and wrote down the session ID. Logged out and back in. 2) Ran the login page but did not login. Opened the "session" window and .... it has the same session ID? 3) <b>So the session is persisting across logins!! How is that possible?</b>
    (More) When I log into 3 different applications, I get a different session ID for each but repeated logins always give the same session ID for any given session. </font>

  • Using XML-based object structures to represent data in code/at run-time

    Hello,
    I have quite a "high level" question which has be bothering me for some time, and I haven't found the subject tackled in any books. I believe J2SE/J2EE is not an important divide here.
    Lets say I want to develop a J2SE game application with two programs: a "level designer", and a "level viewer", and I want to store the level files in an XML format.
    My question, and I use this example only to try and illustrate it, is:
    when coding the level designer or viewer, is it reasonable to use an XML-based object hierarchy for representing a level in code/at run-time, i.e. using the standard Java DOM APIs? Or should one (as I would have done before XML came along) develop a set of classes much closer to modelling the real form of a level, and then add a means to convert those objects to/from to XML format?
    This second option of course I would use/would have used if I wasn't thinking about XML, but isn't it sometimes easier to just read in an XML file into a DOM representation and just use the data straight out of that structure, rather than go through the bother of parsing the XML into a set of unrelated objects defined by a different family of classes? What shapes your decision here? And if the second option is best, what is the easiest way of converting to/from the XML?
    Thank you for any advice.
    Greg

    Hi Christian,
    Can I ask: what about if your domain was quite 'close' to an object/DOM representation of XML?
    For instance, what if a game operated by acting out a theatrical script, a spoken conversation, between two characters, perhaps somehow influenced at points by the user, and a particular level was just a different script for the characters.
    One could imagine that the object representation of this would in the end be quite similar to how you'd represent XML, i.e. like a tree of nodes, where each node was a line from the script, and some nodes were a decision point where different nodes could be chosen from.
    Would you still want to avoid using XML-based classes to represent the underlying 'game', or is there a point where you would 'give it' to the similarity and use existing XML structures directly?
    Thank you for any advice
    Greg

  • JSP codes for running a JAVA program

    hello...
    does anyone know the JSP codes for running a Java program from my web page?? i mean i already have my java program compiled... and i just want this java program to run in the background when I click on a button or a link...
    Any idea about this?
    plz advice..
    avi

    yes... u r somewhat right... but this runs on Jakarta Tomcat...
    i'm using the Apache Http Server together with the ServletExec AS which enable the Apache server to run JSP..
    I've created a package where i've put my classes...
    WEB-INF/classes/tbd(package name)/my classes
    and i've added.. package name.. in my java program..
    and then in jsp... i've written..
    <%@ page import="tdb.*"%>
    <jsp:useBean id="exec" class="tdb.textdb" />
    <%exec.convert_data();%>
    but when i run the page it says the package does not exist...
    can anyone tell where to place the folder WEB-INF so that it can run fine?
    thx
    avi

  • Code working in ecc 6.0 but not on 4.6c

    Hi all
    I have written a small sample code in 4.6c and ecc 6.0
    CLASS c1 DEFINITION.
    PUBLIC SECTION.
    METHODS: constructor IMPORTING num TYPE i
                        EXCEPTIONS e,
              a.
    CLASS-METHODS: b.
      ENDCLASS.
    CLASS c1 IMPLEMENTATION.
    METHOD  constructor.
             WRITE :num.
             RAISE e.
             ENDMETHOD.
    METHOD a.
      WRITE:/ ' instance method :a '.
      ENDMETHOD.
      METHOD b.
      WRITE:/ ' static method: b '.
      ENDMETHOD.
             ENDCLASS.
    START-OF-SELECTION.
    PARAMETERS: p_par TYPE i.
    WRITE: / ' Hi '.
    DATA: obj TYPE REF TO c1.
    CREATE OBJECT obj EXPORTING num = p_par
                       EXCEPTIONS e = 5.
    CALL METHOD obj->a.
    this code is running fine in ecc 6.0 but not in 4.6c, in 4.6c it is giving a dump when the statement CALL METHOD obj->a. is executed, saying null reference.
    could any one explain me this behaviour
    Thanks & Regards

    hi
    see this diff
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=ecc6.0and+4.7&adv=false&sortby=cm_rnd_rankvalue
    <b>Reward if usefull</b>

  • What are changes between FP 10.0.42.34 and 10.0.45.2 that could cause AS2 code to run differently?

    Hi, I am trying to debug a large Flash reading literacy application which is written in AS2. Everything works in 10.0.42.34. When our school customers upgrade to 10.0.45.2 they get blocked from proceeding with training.
    The main movie has loaded an application to run a sequence of tutorial movieclips, driven by an xml input.
    The application waits for each background plus movie to load and the plays the movie.
    It then unloads the movie and background and proceeds to the next movie/background.
    I am running the debugger in CS4 in both FP 10.42.34 and FP 10.0.45.2, the two [UnloadSWF] trace outputs happens in both, but the next step is missed. I am delving into the code right now, but I hope that there may be a hint in the changes made.
    I see no errors or security sandbox issues in the trace output.
    Can someone tell me what main changes there are in FP 10.0.45.2 that could cause AS2 code to run differently?
    Currently we are going to tell our customers that they must downgrade Flash Player to keep their kids learning to read.
    Thanks,
    Sue W.

    All these bug reports are probably describing same problem:
    http://bugs.adobe.com/jira/browse/FP-3993
    http://bugs.adobe.com/jira/browse/FP-4137
    http://bugs.adobe.com/jira/browse/FP-4121
    Not yet any word from Adobe that this is considered a bug worth fixing.
    I would also like to add that the bug failing to load or run older AS1/2 swfs is present in both latest release version FP 10.0.45.2 and FP 10.1.51.95 (beta 3). So it does not look like it has been fixed with 10.1

  • Code to run a query in SQL from Access with pass through query

    I have a query in SQL Server 2008:
     [Auto Null Up Date].sql. I want to run this query from Access 2007 using a Pass Through Query. What is the command/code to run this query from Access? I have used Pass Through Queries but never in this capacity so I am somewhat lost. I have
    already established the OBDC link and tested.

    Naomi,
    Here are a few lines of the SQLCMD code in the [Auto Null Update].sql query:
    USE [Archive Master]
    Go
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null BackPress 2 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 3 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 4 update.sql"
    When this code is pasted into a Create Procedure, (the USE [Archive Master] is not used), the procedure will run, but once saved here is what is left of the procedure once I attempt to modify:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:                         
    <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description:              
    <Description,,>
    -- =============================================
    Create PROCEDURE [dbo].[NullTest2]
    AS

  • How to see for what company codes we run payroll for ?

    Hi gurus
    I have a question, generally our users run payrolls by payroll areas, but i want to see for what company codes we run payrolls, is there any report or table to see that ? i checked it in T001 using sm30, where i could see all the company codes (but this didn't answer my question) in this table there are some company codes for which we dont run payroll . so is there any way to see exactly for what company codes we run payrolls ? or should it be seen in financial side ??
    please advise
    regards
    sangitha

    Probably you can use Adhoc query to fetch company codes from IT0001 using a given Payroll area.
    Does this make sense?
    Regards
    Chandra

  • X code got downloaded from app store but can't find Xcode.app on my mac

    X code got downloaded from app store but can't find Xcode.app on my mac

    Check your Applicaitons folder.
    Mac OS X Lion 10.7.2  <  your profile
    Xcode's minimum requirements according to the App Store under Information is OS X v10.7.3 or later.
    If you are running v10.7.2, click your Apple menu icon top left in your screen. From the drop down menu click Software Update.
    That should bring your Mac up to date to v10.7.4.
    Then try re downloading Xcode.
    How to re download apps from the Mac App Store:
    Open the App Store. From the menu bar click Store > Sign In
    Click Purchases from the top of the App Store window.
    Select which apps you want to re download. Then right or control click where you see Installed  then click Install.
    Make sure and use the same Apple ID used for the original purchase.

  • HT1386 I have a brand new ipad with iOS 6.1.3 and an imac with OS 10.5.8. I cannot update my OS on this machine, but want to sync the new ipad. What can I do?

    I have a brand new ipad with iOS 6.1.3 and an imac with OS 10.5.8. I cannot update my OS on this machine, but want to sync the new ipad. What can I do?

    If it's an Intel Mac, you can upgrade it to Mac OS X 10.6.8.
    If it's a PowerPC Mac, you need to use these instructions and/or iTunes Match to put content on the iPad.
    (83068)

  • My ipod wont let me buy any apps because it says i have an invalid security code for my moms credit card but its the right one. and it also says i owe money for upgrading an app does anyone know how to remove my moms credit card cause i cant figure itout

    my ipod wont let me buy any appps because it says i have an invalid security code for my moms credit card but its the right one. and it also says i owe money for upgrading an app does anyone know how to remove my moms credit card cause i cant figure itout

    To change asccount information see:
    Changing Account Information
    For the code issue this may help.
    iTunes Store: My credit card's security code or zip code does not match my bank's records
    For a standard iTunes account you need a valid payment method even for free apps and app updates.
    What is making it think that you own money for an app upgrade?

  • ERROR [code=1] Running adjopy.class

    Hi DBA's
    When i am applying patch 5903765 i got the following error.
    i checked the write permission and owner permission, it seems everyting is fine and I run manually following script, i got the same error.
    adjava -mx512m -nojit oracle.apps.ad.jri.adjcopy @/s03/CLONE/clnappl/admin/CLN/out/apps.cmd
    Kindly help me to resolve the issue.
    =============ERROR=============================
    About to Write undo archive : Mon Mar 16 2009 14:22:33
    Writing undo archive /s03/CLONE/kiranpatches/5903765/backup/CLN/aqherptestdb/java
    ERROR: I/O or zip error while attempting to read entry meta-inf/jdev-ext.xml in zip file /s03/CLONE/clncomn/java
    Error(s) have occurred; exiting with status 1
    AD Run Java Command is complete.
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    AD Java
    Version 11.5.0
    NOTE: You may not use this utility for custom development
    unless you have written permission from Oracle Corporation.
    AutoPatch error:
    ERROR [code=1] Running adjopy.class
    AutoPatch error:
    Error updating master archive
    Best Regards,
    SG

    SG,
    Please review the following note:
    Note: 376096.1 - I/O or ZIP Error While Attempting To Read Entry meta-inf/jdev-ext.xml
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=376096.1
    Regards,
    Hussein

  • I am running windows 8.1 but want to use the desk ...

    I am running windows 8.1 but want to use the desk top version of skype. When I try to install the latest version of skype I get the following message
    "A Previous program installation was never completed. You need to restart your computer to complete that installation before running skype set up. Set up will now close"
    I have restarted my computer many time and still get the same message. I have even uninstalled skype and tried to re-install it but I still get tha same message.
    Can you help sort this out?
    john
    Attachments:
    2015-06-05 12_46_44-Greenshot.png ‏120 KB

    Marcovr I am sorry but can you please restate your inquiry?

  • I need a code to run a report from a forms on 10G...

    Hi!! I´m migrating from 6i to 10G and i cant run a report... can someone send me a sample code to run a report from a form in 10G??
    Thanks!!
    Regards!

    iam using Javabean in oracle 10g forms to tun the report....
    First create a block with a name control and add an bean to it with a name
    userid_bean.click the proerty of the bean and changes its width and height
    so that u cannot see it when u run the particular form.
    now use the below code where u are coding to run the report.
    Declare
    rep_url varchar2(2000);
    begin
    rep_url := '/reports/rwservlet?report=filepath\rep1.RDF' ||
    '&desformat=htmlcss&destype=cache&userid=sample/sample@oracle' || '&paramform=yes';
    -- Write Log messages to the Forms JInitiator console.The Next line must
    -- be disabled before running this code in any production environment.
    set_custom_property('control.userid_bean',1,'ADD_USERID',
    get_application_property(username)||'/'||
              get_application_property(password)||'@'||
              get_application_property(connect_string));
    -- writing the cookie
    set_custom_property('control.userid_bean',1,'WRITE_USERID_COOKIE','10g');
    web.show_document(rep_url,'_blank');
    end;

  • I have replaced my computer and when I am asked to enter the redemption code I insert the serial number but it tells me it is not valid

    I purchased Adobe Photoshop Elements  in Dec 2013. I have had to buy a new computer and when I try to install and when I am asked to enter the redemption code I insert the serial number but it tells me it is not valid. What do i  need to do.
    Noel

    noelcj26 wrote:
    I purchased Adobe Photoshop Elements  in Dec 2013. I have had to buy a new computer and when I try to install and when I am asked to enter the redemption code I insert the serial number but it tells me it is not valid. What do i  need to do.
    Noel
    If you registered the product with Adobe (Version 12 and 13 required mandatory registration) then the correct serial number must be recorded in your Adobe account.  You can login and check there and also copy and paste the number to avoid any mistakes in reading the numbers.
    Good luck.

Maybe you are looking for

  • HT5429 Has anyone reported a problem on iOS 6 Maps and had it fixed?

    Within iOS 6 maps, I reported that searching for Holland Park underground station in London yields two locations for the station (one of them being wrong). It has been over three weeks and the issue has not been corrected.

  • Changing Email Notification address in Calendar

    Is there a way to change the notification email address in Calendar? At this time all notification are sent to a little used address and I need to change it to a current one, but cannot find a way to do that. Any clues please? Thanks, PM

  • Conditional Validation using JSLink

    I have a User field and a Choice field in a list.  When the Choice field has the option "A" selected I want the User field to be mandatory.  Validation formulas in lists cannot use User field data types so this is not an option.  Is JSLink the way to

  • Error when try to build listener project

    I am trying to build the listener project using VC++6. But I get such errors:<br />//==============================================================/<br />--------------------Configuration: Listener - Win32 Debug--------------------<br />Compiling res

  • Possible to upload high res photos on nano 7?

    I made a map of the city where I live, so I could put it on my iPod nano 7th generation. I know the screen wouldn't be big enough, but since there is a pinch to zoom option, I thought it wouldn't matter. But when I upload the photo to the iPod, it's