|
From: Leif M. <le...@ta...> - 2006-05-03 02:10:54
|
Jeff,
Please post messages like this to the user list rather than to me
directly.
The -Xrs option should NEVER be used with the Wrapper. The log out
problem
is solved by the wrapper in other ways. Using the -Xrs function breaks
some other
features of the wrapper and shouldn't be used.
I don't really work with Swing. Someone on the list may have some
advice though.
One idea is to detect when the user has logged out and then hide any
dialogs from
within the application. When the user logs on again, you can restore
them again as
needed.
Implement the new
org.tanukisoftware.wrapper.event.WrapperEventListener and
register it as follows:
WrapperManager.addWrapperEventListener( listener,
WrapperEventListener.EVENT_FLAG_CONTROL );
It works a little differently from a regular listener for forward
compatibility.
Make sure to read the javadocs.
You can detect logouts by calling the
WrapperManager.getInteractiveUser( false )
method at regular intervals when logged in. If it returns null, the
user logged out.
It is a bit heavy, so don't call it too often.
Cheers,
Leif
Jeff Seifert wrote:
> Message body follows:
>
> We currently have an in house windows service that runs our
> java swing fat client. The service is set to interact with
> desktop. We are using -Xrs to keep that java process alive
> on logout. We have to keep the java application alive so
> that nightly batch functions will happen.
>
> We are experiencing a wierd problem with java 1.4.2_06.
> When you logoff and the JFrame desktop has a JDialog (Login
> screen) as a child then when you return and clear the login
> screen you loose focus from the JFrame desktop. The only
> way to get focus back to the desktop is to use ctrl+esc and
> click on the item in the taskbar. This puts focus back on
> the application but nothing will work. When you try to use
> the mouse on the menu you get the dunk dunk dunk sound.
> The Jframe's title is blue but nothing will take focus. We
> have also noticed that the application no longer shows up
> in the ALT+TAB list. Any help would be great.
>
> -Jeff
>
> --
> This message has been sent to you, a registered SourceForge.net user,
> by another site user, through the SourceForge.net site. This message
> has been delivered to your SourceForge.net mail alias. You may reply
> to this message using the "Reply" feature of your email client, or
> using the messaging facility of SourceForge.net at:
> https://sourceforge.net/sendmessage.php?touser=1514886
>
>
>
|