Rmiregistry surviving user log off

Is there any way to get rmiregistry to survive a user log off in Wni32?
If not is there a way to get source code so that it may be altered to start as a service and survive a user log off?
I am using 1.3.1_04 and 1.4.0_01 of the SDK and JRE on various machines and none survive the log off of a user in WinNT. I have my services start and they will survive the log off of a user but I will not be able to service any new connections after that because rmiregistry has been killed.
I know that Sun has no plans to correct this and there are several who could use this feature. What are possible work arounds?

I don't know if there's a direct solution but you can split this into two problems that are easy to solve:
1) You can start an RMI registry from any Java program -- check out
LocateRegistry.createRegistry(1099);
2) Using the "Java Service Wrapper" at http://sourceforge.net/projects/wrapper/ you can turn the above program into an NT service that is robust with respect to logoffs.
Check out the user forums on the above site -- especially the post "Application that starts the RMI service..." on http://sourceforge.net/forum/forum.php?forum_id=122338 .
Perhaps someone has a simpler solution ...

Similar Messages

  • How to set printer margins if using a lot of printers in virtual desktops which are deleted each time users logs off

    Hello,
    i am using Firefox version 31. I have a problem with page setup margins. I need to use left
    30mm; right 10mm; top 20mm; bottom 20mm. I am using VMware floating assignemnt linked clones
    virtual desktops. After users log off - machines are deleted and users next time logs on get's brand
    new VDI's. Users gets printers to VDI using login script from Active Directory.
    Option Explicit
    Dim strPrinterUNC, objNetwork
    strPrinterUNC = "\\some_server\printer_number_1"
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.AddWindowsPrinterConnection strPrinterUNC
    WScript.Sleep (20000)
    objNetwork.SetDefaultPrinter strPrinterUNC
    Set objNetwork = Nothing
    Each user have different logon script, because they use different printers (different printer names e.g. \\some_server\printer_number_2 ; \\some_server\printer_number_3 and etc. Page setup margins in Internet Explorer are ok. But how to make Firefox page setup margins as i need? For other options i have
    used CCK2 Wizard 2.0.4 tool. It worked fine. Maybe i can put some information in C:\Program
    Files\Mozilla Firefox\defaults\pref\autoconfig.js I have some usefull data in it allready. I
    have found info that: "Setting print margins is done in the printer settings". I have a lot of
    printers, so i can not set printer margins individualy for each of them. Now mozilla shows top,
    bottom, right, left each 12.7 mm. What should i do if i have a lot of printers in enterprise
    environment?

    Firefox has a profile folder that has preferences to save this. But the config that would need to be changed is:
    print. save_print_settings = True - (default): Save the print settings after each print job
    Locking that preference: [http://kb.mozillazine.org/Locking_preferences]
    Or done manually:
    #In order to check the margins, we need to go to ''File'' > ''Page Setup''.
    #Once this is done, switch to the ''Margins & Header/Footer'' tab.
    #Check what's set there under ''Margins''.
    The following are the default values for ''Margins'':
    Check these values accordingly and change them if necessary.

  • To Find the user log off date

    Hello Gurus
          I need to find the user log off and log on details.Suppose if the user logs of today and Logs on tommmorow...Then I need to get both those log off and log on details.The log details can be found from USR02 table..Plz help me in finding out the log off date of the user..IThanks
    Ganesh
    Edited by: Ganesh Kumar on Mar 9, 2009 6:57 PM

    Explore SM19 and SM20 tcodes for your requirement.

  • Java dying when user logs off machine

    I have developed a class that monitors a MQ queue, I used the active-x bridge to allow distribution to both java and VB developers to use. The application that is to be developed should be running on a machine in the background.
    I created a test VB program using the java class and created a "scheduled task" to start on system start up. When I start the machine, the application starts up and runs. Then a user logs into the machine, and application is still running. Then the user logs off the machine, and the program stops.
    I have a VB porgram without the java active-x bridge object and that works throughout the login/logout process.
    Any thoughts on how I can keep the program running continously, thanks.

    Well, I found a solution. If you add the paramater -Xrs to the java command, it will reduce the use OS signals. Thus it will ignore the hook that Windows has.
    It turns out this was a bug in version 1.3. For some non-light reading and more info, see http://developer.java.sun.com/developer/bugParade/bugs/4323062.html

  • Run LabVIEW executable when user logs off

    I have a customer request to do this.
    My customer has a computer in their plant that I wrote a LabVIEW applicaiton to monitor part of their process.  This computer performs other functions in addition to my program.  Their IT department has changed their policy that mandates that anybody using this computer has to log in under their own user name and password.  Prevoulsy it was just a group  user name and password.  What this means for me is everytime a new user needs to use the PC they have to log off and log back on.  This stops my program.
    Is there a way to have a LabVIEW executable keep running when different users log off and log on?
    Thanks
    Dan

    Sounds like you need a service. It may be a complete architecture change, but you could have an executable running as a service and a user interface executable connecting to it (e.g. via TCP/IP). The service itself can't have a UI.
    Without using a service there's no way an application can continue running when a user logs off (afaik).
    A service is started even if no user logs on.
    There's tools like srvany or similar that allow to run an executable as a service.
    Daniel
    Message Edited by dan_u on 08-18-2009 03:13 PM

  • IPlanet 6.0 SP2 restart on Windows NT when a user logs off the server.

    UPDATE: We have found that the iWS 6.0 only restart with JDK 1.3.1 installed for JSP pages. What is the best JDK to use?
    iPlanet 6.0 SP2 restart on Windows NT when a user logs off the server. If a admin or joe developer logs into the server (C+A+D) and does what ever... When the
    person logs off the NT 4.0 box ... ALL the httpd process restart. We have 80 & 443 & Admin. The processes are running under a user account. Any one have an idea why the process are restarting?"

    Hi,
    You can use following JDK version for Windows NT.
    And please check it out whether WinNT-SP6 as been installed in winNT box.
    Window NT:
    SDK and JRE 1.4 http://java.sun.com/j2se/1.4/
    SDK and JRE 1.3.1_02 http://java.sun.com/j2se/1.3/
    SDK and JRE 1.2.2_011 http://java.sun.com/products/jdk/1.2/
    JDK and JRE 1.1.8_009
    http://java.sun.com/products/jdk/1.1/download-jdk-windows.html
    I hope this helps.
    Regards,
    Dakshin.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • Applications still run after user logged off

    Hi,
    I have a w2k8r2 Terminal server and have a problem that have eluded me for some time now.
    When a user is logged off, by either being disconnected or being inactive for a prolonged time, the user initiated programs are still running.
    To be more exact, Some times when a user is logged off I have the following situation:
    In the task manager on the users tab I cannot see the user anymore (nor in the remote desktop services manager), but in the Processes tab I can still see user initiated programs running. Furthermore I am not able to kill any of those programs, getting an
    "Access is denied" error message.
    My problem is that when the Terminal Server enters this "state" it becomes all buggy and itchy, causing loads of problems for the users that are already logged in (and for the new ones trying to log in). The only solution I have found is rebooting
    the server.
    Any solution, or further troubleshooting steps, are more than welcome. For me the next step is reinstalling which I really don't want

    1. Check any task schedular is running for application or not,
    Refer :
    http://answers.microsoft.com/en-us/windows/forum/windows_7-security/if-i-log-off-at-night-leave-computer-on-will/559eec53-1d2a-46f8-ac12-f0d4a32ab57a?msgId=b51d42b3-e727-40c0-b94e-8a01b31bf526
    2. Also update Antivirus and scan completely.
    3. Is it specific application or all the application, Which user opened in his session?
    4. If specific application is running (In this scenario Outlook is running even user logs off), Try the below Citrix forum thread.
    Refer :
    http://discussions.citrix.com/topic/301644-user-logs-off-process-outlookexe-stays-active-error-the-citrix-server-has-reached-its-concurrent-application-limit/
    5. Check and update  TCP/IP driver
    Refer : http://support.microsoft.com/kb/2465772/en-us
    6. Also cross verify Dharmesh suggestions also.
    Regards,
    Manjunath Sullad

  • RMI listener stops whenever the user logs off Windows

    Hi guys...
    I have a problem whereby the RMI listener stops whenever the user logs off Windows.
    I've gone through the net and the only solution was to add "-Xrs" to the end of the "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IBM Tivoli Identity Manager Adapter" service for the ImagePath statement.
    Unfortunately for me, that did not work.
    Anybody knows how I can go around fixing this.
    Much appreciated.

    What's the RMI listener?
    Do you mean the RMI Registry?
    In which case the solution is to add that same flag when you run the registry.

  • Is there a script or a secure program that I could use to remove profiles after a given user logs off from the system?

    I am trying to do this on a network for a specific lab that uses Active Directory. I would like to accomplish this on each individual iMac. The only account that would not be removed after logging off would be the Administrators.
    Thanks.

    Also, If I created a default profile on each system, could each user log in and be redirected to that profile and all of their network resources be readily available, and once they log out of the system, they are disconnected and all of their information is removed? (Hope this makes sense.)

  • How do make inactive RFC sessions timeout after user logged off?

    Hi,
    In SM04 we can see many sessions of type RFC belonging to users who already logged off. These sessions seem to stay allive for hours if not days.
    Exapmle:
    700  HAMILTONAN                                09.45.35    1  RFC                     8
    700  CHUAE                                     04.08.10    1  RFC                    50
    700  LIMMA                                     02.18.12    1  RFC                    45
    The standard icm timeout settings are set and works fine, but for some reason these assosiated RFC sessions seem to stay logged on.
    Is there any parameter maybe or any other solution anyone is aware of to make these sessions log off if inactive?

    Hi,
    Its basis activity but still ,
    Have a look at this parameter <i><b>rdisp/keepalive_timeout</b></i> it should be set to some seconds, after which if user stays idle system will force fully logged them off...
    How to Change : RZ11 -> put the parameter name -> Change ...
    Hope that helps.
    Regards
    Mr Kapadia

  • Security log 4634 shows another user logging off

    Security log shows users logoff that weren't even using the machine. There are no 4642 logon logs, just the 4643 logoff logs.
    These user aren't even accessing another machine via the network. All machines also have no malware or virus on them.
    Logon Type: 3
    This event is generated when a logon session is destroyed. It may be positively correlated with a logon event using the Logon ID value. Logon IDs are only unique between reboots on the same computer.
    What could be causing this?

    It's a domain enviroment. Printers are all through a Print Server.
    Below is the log of 1 such event.
    Log Name:      Security
    Source:        Microsoft-Windows-Security-Auditing
    Date:          2014-04-04 03:04:24 PM
    Event ID:      4634
    Task Category: Logoff
    Level:         Information
    Keywords:      Audit Success
    User:          N/A
    Computer:      (computer name.domain)
    Description:
    An account was logged off.
    Subject:
    Security ID:
    S-1-5-21-213254720-224688177-246369
    Account Name:
    (username)
    Account Domain:
    (domain)
    Logon ID:
    0x197EC67
    Logon Type: 3
    This event is generated when a logon session is destroyed. It may be positively correlated with a logon event using the Logon ID value. Logon IDs are only unique between reboots on the same computer.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
        <EventID>4634</EventID>
        <Version>0</Version>
        <Level>0</Level>
        <Task>12545</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8020000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-04T13:04:24.783747600Z" />
        <EventRecordID>108300</EventRecordID>
        <Correlation />
        <Execution ProcessID="724" ThreadID="756" />
        <Channel>Security</Channel>
        <Computer>(computer name.domain)</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="TargetUserSid">S-1-5-21-213254720-224688177-246369</Data>
        <Data Name="TargetUserName">(username)</Data>
        <Data Name="TargetDomainName">(domain)</Data>
        <Data Name="TargetLogonId">0x197ec67</Data>
        <Data Name="LogonType">3</Data>
      </EventData>
    </Event>

  • Want to know the number of user logged off

    Hi
    Using Mii server, how to check how many user where logged off.
    Regards
    Rizvi

    Hi,
    You need to write customized java code in your development. Set the session of the user logged in and store. And get these details from the JSP page.
    Also in MII logs you can find these details.
    http://localhost/Lighthammer/Illuminator?service=SystemInfo&Mode=SessionStats
    Using this you have to play around the code.
    -Suresh

  • Server keep running after user log-off?

    Just need confirmation...
    Does it keep running all services (mail, web, etc...) after logging off a user from macosx 10.5.4 server?

    thanks. just need to create new user and log in because current user's finder is relaunching on almost every action with it... want to try if it's problem with user or all system.

  • TS3147 Printers Pausing: Other Users Log-off before job done permanently pauses printers

    I have a problem with printers pausing. I work for a University, and this concerns computer lab Macs. Whenever someone Prints to a printer, and logs off before the print job is completely though, the printer pauses permanently for all other users.
    I have found 2 temporary fixes:
         1) have initial user log back in, and allow job to complete (Hard to do, since there are 4000+ students here)
         2) Delete printer and re-add them (I unpause close to 1-3 printers a day this way currently)
    Since those fixes require multiple trips, and or trying to reach people, they are not great solutions
    How can I fix this problem so it won't happen again?
    Theories of how to fix I don't know how to impliment (I normally am a PC guy):
         1) Clear print que on log-off Script
         2) Delay Log-off Script (Allow print job to go though)
         3) Checkbox somewhere to override the printers pausing?
    Happens on both our iMacs, and Mac Minis we use on campus.

    4on6 wrote:There are some related threads in this forum, but I still can't figure out what is my problem (printer works in some situations - printing a pdf in evince or a webpage in chromium - but in others not, e.g. printing from emacs).
    The distinction that comes to mind here is that emacs (and some others) will print via lp.  I suspect that the default printer for lp is not set, and therefore the print job is lost.
    To test this, create ~/.cups/lpoptions (if you don't already have it) with the content:
    Default <The_Name_Of_My_Printer_In_CUPS>
    And see if that helps.

  • System PATH environment variable issue when user log off and log in or switch from admin to non-admin account

    Hi,
    Problem Description:
    After installing my new product version, when user does log-off and log in again into admin account
    or switch from admin account to non-admin account, PATH environment variable shows incorrect path of my product (previous product version’s path) using command prompt.
    It seems windows refresh issue during session changes (log off and log in / switch from Admin to
    Non-admin account).
    Why PATH environment variable is not refresh immediately after log off and log in again or Switch
    from admin to non-admin mode?. 
    Please see my thread for more details http://social.msdn.microsoft.com/Forums/vstudio/en-US/445ab42c-bdff-405a-8d53-558e1b6c7d34/path-environment-variable-issue-when-user-logoff-and-login-or-switch-from-admin-to-nonadmin?forum=windowsgeneraldevelopmentissues
    Also submitted bug for this in connect.microsoft.com portal.In that it has lots of information
    like problem statement, Reproduction steps and Expected Results.
    Bug ID: 871782
    Could you please any body help me for this?. your support will be appreciated.
    Thanks,
    Marichamy

    Why PATH environment variable is not refresh immediately after log off and log in again or Switch
    from admin to non-admin mode?. 
    I wouldn't have any expectation of what you are doing to work the way you expect.  E.g. why is the %ABC% being replaced at all?  There is some help about this ambiguous scenario in the cmd help...
    /V:ON Enable delayed environment variable expansion using ! as the
    delimiter. For example, /V:ON would allow !var! to expand the
    variable var at execution time. The var syntax expands variables
    at input time, which is quite a different thing when inside of a FOR
    loop.
    /V:OFF Disable delayed environment expansion.
    So, what's the setting for the /V:  switch that your users would be using?  Perhaps you should be using the ! instead of the % for your ABC variable?
    Oh.  There's more below where I found that...
    Delayed environment variable expansion is NOT enabled by default. You
    can enable or disable delayed environment variable expansion for a
    particular invocation of CMD.EXE with the /V:ON or /V:OFF switch. You
    can enable or disable delayed expansion for all invocations of CMD.EXE on a
    machine and/or user logon session by setting either or both of the
    following REG_DWORD values in the registry using REGEDIT.EXE:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\DelayedExpansion
    and/or
    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\DelayedExpansion
    to either 0x1 or 0x0. The user specific setting takes precedence over
    the machine setting. The command line switches take precedence over the
    registry settings.
    In a batch file the SETLOCAL ENABLEDELAYEDEXPANSION or DISABLEDELAYEDEXPANSION
    arguments takes precedence over the /V:ON or /V:OFF switch. See SETLOCAL /?
    for details.
    If delayed environment variable expansion is enabled, then the exclamation
    character can be used to substitute the value of an environment variable
    at execution time.
     So, I guess the essence of your "bug" will boil down to whether you
    need the feature to get the result you want and the
    truth of that first sentence but it certainly looks like a "can of worms" to me.   ; )
    HTH
    Robert Aldwinckle

Maybe you are looking for

  • Error in Posting Payroll to Accounting

    Dear HR Gurus, While posting the current month payroll for posting I get the following for some perdonnel numbers. Account with the following search key was not found: 1000HRF3100 Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL D

  • How can I change the default text on my homepage tab?

    When my homepage displays it has some kind of weird garbled text in the page tab at the top. Is it just a placeholder? How do I change it?

  • Customer Exit with offset as input to other Customer Exit variable?

    Hi Experts I have a query which uses a Customer Exit variable "A" with an offset. My problem is then that I would like to use the outcome of "A"+offset as input for another Customer Exit variable "B" in the same query. Is this possible somehow? Summi

  • PCR Operations/Functions

    Hi All, Can you pls let me know the operations to read  employee start date, a date type from IT 0041and leave start date in the PCR. Thanks, Karunakar

  • How to reinstall drivers for internal Microphone (Leopard)

    My Internal microphone stopped working about the same time I installed Wirecast and Screenflow. Any ideas how I can check that the core audio drivers are installed, or just reinstall them altogether? I am extremely technical, but not a UNIX guy, so a