|
From: Prasad K. <pra...@em...> - 2002-12-06 18:53:13
|
When do you plan your next release?
Regards,
Prasad
-----Original Message-----
From: Leif Mortenson [mailto:le...@ta...]
Sent: Friday, December 06, 2002 1:50 PM
To: wra...@li...
Subject: Re: [Wrapper-user] No GUI ?!?
Good news, I got it working without showing the console :-)
The trick was to set the following in the startup info attribute when=20
creating the JavaProcess.
startup_info.dwFlags=3DSTARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
startup_info.wShowWindow=3DSW_HIDE;
For the ProcessFlags, I am using CREATE_NEW_PROCESS_GROUP
Anyway, I still want to do some more testing of this, but so far it=20
looks good.
This feature is already in CVS and will be in the next release.
Cheers,
Leif
Leif Mortenson wrote:
> I figured out how to allow Java to display a GUI while it is being run =
> as a service. :-D BUT! It will also display a console window at the=20
> same time. :-(
> I am currently creating the java process with the processflags:=20
> CREATE_NEW_PROCESS_GROUP
> In this mode, all features of the Wrapper work correctly, but there is =
> just that ugly console window to deal with.
>
> If I change the processFlags to: CREATE_NEW_PROCESS_GROUP |=20
> DETACHED_PROCESS then the console window goes away. In this mode I=20
> am still able to capture all output from the JVM for logging=20
> purposes. The problem is that in this mode, It does not seem to be=20
> possible to intercept system signals. This means that the Wrapper=20
> will kill the JVM if the user logs out. Furthermore, the Wrapper=20
> views this as if the user had hit CTRL-C so the Wrapper will also=20
> exit. In addition some features, like invoking a Thread Dump from=20
> within the JVM also fail. So this does not seem to be a valid option.
>
> I will look into this some more, but it is all coming back to me from=20
> when I had looked into this about a year ago... :-( If anyone knows=20
> how to intercept and generate system signals in a detached process, I=20
> would love to hear from you.
>
> Cheers,
> Leif
>
> Leif Mortenson wrote:
>
>> Kevin,
>> From the log, it looks like you are trying to run your application =
>> as a Service. The current version of the Wrapper does not allow the=20
>> Java process to access the desktop when running in that mode. That=20
>> is why you can not see your GUI.
>> If you run in console mode, then you should be able to see the GUI =
>> without any problems.
>>
>> There is currently an open feature request to allow access to the=20
>> desktop when run as a service. I have to figure out how to get it=20
>> working though :-)
>>
>> Cheers,
>> Leif
>>
>> Kevin & Laura Schmidt wrote:
>>
>>> Hello all,
>>> I am attempting to use wrapper 2.2.9 on WIndows 2000, and I have =
>>> everything working....except....The GUI of my swing app doesnt=20
>>> show!!! I am using the WrapperSimpleApp method to call my main,=20
>>> which constructs my mainFrame, calls mainFrame.show();, and then=20
>>> does some other stuff on startup. Well, I see the output of the=20
>>> other stuff, but the GUI never pops up, minimized or otherwise. I=20
>>> turned debug level to DEBUG, but didnt get an errors.
>>> Help!!!!!!!!
>>> -Kevin
>>>
>>> ps. Wrapper is a great program after *struggling* with =
JavaService!!!
>>>
>>> Here is a copy of my wrapper.log with DEBUG on:
>>>
>>> STATUS | wrapper | 2002/12/06 10:10:05 | --> Wrapper Started as=20
>>> Service
>>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> _______________________________________________
>> Wrapper-user mailing list
>> Wra...@li...
>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|