Exec command via SSH in existing X-Session

Hello,
i want to start the media player app via SSH in an existing X-Session (real display) on the ssh target (ssh user = x-session user, all same machine). I do not mean X-forwarding! After the app is started, i want to disconnect the ssh connection and all should be still running. Any ideas?
Greetings,
Sebastian

The difference:
#remote display
ssh user@host DISPLAY=:0 some_command
# although you might assume it get's passed through ssh, it does not and is displayed on the remote machine
ssh -X user@host DISPLAY=:0 some_command
# local display
DISPLAY=:0 ssh -X user@host some_command
Also have a look at the man pages of disown and nohup to learn how to remove the program from your running shell, so you can close the ssh connection.
By the way: export only means, that the variable is exported to the shell. If I run "export TERMINAL=xterm", then until I close the shell, I can for example "echo $TERMINAL" to read "xterm". The shell is always on the host you are connected to. I assume there is a way to bind a remote X server to a DISPLAY (say :100), so you could DISPLAY=:100 to automatically show it on the remote host (or your local host, depending on what machine you sit in front of). I only assume because there is always a way, but I have never tested it or really thought about it.

Similar Messages

  • Shell: Multiple commands via ssh / subshell

    Hello,
    I have this script:
    #!/bin/sh
    SP_CONFIG=/home/flindner/spider/spFackrellB2+innerBox.conf
    ssh flindner@yoko "ssh yuka << 'ENDSSH'
    MESH=`awk '/OUTFILENAME/ {getline; print}' $SP_CONFIG`
    ENDSSH"
    executed with sh -x
    florian@horus ~ % sh -x ./remote_spider_test.sh
    + SP_CONFIG=/home/flindner/spider/spFackrellB2+innerBox.conf
    ++ awk '/OUTFILENAME/ {getline; print}' /home/flindner/spider/spFackrellB2+innerBox.conf
    awk: fatal: cannot open file `/home/flindner/spider/spFackrellB2+innerBox.conf' for reading (No such file or directory)
    + ssh flindner@yoko 'ssh yuka << '\''ENDSSH'\''
    MESH=
    ENDSSH'
    But when I execute the awk command on the machine yuka it works just fine:
    flindner@yuka:~> awk '/OUTFILENAME/ {getline; print}' /home/flindner/spider/spFackrellB2+innerBox.conf
    meshFackrellB2+innerBox.msh
    Therefore I think that somehow awk is being executed on my local machine and not on either one on the remote machines (I would be running on yoko too).
    Why is that? How can I execute it on yoko like it was intented? Other commands played just well, I suspect the problem is connected to the subshell execution of awk.
    Thanks a lot!

    The problem here is that the shell will evaluate the string inside "" before running the command. that means the awk-line will run locally. Try using ' instead of " around the  ssh yuka ... ENDSSH.  Single quotes will prevent the shell from evaluating anything inside like variables or subshell stuff. Also use $( .. ) instead of ` `, because its more readable
    Last edited by seiichiro0185 (2011-09-19 14:11:15)

  • Runtime exec command parameters with SSH

    hey,
    Im trying to run a unix command using Process proc = Runtime.getRuntime().exec(command);
    It works fine until I tried to combine it with multiple commands.
    For example, I'm trying to run:
    ssh [email protected] 'ls -al'
    This returns a exit value of -1, command not found.
    ssh [email protected] ls works fine so I suspect its related to the extra parameters.
    I checked the Javadoc page for exec:
    The command argument is parsed into tokens and then executed as a command in a separate process. The token parsing is done by a StringTokenizer created by the call:
    new StringTokenizer(command)
    As expected, it tokenized:
    ssh
    [email protected]
    'ls
    -al'
    Is there any way to bypass this default tokenization by exec to include quotes as one token?
    If anyone has any ideas, let me know! Thanks!

    thanks, solves that part.. but if i use execute command with ssh and bsub(a clustering job queue-submitter), it does ot return the correct value.
    For example, if i do ssh [email protected] bsub -I ls using exec and the waitFor() method, the waitFor waits indefinitely.
    I can tell it ran the job and ended, because i checked via bjobs and it finished. So why isn't the java app getting the exit code from waitFor() back?
    If I run the program on the targeted machine, bsub -I ls, it works correctly.
    If i type in the console, ssh [email protected] bsub -I ls, it returns back the results correctly.
    info regarding bsub and bjobs here http://www.ncsa.uiuc.edu/UserInfo/Resources/Hardware/XeonCluster/Doc/Jobs.html

  • Remote command execution via ssh on ips sensor...

    I am attempting to execute a command remotely via ssh so that I can collect the information on another host.
    ex: ssh -t username@sensor show tech-support
    Instead of the output I expect, I receive an error message: Error: Received invalid command line argument.
    Is this type of remote command execution supported by the sensor?
    Kevin Riggins

    Not true, i already created scritp to automaticly backup the IPS

  • Total nube to jws, need to run ssh command via web or jws?

    Ok So we had a developer that created this application that can basically run ssh commands via jws I believe. Unfortunately he is no longer here. I am wondering how you do this? I know tha commands that are already set up, but I have no idea how to implement it into my project.
    I am using Struts 2, Java 5, Weblogic 9.2, Spring
    Thanks
    orozcom

    Have a look at:
    http://www.jcraft.com/jsch/
    basically you'd need a small webstart client to wrap something like the above library. Best thing is to try with a standalone java client first. Once that is working have a look at turning it into a webstart app.

  • Cannot start NodeManager Remotly (Via SSH Commands)

    Hi all,
    we are going to start the node manager of one of the cluster servers via SSH command.
    But it is not starting. We can start it directly by log in to that server and run startNodemanager.sh script.
    What is the issue?
    Thanks,
    Nir

    Hi are you able to start Node manager using following WLST Command :
    startNodeManager(verbos='true',NodeManagerHome='$WL_HOME/common/nodemanager',ListenPort='<PortNo>',ListenAddress='<HostName')
    And also can check NodeManager Log files for errors .
    Regards
    Edited by: TheKop88 on Jun 5, 2013 6:13 PM

  • TACACS auth working via SSH, but not HTTP (ACS 5.1 / 3560)

    Experts,
    My switches are able to successfully authenticate user access against ACS 5.1 via SSH with TACACS+, but I am not able to authenticate via HTTPS with TACACS+.  I don't even get a log in ACS when attempting to authenticate via HTTPS.
    Here is my AAA config, followed by a debug:
    aaa new-model
    aaa authentication login ACCESS group tacacs+ local
    aaa authorization console
    aaa authorization config-commands
    aaa authorization exec ACCESS group tacacs+
    aaa authorization commands 1 Priv1 group tacacs+ none
    aaa authorization commands 15 Priv15 group tacacs+ none
    aaa authorization network ACCESS group tacacs+
    aaa accounting exec ACCESS start-stop group tacacs+
    aaa accounting commands 0 ACCESS start-stop group tacacs+
    aaa accounting commands 1 ACCESS start-stop group tacacs+
    aaa accounting commands 15 ACCESS start-stop group tacacs+
    aaa session-id common
    ip http authentication aaa login-authentication ACCESS
    ip http authentication aaa exec-authorization ACCESS
    ip http authentication aaa command-authorization 1 Priv1
    ip http authentication aaa command-authorization 15 Priv15
    ip http secure-server
    no ip http server
    tacacs-server host X.X.X.X key 7
    tacacs-server timeout 3
    tacacs-server directed-request
    Debug:
    47w4d: HTTP AAA Login-Authentication List name: ACCESS
    47w4d: HTTP AAA Exec-Authorization List name: ACCESS
    47w4d: HTTP: Authentication failed for level 15
    Shell authorization profiles are working in ACS when SSHing to devices (Priv1 and Priv15), and I can't figure out why its not working for HTTPS.
    Any ideas?

    Thank you for your response, here is the debug from the 3560:
    BC-3560-48-6-1-1#
    48w0d: HTTP AAA Login-Authentication List name: ACCESS
    48w0d: HTTP AAA Exec-Authorization List name: ACCESS
    48w0d: TPLUS: Queuing AAA Authentication request 0 for processing
    48w0d: TPLUS: processing authentication start request id 0
    48w0d: TPLUS: Authentication start packet created for 0(varnumd)
    48w0d: TPLUS: Using server 10.10.0.16
    48w0d: TPLUS(00000000)/0/NB_WAIT/458EDA8: Started 3 sec timeout
    48w0d: TPLUS(00000000)/0/NB_WAIT: socket event 2
    48w0d: TPLUS(00000000)/0/NB_WAIT: wrote entire 27 bytes request
    48w0d: TPLUS(00000000)/0/READ: socket event 1
    48w0d: TPLUS(00000000)/0/READ: Would block while reading
    48w0d: TPLUS(00000000)/0/READ: socket event 1
    48w0d: TPLUS(00000000)/0/READ: read entire 12 header bytes (expect 16 bytes data)
    48w0d: TPLUS(00000000)/0/READ: socket event 1
    48w0d: TPLUS(00000000)/0/READ: read entire 28 bytes response
    48w0d: TPLUS(00000000)/0/458EDA8: Processing the reply packet
    48w0d: TPLUS: Received authen response status GET_PASSWORD (8)
    48w0d: TPLUS: Queuing AAA Authentication request 0 for processing
    48w0d: TPLUS: processing authentication continue request id 0
    48w0d: TPLUS: Authentication continue packet generated for 0
    48w0d: TPLUS(00000000)/0/WRITE/4332F88: Started 3 sec timeout
    48w0d: TPLUS(00000000)/0/WRITE: wrote entire 30 bytes request
    48w0d: TPLUS(00000000)/0/READ: socket event 1
    48w0d: TPLUS(00000000)/0/READ: read entire 12 header bytes (expect 6 bytes data)
    48w0d: TPLUS(00000000)/0/READ: socket event 1
    48w0d: TPLUS(00000000)/0/READ: read entire 18 bytes response
    48w0d: TPLUS(00000000)/0/4332F88: Processing the reply packet
    48w0d: TPLUS: Received authen response status PASS (2)
    48w0d: TPLUS: Queuing AAA Authorization request 0 for processing
    48w0d: TPLUS: processing authorization request id 0
    48w0d: TPLUS: Inappropriate protocol: 25
    48w0d: TPLUS: Sending AV service=shell
    48w0d: TPLUS: Sending AV cmd*
    48w0d: TPLUS: Authorization request created for 0(varnumd)
    48w0d: TPLUS: Using server 10.10.0.16
    48w0d: TPLUS(00000000)/0/NB_WAIT/4332E18: Started 3 sec timeout
    48w0d: TPLUS(00000000)/0/NB_WAIT: socket event 2
    48w0d: TPLUS(00000000)/0/NB_WAIT: wrote entire 46 bytes request
    48w0d: TPLUS(00000000)/0/READ: socket event 1
    48w0d: TPLUS(00000000)/0/READ: Would block while reading
    48w0d: TPLUS(00000000)/0/READ: socket event 1
    48w0d: TPLUS(00000000)/0/READ: read 0 bytes
    48w0d: TPLUS(00000000)/0/READ/4332E18: timed out
    48w0d: TPLUS: Inappropriate protocol: 25
    48w0d: TPLUS: Sending AV service=shell
    48w0d: TPLUS: Sending AV cmd*
    48w0d: TPLUS: Authorization request created for 0(varnumd)
    48w0d: TPLUS(00000000)/0/READ/4332E18: timed out, clean up
    48w0d: TPLUS(00000000)/0/4332E18: Processing the reply packet
    48w0d: HTTP: Authentication failed for level 15

  • Adpatch: Error running SQL and EXEC commands in parallel

    Hi
    I am applying R12 RUP2 to an instance at the moment. I had an OS crash (I'm running R12 on Linux on VMWARE) and on reboot attempted to restart the patch.
    I now get an error as follows:
    Error running SQL and EXEC commands in parallel
    I must admit, I'm not a DBA, so if anyone has any ideas or has seen this before then it would be most appreciated!
    Thanks
    Chris

    Hi Adith
    The patch is 5484000, RUP 2 for E-Business Suite R12
    Here's the adpatch output:
    Start date: Wed Sep 12 2007 15:15:14
    0 "left over" javaupdates.txt files uploaded to DB: Wed Sep 12 2007 15:15:14
    0 patches uploaded from the ADPSV format patch history files: Wed Sep 12 2007 15:15:14
    Uploading information about files copied during the previous runs ...
    0 "left over" filescopied_<session_id>.txt files uploaded to DB: Wed Sep 12 2007 15:15:14
    ****************** E N D O F U P L O A D ******************
    End date: Wed Sep 12 2007 15:15:14
    Already asked for the name of the patch directory.
    (The answer was: /oracle/patches/5484000)
    Already asked for the name of the patch driver file.
    (The answer was: /oracle/patches/5484000/u5484000.drv)
    Reading release list save file...
    Done reading release list save file
    Log and Info File sync point:
    Wed Sep 12 2007 15:15:15
    Turning off actions that reference unrecognized products.
    Log and Info File sync point:
    Wed Sep 12 2007 15:15:15
    End of unrecognized products checking.
    (The number of parallel workers is: " 2 ")
    AutoPatch will run in parallel mode.
    Did not need to apply new applterr.txt.
    Skipping...
    Determine directories to create for Specified driver
    since no such action is present for this driver file
    Skipping...
    Determine Oracle Reports libraries to generate for Specified driver
    since no such action is present for this driver file
    Skipping...
    Determine if need to generate message files for Specified driver
    since no such action is present for this driver file
    Skipping...
    Create Directories for Specified driver
    since no such action is present for this driver file
    Number of invalid objects: 31057
    Running SQL scripts and EXEC commands...
    Determining which SQL and EXEC commands to run...
    Validating PL/SQL direct execute exceptions file ...
    Done validating PL/SQL direct execute exceptions file.
    SERVICE_NAME/INSTANCE_NAME : [VIS]
    connect_string : [(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ebusr12.chriseebee.me.uk)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=VIS)))]
    Done determining which SQL and EXEC commands to run.
    Running SQL and EXEC commands in parallel...
    Creating the AD_UTIL_PARAMS table...
    Table AD_UTIL_PARAMS already exists, so dropping the table and recreating it.
    Creating FND_INSTALL_PROCESSES table...
    Already created fnd_install_processes table
    Already created FND_INSTALL_PROCESSES_U1 index.
    Already created AD_DEFERRED_JOBS table
    Already created AD_DEFERRED_JOBS_U1 index.
    Writing dependencies of jobs to run to appldep.txt file...
    There are now 7569 jobs remaining (current phase=A0):
    0 running, 5 ready to run and 7564 waiting.
    Reading completed jobs from restart file (if any).
    There are now 3474 jobs remaining (current phase=A18):
    0 running, 1 ready to run and 3473 waiting.
    Determining which java executables are supported by adJavaWorker...
    Starting worker processes.
    Worker process 1 started.
    Worker process 2 started.
    Checking if all jobs have their actual and symbolic arguments in sync....
    Done.
    Writing jobs to run to restart file.
    Reading jobs from FND_INSTALL_PROCESSES table ...
    Running: file adobjcmp.sql on worker 1 for product ad username APPLSYS.
    AutoPatch error:
    The worker should not have status 'Running' or 'Restarted' at this point.
    Telling workers to quit...
    ************* Start of AD Worker session *************
    AD Worker version: 12.0.0
    AD Worker started at: Wed Sep 12 2007 15:15:34
    APPL_TOP is set to /oracle/VIS/apps/apps_st/appl
    ************* Start of AD Worker session *************
    AD Worker version: 12.0.0
    AD Worker started at: Wed Sep 12 2007 15:15:34
    APPL_TOP is set to /oracle/VIS/apps/apps_st/appl
    All workers have quit.
    AutoPatch error:
    Error running SQL and EXEC commands in parallel
    You should check the file
    /oracle/VIS/apps/apps_st/appl/admin/VIS/log/adpatch.log
    for errors.

  • Disable Non-Root Connections to WindowServer via SSH

    I recall that in previous versions of Mac OS, one could not start an application in another user's workspace via SSH unless they were root, e.g. by running /Applications/Safari.app/Contents/MacOS/Safari at the prompt. The error given was something about being unable to make a connection to the windowserver. Root privileges were required to do so.
    However, I note that now in Mountain Lion I can run, for example, the previous command and my Safari will pop up in the session of the currently logged in user, neither of us being root or even administators.
    Is there a way to revert to the old behaviour (without disabling Remote Login, obviously)? I note some potential for evil, e.g. "/Applications/Utilities/Vine\ Server.app/Contents/MacOS/Vine\ Server &" to start a VNC server and, violá! surreptitious monitoring/control of active session...

    This was previously not possible.
    It has always been possible via the open(1) command. In any case, that doesn't matter. SSH access is unlimited access, unless you allow only public-key logins and specify a command to be executed in the authorized_hosts file. There is no security issue here.

  • Using launchctl via SSH

    Hello everyone. Here's my situation:
    I'm running Leopard Server 10.5.8.
    Recently I made a plist file to put in my users's ~/Library/LaunchAgents folder. It runs an applescript at regular intervals throughout the day. Occasionally I need to stop and relaunch it, which I do using launchctl load ~/Library/LaunchAgents/nameofplist. (or unload, respectively.) This works fine when I'm logged in to the computer using my user's account, which is an admin account. BUT I want to do it via SSH instead. My user's account does not have access to SSH (for a good reason), so I use a special network user account for that. I SSH login remotely via Terminal, and then I type login username using my username and password. Then when I try the launchctl load command, I get this error:
    launch_msg(): Socket is not connected
    Does anyone know how I can get launchctl to work over SSH?

    LittleSaint wrote:
    Why would applescript be the problem? As long as it was compiled as a script and not an application, it should work just fine from a shell.
    Not all shells are equal. An ssh-only connection does not have access to the Aqua user interface.
    In Snow Leopard, the behavior seems to be different than before. It tries harder to find an Aqua session to run against. Before, I could just ssh from the Terminal and verify that my command line applications would or would not work. Now, even if I ssh from another account, if my original account is still logged in, I can still launch applications. I have to logout of my original account, login to a new account, ssh back to the original account and then try
    [jdaniel@pele:506] ~/Desktop $ osascript testit.scpt
    testit.scpt: execution error: An error of type -10810 has occurred. (-10810)
    in order to get the desired failure.
    Also, you have to actually access something in Aqua before it fails. The above error just comes from activating Address Book. If I take that out and just do 'set thename to "Hello"' it works fine. Of course, I don't know what you can do in AppleScript without telling some Aqua application to do it.

  • Can no longer connect via ssh

    I've been trying to learn basic networking and have set up a website to upload files to. I've been using ssh in Terminal to do this. Until today I have had no problem connecting and logging into the hosting site and transferring files.
    Now, after I enter my password, ssh does nothing, offers no response, takes no commands.
    Any ideas on what happened and how to remedy this?
    Thanks

    Answered my own question:
    opened another terminal window and used the command killall ssh to abort the previous session.
    Still don't know why it won't login to my server.

  • Connection hange while trying to connect via ssh.

    Hi all,
    I have this problem and i fixed it, just wanted to understand the logic behiend it.
    I tried to login to a machine via ssh.
    After providing the username and password, the connection hang until you press CTRL -C.
    I checked DNS configuration, and some other stuff.
    The problem was a NFS entry in the vfstab that was unreachable.
    When i removed it, the connection went smoothlly.
    My question is, why that entry caused that problem ?
    Thanks!

    At login, the shell runs 'quota -v' to display any over-quota conditions that might exist.
    If the NFS mount was not mounted with "noquta", then it will send an RPC request to the server. If the server is down, that request will take 60 seconds to time out. If you have multiple mounts to the server, they might run sequentially.
    The login should complete after a minute or so, but most users won't wait that long.
    Darren

  • "System Exec" command in NT / W95 How to use?

    Hi LVers,
    I can start the shell with the System Exec command with LV, but how can I put
    additional (batch) commandos into it?
    I already tried:
    - piping "cmd < dir"
    - batch files "mybatch.bat"
    Where are the differencies btw. NT and W95
    thanks
    tom

    I am not sure that I understand what you are trying to do.
    Anyway, in LVWUtil32.zip you can find some VIs that improve the use of System Exec[http://digital.ni.com/public.nsf/3efedde4322f​ef19862567740067f3cc/824b3db43031317686256aaf00713​218/$FILE/LVWUtil32.zip]. As far as I remember you have some good documentation inside.
    Also, you can use a KeyGenerator [http://hamiltondesign-consulting.com/ftpfiles/Sen​dKey.zip] to send commands to a shell window (via keystrokes).
    Hope this helps

  • Problem with issuing command via CustomScriptExtension

    I am trying to issue a CustomScriptExtension command to an Azure virtual machine from within my C# application. The CustomScriptExtension is installed in the VM and working. I verified this by issuing a test command via PowerShell. Essentially I am trying
    to execute what would be the equivalent to the PowerShell command Set-AzureVMCustomScriptExtension, but in code.
    Below is the code segment that I am having problems with:
    ComputeManagementClient client = new ComputeManagementClient(AzureSessionInfo.CloudCredentials);
    IList<ResourceExtensionReference> extReferences = new List<ResourceExtensionReference>();
    IList<ResourceExtensionParameterValue> extParamValues = new List<ResourceExtensionParameterValue>();
    string account = "{\"storageAccountName\":\"" + AzureSessionInfo.StorageAccount + "\",\"storageAccountKey\": \"" + AzureSessionInfo.StorageAccountKey + "\"}";
    string scriptfile = "{\"fileUris\": [\"" + "https://teststorageaccount.blob.core.windows.net/testcontainer" + "\"], \"commandToExecute\":\"powershell -ExecutionPolicy Unrestricted -file " + "ScriptName.ps1" + "\"}";
    byte[] bytes1 = System.Text.Encoding.UTF8.GetBytes(account);
    bytes1 = System.Text.Encoding.UTF8.GetBytes(account);
    string ScriptPrivateConfig = Convert.ToBase64String(bytes1);
    byte[] bytes2 = System.Text.Encoding.UTF8.GetBytes(scriptfile);
    bytes2 = System.Text.Encoding.UTF8.GetBytes(scriptfile);
    string ScriptPublicConfig = Convert.ToBase64String(bytes2);
    ResourceExtensionParameterValue extRef_Parameter1 = new ResourceExtensionParameterValue()
    Key = "CustomScriptExtensionPrivateConfigParameter",
    Value = ScriptPrivateConfig,
    Type = "Private"
    ResourceExtensionParameterValue extRef_Parameter2 = new ResourceExtensionParameterValue()
    Key = "CustomScriptExtensionPublicConfigParameter",
    Value = ScriptPublicConfig,
    Type = "Public"
    extParamValues.Add(extRef_Parameter1);
    extParamValues.Add(extRef_Parameter2);
    ResourceExtensionReference extRef_CustomScript = new ResourceExtensionReference
    Name = "CustomScriptExtension",
    Publisher = "Microsoft.Compute",
    Version = "*",
    ReferenceName = "CustomScriptExtension",
    ResourceExtensionParameterValues = extParamValues
    extReferences.Add(extRef_CustomScript);
    AzureSessionInfo.CloudServiceName = "CS1000001";
    AzureSessionInfo.VMName = "CS1000001";
    AzureSessionInfo.ImageFamilyName = "Windows Server 2012 R2 Datacenter";
    client.VirtualMachines.Update(AzureSessionInfo.CloudServiceName,
    AzureSessionInfo.VMName,
    AzureSessionInfo.VMName,
    new VirtualMachineUpdateParameters
    RoleName = AzureSessionInfo.VMName,
    ResourceExtensionReferences = extReferences
    I receive the following error message back from the call:
    BadRequest: Invalid extension reference parameter value in JSON configuration data for the Role: CS1000001, Reference name: CustomScriptExtension.
    I could only find very little documentation on this. Any help would be appreciated.

    Thanks Mekh... after many hours of researching and trial/error, I figured it out.
    The MSDN article I used previously led me down the wrong path. (see article here: http://msdn.microsoft.com/en-us/library/azure/dn781373.aspx). This may work for RESTful calls but not for .NET API calls.
    The part of the code that was hurting me was where the command strings (account and
    scriptfile) were being converted to Base64 encoding. This is NOT correct for .NET calls. Once I removed that, everything worked fine.
    I came across this after researching the same commands used by Linux scripts. They don't convert to Base64 either so I wonder why this is included in the documentation at all.
    In either case, I figured it out, but the documentation is very poor in this area (or all together non-existent). I don't even see where it is documented as to which JSON parameters names are supposed to be used, or even that JSON is required.
    Also, related to the Update command, if you are truly "updating" the config, you must include everything about the original config (whether it changed or not) along with the changes you want to make. If not then you will undo ALL but the changes
    you issued via the command.

  • Retrieving existing Java session

    Hi,
    i'm running a web application in java.  The webapp contains JSP pages which contain a Flex application.
    The Flex app is configured to communicate with the Java on the server side, via BlazeDS.
    I'm able to call Java services fine but unfortunately, when i do this, BlazeDS creates a new instanciation of Java classes instead of checking if there already is an existing one.
    So my question is is it possible, through BlazeDS, to retrieve an existing java session and existing java class instances?
    Thank you in advance for your insight
    Best regards
    Pier

    I still don't understand because your questions sounds too easy...
    All you need to do is change your
    public void main (String[] args)
    To
    public void main_progname(String[] args)
    and call it from a servlet.
    You can create 'args' from values from request.getParameter(<string>);
    That's all there is to it.
    Mike
    --- Tom DelGiudice <[email protected]> wrote:
    I am hoping to use the bulk of exisiting java
    programs in a step wise
    transition to total replacement with weblogic JSP
    and servlets. At first I
    would create the front end with weblogic jsp using
    the java programs for the
    business logic. Then I plan to build any new
    business logic with JSP
    servlets, and EJB still using the old java
    applications. Eventually the
    java apps would be phased out. A total renovation
    would be the right way to
    go, but today's IT management prefers small short
    term successes even if the
    total cost is greater. I hope this gives you the
    info you need to give me
    some insight. Thanks for your response Thomas
    DelGiudice"Mike Reiche" <[email protected]> wrote:
    >
    Please explain a little more why they need to be integrated into WL.
    Is there something
    specific in WL that you wish to use?
    Mike
    "Thomas DelGiudice" <[email protected]> wrote:
    Can anyone tell me how I can integrate existing java programs into weblogic.
    I hope to integrate these programs without converting them into beans
    or
    servlets.
    Thanks in advance Thomas DelGiudice

Maybe you are looking for

  • My iPad screen is cracked

    My iPad screen is cracked.

  • About regex and 'like' query

    Dear all, can i doing regex query in SAP B1? And how to use 'like' query with table, i mean : SELECT * FROM test T0 INNER JOIN test2 T1 WHERE T0 LIKE '%T1.testfield%' thanks for your help

  • Forwarding Agent should come automatically in Sales order

    Hi Experts, My user's requirement is Forwarding agent should come automatically in Sales order at partners tab. Can you please suggest what configuration do ineed to do, To get this Forwarding agent automatically in sales order level. Regards, Sunina

  • Need to Create a Live Update Smart Playlist That Shuts Off After a While

    Hi All-- I'm trying to create a smart playlist with the following properties: 1) Every time I play it, it selects a different random set of songs. 2) The playlist plays for a fixed duration, then shuts off.  (I like to go to sleep to music, but it wa

  • HT1386 ipod to iTunes?

    My hard drive on my desk top pc fried, had it replaced but lost all of my iTunes songs. Downloaded the new iTunes 11.1 program onto my pc. Still have the songs on my ipod Classic but do not know how to get them onto the iTunes program on my desktop.