You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(13) |
Nov
(16) |
Dec
(29) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(38) |
Feb
(51) |
Mar
(51) |
Apr
(115) |
May
(82) |
Jun
(30) |
Jul
(50) |
Aug
(68) |
Sep
(57) |
Oct
(160) |
Nov
(80) |
Dec
(78) |
| 2004 |
Jan
(71) |
Feb
(75) |
Mar
(108) |
Apr
(87) |
May
(79) |
Jun
(70) |
Jul
(69) |
Aug
(39) |
Sep
(52) |
Oct
(47) |
Nov
(50) |
Dec
(32) |
| 2005 |
Jan
(22) |
Feb
(122) |
Mar
(46) |
Apr
(76) |
May
(31) |
Jun
(51) |
Jul
(61) |
Aug
(70) |
Sep
(37) |
Oct
(46) |
Nov
(57) |
Dec
(83) |
| 2006 |
Jan
(55) |
Feb
(81) |
Mar
(51) |
Apr
(67) |
May
(77) |
Jun
(43) |
Jul
(106) |
Aug
(64) |
Sep
(47) |
Oct
(64) |
Nov
(60) |
Dec
(12) |
| 2007 |
Jan
(50) |
Feb
(93) |
Mar
(49) |
Apr
(56) |
May
(40) |
Jun
(63) |
Jul
(40) |
Aug
(47) |
Sep
(54) |
Oct
(37) |
Nov
(54) |
Dec
(37) |
| 2008 |
Jan
(35) |
Feb
(39) |
Mar
(26) |
Apr
(14) |
May
(23) |
Jun
(51) |
Jul
(43) |
Aug
(26) |
Sep
(29) |
Oct
(31) |
Nov
(24) |
Dec
(16) |
| 2009 |
Jan
(21) |
Feb
(30) |
Mar
(74) |
Apr
(26) |
May
(26) |
Jun
(43) |
Jul
(23) |
Aug
(23) |
Sep
(15) |
Oct
(27) |
Nov
(37) |
Dec
(10) |
| 2010 |
Jan
(16) |
Feb
(28) |
Mar
(16) |
Apr
(45) |
May
(8) |
Jun
(68) |
Jul
(45) |
Aug
(44) |
Sep
(51) |
Oct
(7) |
Nov
(20) |
Dec
(21) |
| 2011 |
Jan
(14) |
Feb
(17) |
Mar
(7) |
Apr
(7) |
May
(48) |
Jun
(23) |
Jul
(5) |
Aug
(33) |
Sep
(22) |
Oct
(14) |
Nov
(14) |
Dec
(5) |
| 2012 |
Jan
|
Feb
(10) |
Mar
(12) |
Apr
(51) |
May
(10) |
Jun
(8) |
Jul
(14) |
Aug
(22) |
Sep
(9) |
Oct
(24) |
Nov
(14) |
Dec
(13) |
| 2013 |
Jan
(12) |
Feb
(4) |
Mar
(14) |
Apr
(19) |
May
(2) |
Jun
(5) |
Jul
(13) |
Aug
(10) |
Sep
(4) |
Oct
(11) |
Nov
(13) |
Dec
(2) |
| 2014 |
Jan
(3) |
Feb
(14) |
Mar
(5) |
Apr
(10) |
May
(10) |
Jun
(11) |
Jul
(10) |
Aug
(3) |
Sep
(13) |
Oct
(22) |
Nov
(14) |
Dec
(32) |
| 2015 |
Jan
(8) |
Feb
(2) |
Mar
(17) |
Apr
(1) |
May
(24) |
Jun
|
Jul
(4) |
Aug
|
Sep
(9) |
Oct
(9) |
Nov
(5) |
Dec
(2) |
| 2016 |
Jan
(8) |
Feb
(6) |
Mar
(6) |
Apr
(9) |
May
(3) |
Jun
(2) |
Jul
(7) |
Aug
(6) |
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
| 2017 |
Jan
(9) |
Feb
(8) |
Mar
(6) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
(10) |
Sep
(8) |
Oct
|
Nov
(6) |
Dec
|
| 2018 |
Jan
|
Feb
(5) |
Mar
(7) |
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(9) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2019 |
Jan
(9) |
Feb
|
Mar
|
Apr
(10) |
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2021 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(3) |
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2023 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2026 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Sal I. <sal...@sy...> - 2003-10-05 11:07:15
|
thanks for the slack =) back to your COM request problem. I suggest you look at a thread dump to see if there is any part of your program generating the COM requests: 1. run "wrapper -c wrapper.conf" 2. wait for the the program to enter a point in which you believe COM requests are being performed 3. issue a ctrl-break this will dump all the threads and their stack-traces. you should immediately be able to recognize any piece of code that indeed is making COM requests. however i can guess why the wrapper would *indirectly* generate com requests: 1. the wrapper spawns a JVM 2. whether the wrapper uses ShellExecute (or WinExec), the call is always proxied through ShellExecute 3. ShellExecute is not much more than utility function that simply wraps the explorer COM interface to actually spawn the process so that would explain the COM request. but that is the only request i might (if at all) expect to see. -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Jim Redman Sent: Wednesday, October 01, 2003 6:07 PM To: wra...@li... Subject: Re: [Wrapper-user] How Does One... Remotely Restart a JVM Sal, My apologies, my initial google search for JMX and DCOM shows up a number of references. I should have read them more closely. The DCOM reference, although in the same paragraph refered to other Sun extension. Back to the drawing board on why the wrapper generates COM requests. Jim On 2003.10.01 18:05, Sal Ingrilli wrote: > no. > > 1. download the jmx libraries from here > http://java.sun.com/products/JavaManagement/download.html > > 2. put these 2 files from the above download in your classpath > jmxri.jar > jmxtools.jar > > 3. convert the attached sample code to fit somewhere in your system. > > 4. point a browser to the jmx-console: > http://localhost:8082 > > 5. Click on > Adaptor | protocol=Wrapper > > 6. Click restart > > 7. learn jmx from the best book: JMX Managing J2EE with Java > Management > Extensions by Lindfors and Fleury > > 8. Next time, before you post, go to www.google.com, enter type "jmx", > press > "Google Search", click on the first link that comes up & you'll find > out > what jmx is (or at least that it's not COM) > > sal. > > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...]On Behalf Of Jim > Redman > Sent: Wednesday, October 01, 2003 4:14 PM > To: wra...@li... > Subject: Re: [Wrapper-user] How Does One... Remotely Restart a JVM > > > Is JMX based on Windows COM? > > Jim > > On 2003.10.01 17:05, Sal Ingrilli wrote: > > we embedded the sun jmx server into our app & restart the service > > through > > the wrapper jmx interface. > > that's also how we issue thread dumps when running as a service. > > > > -----Original Message----- > > From: wra...@li... > > [mailto:wra...@li...]On Behalf Of Daniel > > Lemus > > Sent: Wednesday, October 01, 2003 3:44 PM > > To: wra...@li... > > Subject: [Wrapper-user] How Does One... Remotely Restart a JVM > > > > > > Here's the situation: > > I have a process that the wrapper runs as a service, but the service > > is on > > another box. I also do not have permission to restart the service. > > In > > cases where I have a patch to push out on the server, I have to wait > > for the > > admin on the box to restart my service (as to reload the JVM and to > > load my > > changes). > > > > This might be correct in a production environment, but our > development > > environment is the same (I have to wait for someone else to restart > > the > > service). This gets a bit annoying (on the admin's side to), so > here > > is my > > question: > > -Is there a way to remotely call "something" to restart the JVM on > > demand? > > > > I have read that there is a WrapperManager that has a restart() > > method, but > > how can that be called? Would I have to have another service > running > > that > > has the sole purpose of restarting JVMs? > > > > (This is on an NT 2000 box, and there is no chance to give me > > permission to > > start/stop services on their boxes). > > > > Thanks for any assistance. > > > > -Dan > > > > _________________________________________________________________ > > Frustrated with dial-up? Get high-speed for as low as $29.95/month > > (depending on the local service providers in your area). > > https://broadband.msn.com > > > > > > > > ------------------------------------------------------- > > 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 > > > > -- > > Jim Redman > (505) 662 5156 x85 > http://www.ergotech.com > > > ------------------------------------------------------- > 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 > > package com.syncvoice.commons.jmx.impl; > > import javax.management.MBeanServer; > import javax.management.MBeanServerFactory; > import javax.management.ObjectName; > > import com.sun.jdmk.comm.HtmlAdaptorServer; > > /** > * <p>Title: </p> > * <p>Description: </p> > * <p>Copyright: Copyright (c) 2003</p> > * <p>Company: </p> > * @author not attributable > * @version 1.0 > */ > > public class Demo { > // java -cp c:\proj\vxtracker\commons\classes;C:\temp\wrapper > \jmxri.jar;C:\temp\wrapper\jmxtools.jar;C:\temp\wrapper\wrapper.jar > com.syncvoice.commons.jmx.impl.Demo > public static void main (final String[] args) { > try { > // create jmx mbean server > final MBeanServer server = MBeanServerFactory.createMBeanServer > (); > > // start jmx-console mbean > { > log ("starting jmx-console"); > final HtmlAdaptorServer mbean = new HtmlAdaptorServer (); > mbean.setPort (8082); > mbean.start (); > final ObjectName mbeanObjectName = new ObjectName > ("Adaptor:protocol=HTTP,port=8082"); > server.registerMBean (mbean, mbeanObjectName); > } > > // start wrapper mbean (wrapper 3.0.5) > { > log ("starting wrapper console"); > final Class mbeanClass = forName > ("org.tanukisoftware.wrapper.jmx.WrapperManager"); > final Object mbean = mbeanClass.newInstance (); > final ObjectName mBeanObjectName = new ObjectName > ("Adaptor:protocol=Wrapper"); > server.registerMBean (mbean, mBeanObjectName); > } > > // wait > log ("entering modal loop"); > while (!Thread.currentThread ().isInterrupted ()) { > Thread.sleep (500); > } > } > catch (final Throwable t) { > t.printStackTrace (); > } > } > > /** > * JVM-version independent one-stop-location to create a class > object > * from a fully qualified class name > * @param className > * @return > * @throws ClassNotFoundException > */ > private static Class forName (final String className) > throws ClassNotFoundException { > > final Thread currentThread = Thread.currentThread (); > final ClassLoader classLoader = > currentThread.getContextClassLoader (); > final Class newClass = classLoader.loadClass (className); > return newClass; > } > > /** > * Helper to log > * @param string > */ > private static void log (final String string) { > System.out.println (string); > } > } -- Jim Redman (505) 662 5156 x85 http://www.ergotech.com ------------------------------------------------------- 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 |
|
From: Leif M. <le...@ta...> - 2003-10-03 18:01:21
|
Mike, As an after thought, I added the following to the top of the script. I don't have a non-NT based machine to make sure that the error is actually displayed correctly however :-/ Cheers, Leif @echo off setlocal if "%OS%"=="Windows_NT" goto nt echo This script only works with NT-based versions of Windows. goto :eof :nt rem ... |
|
From: Leif M. <le...@ta...> - 2003-10-03 17:54:59
|
Mike,
Thanks for all the work you put into this and sorry for the slow response.
Here are my thoughts on this. I want to keep the existing batch files around
to give the users options. But personally, I think I will start using
your new
script. It looks great.
I am planning to add the new batch file as src/bin/AppCommand.bat.in
I am not totally happy with the name. Do you have any other ideas.
I don't really see any reason to put in the deprecated code as this will be
a new script. I know you were planning to replace the old script, so it
would
have been valid.
I also removed the code to create the logs directory. Its location will
depend on the configuration in the wrapper.conf file so it can't be hard
coded into the batch file. There has been a feature request to create the
batch file if it does not exist for a while, so I'll try to get that
implemented
in a cross platform way for the next release.
The batch file that I committed, with the above changes can be found at
the end of this mail. Let me know if you have any other suggestions. From
my testing so far, it looks great though. Good work.
Cheers,
Leif
@echo off
setlocal
rem
rem Find the application home.
rem
rem %~dp0 is name of current script under NT
set _REALPATH=%~dp0
set _WRAPPER_EXE=%_REALPATH%Wrapper.exe
rem Find the requested command.
for /F %%v in ('echo %1^|findstr "^console$ ^start$ ^stop$ ^restart$
^install$ ^remove"') do call :exec set COMMAND=%%v
if "%COMMAND%" == "" (
echo Usage: %0 { console : start : stop : restart : install : remove }
pause
goto :eof
) else (
shift
)
rem
rem Find the wrapper.conf
rem
:conf
set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf"
rem
rem Run the application.
rem At runtime, the current directory will be that of Wrapper.exe
rem
call :%COMMAND%
if errorlevel 1 pause
goto :eof
:console
echo on
"%_WRAPPER_EXE%" -c %_WRAPPER_CONF%
goto :eof
:start
"%_WRAPPER_EXE%" -t %_WRAPPER_CONF%
goto :eof
:stop
"%_WRAPPER_EXE%" -p %_WRAPPER_CONF%
goto :eof
:install
"%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
goto :eof
:remove
"%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
goto :eof
:restart
call :stop
call :start
goto :eof
:exec
%*
goto :eof
|
|
From: Geetha <ge...@ho...> - 2003-10-02 05:55:34
|
Leif, 1. The first piece of set commands executed in a batch file, creates a = unique file name to be used for logging purposes. The current date and = time is taken and the special characters like / - : . and space are = replaced and then used. This is not critical if the wrapper doesnt = support this. 2. If I can redirect the console err and out output to different files, = that would be great. This is critical since we need to monitor the = system and debug any issues using the files. Would be glad if we could = get this feature.=20 Thanks Geetha Geetha, =20 > I just downloaded the Java Service Wrapper and I find it very useful. =20 Great, I'm glad you are finding it useful. =20 > I am facing two problems with the wrapper. > =20 > 1. I have a need to create a unique file name for which i use the=20 > following commands in a batch file > =20 > set TS=3D%date%%time% > set TS=3D%TS:/=3D% > set TS=3D%TS:-=3D% > set TS=3D%TS:.=3D% > set TS=3D%TS::=3D% > set TS=3D%TS: =3D% > =20 > But when I put this in the wrapper.conf file in the specified format=20 > (set.TS format), TS evaluates in the end to %TS: =3D%. =20 I'll plead ignorant to this. What are you expecting those various = commands to do? The only kind of variable expansion that the wrapper currently = knows how to do is to expand an environment variable with the exact name = between the '%' characters. So it is going through each of your commands and=20 looking for the specified environment variable. When a variable can not be=20 found, the Wrapper leaves the string as is. =20 So in this case, the last thing it does is look for an environment=20 variable called "TS: =3D" which does not exist, so the TS variable gets the final = string=20 unmodified. =20 If you could explain what you are expecting to have happen here, and=20 point me to some online docs describing the functionality, this may be something = could be a feature in a future release. I am a bit curious. =20 > 2. Command line execution of my java program looks like > java xyz1>test.out 2>test.err > =20 > How do i specify this in the wrapper.conf file? Which property=20 > should be set to send the console out and err to the respective = files? =20 Currently this is not possible with the Wrapper. It takes all output=20 from the JVM, err and out and merges them into a single output stream. out = messages are logged at level INFO and err at level ERROR. =20 As things are implemented right now, it would be difficult to get this=20 working without breaking things compatibility wise for existing users. I have=20 one idea, but I'll have to look into a bit. At the best, it would be a little = bit=20 kludgey to configure however. :-/ =20 Cheers, Leif |
|
From: Jim R. <jr...@er...> - 2003-10-02 01:07:49
|
Sal, My apologies, my initial google search for JMX and DCOM shows up a number of references. I should have read them more closely. The DCOM reference, although in the same paragraph refered to other Sun extension. Back to the drawing board on why the wrapper generates COM requests. Jim On 2003.10.01 18:05, Sal Ingrilli wrote: > no. > > 1. download the jmx libraries from here > http://java.sun.com/products/JavaManagement/download.html > > 2. put these 2 files from the above download in your classpath > jmxri.jar > jmxtools.jar > > 3. convert the attached sample code to fit somewhere in your system. > > 4. point a browser to the jmx-console: > http://localhost:8082 > > 5. Click on > Adaptor | protocol=Wrapper > > 6. Click restart > > 7. learn jmx from the best book: JMX Managing J2EE with Java > Management > Extensions by Lindfors and Fleury > > 8. Next time, before you post, go to www.google.com, enter type "jmx", > press > "Google Search", click on the first link that comes up & you'll find > out > what jmx is (or at least that it's not COM) > > sal. > > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...]On Behalf Of Jim > Redman > Sent: Wednesday, October 01, 2003 4:14 PM > To: wra...@li... > Subject: Re: [Wrapper-user] How Does One... Remotely Restart a JVM > > > Is JMX based on Windows COM? > > Jim > > On 2003.10.01 17:05, Sal Ingrilli wrote: > > we embedded the sun jmx server into our app & restart the service > > through > > the wrapper jmx interface. > > that's also how we issue thread dumps when running as a service. > > > > -----Original Message----- > > From: wra...@li... > > [mailto:wra...@li...]On Behalf Of Daniel > > Lemus > > Sent: Wednesday, October 01, 2003 3:44 PM > > To: wra...@li... > > Subject: [Wrapper-user] How Does One... Remotely Restart a JVM > > > > > > Here's the situation: > > I have a process that the wrapper runs as a service, but the service > > is on > > another box. I also do not have permission to restart the service. > > In > > cases where I have a patch to push out on the server, I have to wait > > for the > > admin on the box to restart my service (as to reload the JVM and to > > load my > > changes). > > > > This might be correct in a production environment, but our > development > > environment is the same (I have to wait for someone else to restart > > the > > service). This gets a bit annoying (on the admin's side to), so > here > > is my > > question: > > -Is there a way to remotely call "something" to restart the JVM on > > demand? > > > > I have read that there is a WrapperManager that has a restart() > > method, but > > how can that be called? Would I have to have another service > running > > that > > has the sole purpose of restarting JVMs? > > > > (This is on an NT 2000 box, and there is no chance to give me > > permission to > > start/stop services on their boxes). > > > > Thanks for any assistance. > > > > -Dan > > > > _________________________________________________________________ > > Frustrated with dial-up? Get high-speed for as low as $29.95/month > > (depending on the local service providers in your area). > > https://broadband.msn.com > > > > > > > > ------------------------------------------------------- > > 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 > > > > -- > > Jim Redman > (505) 662 5156 x85 > http://www.ergotech.com > > > ------------------------------------------------------- > 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 > > package com.syncvoice.commons.jmx.impl; > > import javax.management.MBeanServer; > import javax.management.MBeanServerFactory; > import javax.management.ObjectName; > > import com.sun.jdmk.comm.HtmlAdaptorServer; > > /** > * <p>Title: </p> > * <p>Description: </p> > * <p>Copyright: Copyright (c) 2003</p> > * <p>Company: </p> > * @author not attributable > * @version 1.0 > */ > > public class Demo { > // java -cp c:\proj\vxtracker\commons\classes;C:\temp\wrapper > \jmxri.jar;C:\temp\wrapper\jmxtools.jar;C:\temp\wrapper\wrapper.jar > com.syncvoice.commons.jmx.impl.Demo > public static void main (final String[] args) { > try { > // create jmx mbean server > final MBeanServer server = MBeanServerFactory.createMBeanServer > (); > > // start jmx-console mbean > { > log ("starting jmx-console"); > final HtmlAdaptorServer mbean = new HtmlAdaptorServer (); > mbean.setPort (8082); > mbean.start (); > final ObjectName mbeanObjectName = new ObjectName > ("Adaptor:protocol=HTTP,port=8082"); > server.registerMBean (mbean, mbeanObjectName); > } > > // start wrapper mbean (wrapper 3.0.5) > { > log ("starting wrapper console"); > final Class mbeanClass = forName > ("org.tanukisoftware.wrapper.jmx.WrapperManager"); > final Object mbean = mbeanClass.newInstance (); > final ObjectName mBeanObjectName = new ObjectName > ("Adaptor:protocol=Wrapper"); > server.registerMBean (mbean, mBeanObjectName); > } > > // wait > log ("entering modal loop"); > while (!Thread.currentThread ().isInterrupted ()) { > Thread.sleep (500); > } > } > catch (final Throwable t) { > t.printStackTrace (); > } > } > > /** > * JVM-version independent one-stop-location to create a class > object > * from a fully qualified class name > * @param className > * @return > * @throws ClassNotFoundException > */ > private static Class forName (final String className) > throws ClassNotFoundException { > > final Thread currentThread = Thread.currentThread (); > final ClassLoader classLoader = > currentThread.getContextClassLoader (); > final Class newClass = classLoader.loadClass (className); > return newClass; > } > > /** > * Helper to log > * @param string > */ > private static void log (final String string) { > System.out.println (string); > } > } -- Jim Redman (505) 662 5156 x85 http://www.ergotech.com |
|
From: Sal I. <sal...@sy...> - 2003-10-02 00:05:33
|
no. 1. download the jmx libraries from here http://java.sun.com/products/JavaManagement/download.html 2. put these 2 files from the above download in your classpath jmxri.jar jmxtools.jar 3. convert the attached sample code to fit somewhere in your system. 4. point a browser to the jmx-console: http://localhost:8082 5. Click on Adaptor | protocol=Wrapper 6. Click restart 7. learn jmx from the best book: JMX Managing J2EE with Java Management Extensions by Lindfors and Fleury 8. Next time, before you post, go to www.google.com, enter type "jmx", press "Google Search", click on the first link that comes up & you'll find out what jmx is (or at least that it's not COM) sal. -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Jim Redman Sent: Wednesday, October 01, 2003 4:14 PM To: wra...@li... Subject: Re: [Wrapper-user] How Does One... Remotely Restart a JVM Is JMX based on Windows COM? Jim On 2003.10.01 17:05, Sal Ingrilli wrote: > we embedded the sun jmx server into our app & restart the service > through > the wrapper jmx interface. > that's also how we issue thread dumps when running as a service. > > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...]On Behalf Of Daniel > Lemus > Sent: Wednesday, October 01, 2003 3:44 PM > To: wra...@li... > Subject: [Wrapper-user] How Does One... Remotely Restart a JVM > > > Here's the situation: > I have a process that the wrapper runs as a service, but the service > is on > another box. I also do not have permission to restart the service. > In > cases where I have a patch to push out on the server, I have to wait > for the > admin on the box to restart my service (as to reload the JVM and to > load my > changes). > > This might be correct in a production environment, but our development > environment is the same (I have to wait for someone else to restart > the > service). This gets a bit annoying (on the admin's side to), so here > is my > question: > -Is there a way to remotely call "something" to restart the JVM on > demand? > > I have read that there is a WrapperManager that has a restart() > method, but > how can that be called? Would I have to have another service running > that > has the sole purpose of restarting JVMs? > > (This is on an NT 2000 box, and there is no chance to give me > permission to > start/stop services on their boxes). > > Thanks for any assistance. > > -Dan > > _________________________________________________________________ > Frustrated with dial-up? Get high-speed for as low as $29.95/month > (depending on the local service providers in your area). > https://broadband.msn.com > > > > ------------------------------------------------------- > 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 > -- Jim Redman (505) 662 5156 x85 http://www.ergotech.com ------------------------------------------------------- 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 |
|
From: Jim R. <jr...@er...> - 2003-10-01 23:14:47
|
Is JMX based on Windows COM? Jim On 2003.10.01 17:05, Sal Ingrilli wrote: > we embedded the sun jmx server into our app & restart the service > through > the wrapper jmx interface. > that's also how we issue thread dumps when running as a service. > > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...]On Behalf Of Daniel > Lemus > Sent: Wednesday, October 01, 2003 3:44 PM > To: wra...@li... > Subject: [Wrapper-user] How Does One... Remotely Restart a JVM > > > Here's the situation: > I have a process that the wrapper runs as a service, but the service > is on > another box. I also do not have permission to restart the service. > In > cases where I have a patch to push out on the server, I have to wait > for the > admin on the box to restart my service (as to reload the JVM and to > load my > changes). > > This might be correct in a production environment, but our development > environment is the same (I have to wait for someone else to restart > the > service). This gets a bit annoying (on the admin's side to), so here > is my > question: > -Is there a way to remotely call "something" to restart the JVM on > demand? > > I have read that there is a WrapperManager that has a restart() > method, but > how can that be called? Would I have to have another service running > that > has the sole purpose of restarting JVMs? > > (This is on an NT 2000 box, and there is no chance to give me > permission to > start/stop services on their boxes). > > Thanks for any assistance. > > -Dan > > _________________________________________________________________ > Frustrated with dial-up? Get high-speed for as low as $29.95/month > (depending on the local service providers in your area). > https://broadband.msn.com > > > > ------------------------------------------------------- > 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 > -- Jim Redman (505) 662 5156 x85 http://www.ergotech.com |
|
From: Sal I. <sal...@sy...> - 2003-10-01 23:05:32
|
we embedded the sun jmx server into our app & restart the service through the wrapper jmx interface. that's also how we issue thread dumps when running as a service. -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Daniel Lemus Sent: Wednesday, October 01, 2003 3:44 PM To: wra...@li... Subject: [Wrapper-user] How Does One... Remotely Restart a JVM Here's the situation: I have a process that the wrapper runs as a service, but the service is on another box. I also do not have permission to restart the service. In cases where I have a patch to push out on the server, I have to wait for the admin on the box to restart my service (as to reload the JVM and to load my changes). This might be correct in a production environment, but our development environment is the same (I have to wait for someone else to restart the service). This gets a bit annoying (on the admin's side to), so here is my question: -Is there a way to remotely call "something" to restart the JVM on demand? I have read that there is a WrapperManager that has a restart() method, but how can that be called? Would I have to have another service running that has the sole purpose of restarting JVMs? (This is on an NT 2000 box, and there is no chance to give me permission to start/stop services on their boxes). Thanks for any assistance. -Dan _________________________________________________________________ Frustrated with dial-up? Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com ------------------------------------------------------- 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 |
|
From: Daniel L. <dl...@ho...> - 2003-10-01 22:44:20
|
Here's the situation: I have a process that the wrapper runs as a service, but the service is on another box. I also do not have permission to restart the service. In cases where I have a patch to push out on the server, I have to wait for the admin on the box to restart my service (as to reload the JVM and to load my changes). This might be correct in a production environment, but our development environment is the same (I have to wait for someone else to restart the service). This gets a bit annoying (on the admin's side to), so here is my question: -Is there a way to remotely call "something" to restart the JVM on demand? I have read that there is a WrapperManager that has a restart() method, but how can that be called? Would I have to have another service running that has the sole purpose of restarting JVMs? (This is on an NT 2000 box, and there is no chance to give me permission to start/stop services on their boxes). Thanks for any assistance. -Dan _________________________________________________________________ Frustrated with dial-up? Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com |
|
From: <da...@ix...> - 2003-10-01 20:32:11
|
In article <kd9...@th...>,
Mike Castle <wra...@li...> wrote:
>In article <5gc...@th...>,
>Mike Castle <wra...@li...> wrote:
>>What about if, for a while, on the NT side, if the first param is not one
>>of {start|stop|console|dump} that a warning is issued, and the param is
>>used as a config file. Then some later release, the {start|stop|console}
>>becomes mandatory?
>
>Hmmmm.... Does anyone use wrapper in a non-NT, but Win32 environment?
>
>In looking at the App.bat.in, I see all code paths goes to this line:
>
>:conf
>set _WRAPPER_CONF="%~f1"
>
>But I thought the ~f stuff was NT only. Am I mistaken?
So, I finished writing up a possible new App.cmd.in file.
@echo off
setlocal
rem
rem Find the application home.
rem
rem %~dp0 is name of current script under NT
set _APP_HOME=%~dp0
rem : operator works similar to make : operator
set _APP_HOME=%_APP_HOME:\bin\=%
set _WRAPPER_EXE=%_APP_HOME%\bin\Wrapper.exe
rem Find the requested command.
for /F %%v in ('echo %1^|findstr "^console$ ^start$ ^stop$ ^restart$
^install$ ^remove"') do call :exec set COMMAND=%%v
if "%COMMAND%" == "" (
echo WARNING: Defaulting to running in console mode is deprecated. 1>&2
set COMMAND=console
) else (
shift
)
rem
rem Find the wrapper.conf
rem
:conf
set _WRAPPER_CONF="%~f1"
if not %_WRAPPER_CONF%=="" goto startup
set _WRAPPER_CONF="%_APP_HOME%\conf\wrapper.conf"
rem
rem Run the application.
rem At runtime, the current directory will be that of Wrapper.exe
rem
if not exist "%_APP_HOME%\logs" mkdir "%_APP_HOME%\logs"
call :%COMMAND%
if errorlevel 1 pause
goto :eof
:console
echo on
"%_WRAPPER_EXE%" -c %_WRAPPER_CONF%
goto :eof
:start
"%_WRAPPER_EXE%" -t %_WRAPPER_CONF%
goto :eof
:stop
"%_WRAPPER_EXE%" -p %_WRAPPER_CONF%
goto :eof
:install
"%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
goto :eof
:remove
"%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
goto :eof
:restart
call :stop
call :start
goto :eof
:exec
%*
goto :eof
Since the old App.bat.in used NT specific features in the main line anyway,
and since no one complained about it not working on 9x, I made the
assumption that no one is actually using Wrapper in a non-NT environment.
Therefore, I decided to it completely NT specific.
Unfortunately I don't have an NT4.0 handy, so I hope it still works on
that. I don't think I used any 2K specific features.
I renamed the file from .bat to .cmd to reflect the NT specific nature of
the file.
I used setlocal to avoid having to undef envvars at the end of the script.
It now supports console|start|stop|restart|install|remove, so it's now very
similar to the Unix script. Note that the Unix script still supports the
dump command, and the NT script supports install and remove. Regarding
dump via NT service, I think the another thread addresses that issue and
may give room for thought.
With this script, the extra install/uninstall scripts are no longer
necessary.
I'm still undecided about remove versus uninstall for the command.
Actually no reason it can't be both.
The Unix script can stop one started via console; the NT script cannot.
The Unix script currently does not handle taking a second parameter to use
as a config file. I think that if the NT one does, then the Unix one
should be similarly enhanced.
Still not sure about the whole deprecated message. No feed back from the
list on that design point. I think both platforms should function
similarly, and if the Unix script requires a command, then the NT one
should.
Enjoy!
mrc
--
Mike Castle da...@ix... www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
|
|
From: Leif M. <le...@ta...> - 2003-10-01 15:42:04
|
Geetha, > I just downloaded the Java Service Wrapper and I find it very useful. Great, I'm glad you are finding it useful. > I am facing two problems with the wrapper. > > 1. I have a need to create a unique file name for which i use the > following commands in a batch file > > set TS=%date%%time% > set TS=%TS:/=% > set TS=%TS:-=% > set TS=%TS:.=% > set TS=%TS::=% > set TS=%TS: =% > > But when I put this in the wrapper.conf file in the specified format > (set.TS format), TS evaluates in the end to %TS: =%. I'll plead ignorant to this. What are you expecting those various commands to do? The only kind of variable expansion that the wrapper currently knows how to do is to expand an environment variable with the exact name between the '%' characters. So it is going through each of your commands and looking for the specified environment variable. When a variable can not be found, the Wrapper leaves the string as is. So in this case, the last thing it does is look for an environment variable called "TS: =" which does not exist, so the TS variable gets the final string unmodified. If you could explain what you are expecting to have happen here, and point me to some online docs describing the functionality, this may be something could be a feature in a future release. I am a bit curious. > 2. Command line execution of my java program looks like > java xyz1>test.out 2>test.err > > How do i specify this in the wrapper.conf file? Which property > should be set to send the console out and err to the respective files? Currently this is not possible with the Wrapper. It takes all output from the JVM, err and out and merges them into a single output stream. out messages are logged at level INFO and err at level ERROR. As things are implemented right now, it would be difficult to get this working without breaking things compatibility wise for existing users. I have one idea, but I'll have to look into a bit. At the best, it would be a little bit kludgey to configure however. :-/ Cheers, Leif |
|
From: Leif M. <le...@ta...> - 2003-10-01 15:30:26
|
Richard, > When a wrapper on windows is not being run in console mode is > there a way to send a ctrl-break event to it? > If so, then why is the call to the method requestDumpJVMState() > in the file wrapper_win.c commented out in the method > wrapperConsoleHandler(..)? That is commented out because it is not needed. If that call is made then two stack traces would actually be dumped. When CTRL-BREAK is pressed, both the Java and Wrapper processes get the signal. I had not known that when I first implemented the feature. I should really just remove it completely. > I know one can call requestDumpJVMState() via the JMX > interface. I am interested in knowing if there is any other > way. There is no way to directly send a CTRL-BREAK signal to an NT service. (without using a third party program). The Wrapper does provide a few ways to work around it though. The first is to use JMX, the method that you already found. The second is to instantiate the WrapperActionServer class and connect via telnet to request a thread dump. (You can see an example of this by looking at the TestWrapper app source code or the javadocs) The third is to call WrapperManager.requestThreadDump() method directly from within your application. The WrapperActionServer is probably the easiest to get working as it just requires a few lines of isolated code that can really exist pretty much anywhere in your program. If you have any other ideas, they may make good features for a future version. Cheers, Leif |
|
From: Richard E. <rem...@ed...> - 2003-10-01 14:55:24
|
When a wrapper on windows is not being run in console mode is there a way to send a ctrl-break event to it? If so, then why is the call to the method requestDumpJVMState() in the file wrapper_win.c commented out in the method wrapperConsoleHandler(..)? I know one can call requestDumpJVMState() via the JMX interface. I am interested in knowing if there is any other way. Thanks. RME |
|
From: Geetha <ge...@ho...> - 2003-10-01 11:52:20
|
Hi,
I just downloaded the Java Service Wrapper and I find it very useful.=20
I am facing two problems with the wrapper.=20
1. I have a need to create a unique file name for which i use the =
following commands in a batch file
set TS=3D%date%%time%
set TS=3D%TS:/=3D%
set TS=3D%TS:-=3D%
set TS=3D%TS:.=3D%
set TS=3D%TS::=3D%
set TS=3D%TS: =3D%
But when I put this in the wrapper.conf file in the specified format =
(set.TS format), TS evaluates in the end to %TS: =3D%.
2. Command line execution of my java program looks like
java xyz1>test.out 2>test.err
How do i specify this in the wrapper.conf file? Which property =
should be set to send the console out and err to the respective files?
Thanks
Geetha |
|
From: <da...@ix...> - 2003-09-29 21:56:24
|
In article <015601c382c9$6fd45690$6502a8c0@fs1>,
Sal Ingrilli <wra...@li...> wrote:
>i was talking about 1.3
>i should have mentioned it.
>thanks for clarifying it.
Ahh. I looked back at the original post and saw the 1.3 reference. Sorry
about that.
mrc
--
Mike Castle da...@ix... www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
|
|
From: ender w. <end...@ya...> - 2003-09-29 20:51:43
|
In short: I wrote a java program that listens to a Server Socket and when receives a message on the socket it prints it on the screen in a Frame. The program works fine when I test it in the Wrapper console. Next, I tried adding a shortcut of the .bat file frok the bin dir to the my startup folder. When I log on the wrapper console appears, and it says: ////////////////////////////////////////// wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.0.5) jvm 1 | //////////////////////////////////////// but my program does not start. If I look at the log I actually see that there is no entry for the current time, ie for the user logon time. Basically I would like to know if I am using the wrapper improperly, and if I am, how do I make my program start automatically short of making an exe and placing it in the startup? --- Earnie Dyke <ed...@vr...> wrote: > You should be able to start your application when > the user logs on by adding > it to the users startup folder in windows. You > should be able to identify > the user via the system properties. Should work the > way you want it to. > > Earnie! > > -----Original Message----- > From: ender wiggin [mailto:end...@ya...] > Sent: Friday, September 26, 2003 9:51 AM > To: wra...@li... > Subject: Re: [Wrapper-user] Sockets and desktop > > > Hi. > > Thanks for the replay.I wonder if you could point me > in the right direction.Quoting: > "You are going to need to have an > > application running in the User space > > which is launched when the user logs in. This > > component could then communicate to > > the service using any of a number of methods" > It would be very nice to write an small program > that > gets launched AUTOMATICALLY at user logon.(then this > application will communicate with the service that > collects messages and tell it to print the messages > to > screen to screen)Is there a way(In Java)? > > Alex > > > > --- Leif Mortenson <le...@ta...> wrote: > > Alex, > > I am not sure that your assumption about not > > being able to use Sockets > > and a GUI in the same service is correct. The > > TestWrapper example > > that is shipped with version 3.0.5 of the Wrapper > > does both and works > > just fine. > > > > Edit wrapper.conf and set the following > > wrapper.ntservice.interactive=true > > at the bottom of the file. Then install the > > TestWrapper as a service > > and start > > it. > > InstallTestWrapper-NT.bat > > net start testwrapper > > > > Now telnet to the machine on port 9999. When > it > > connects, type 'R' > > Must > > be upper case. The Wrapper will promptly restart > > the JVM.. All works fine > > both using localhost and from a remote machine. > > > > The problems you are having with your users is > a > > little more > > difficult. Unless you > > specify an account in the wrapper.conf file, NT > > services will by default > > always run > > as the SYSTEM user. This is also true for their > > child processes (Java > > in this case) > > So no matter how many times you check, your user > is > > always going to be > > SYSTEM. You are going to need to have an > > application running in the > > User space > > which is launched when the user logs in. This > > component could then > > communicate to > > the service using any of a number of methods. > > > > There is not any way that I am aware of for an > > NT service to tell > > when a user logs > > in to the system. It sounds like it should be > > possible, but not with > > the current Wrapper. > > > > Telling when the user logs out is easy. > Windows > > sends a logout > > signal to all processes > > when any user logs out. The Wrapper intercepts > this > > and prevents the > > Wrapper and its > > JVM from exiting. The WrapperSimpleApp and > > WrapperStartStopApp classes > > do not > > provide a way for your java app to see this > signal, > > but you can see it > > if you use method > > 3, by implementing the WrapperListener interface > > directly. The > > listener's controlEvent > > method is called whenever any system signals are > > received. This gives > > the app the > > opportunity to respond. > > > > I posted a couple of feature requests around > > this so I remember to > > look into ways > > of making it possible to tell when and who logs > in. > > > http://sourceforge.net/tracker/index.php?func=detail&aid=812174&group_id=394 > 28&atid=425190 > > > http://sourceforge.net/tracker/index.php?func=detail&aid=812175&group_id=394 > 28&atid=425190 > > > > Cheers, > > Leif > > > > > > > > ender wiggin wrote: > > > > >Hello. > > > > > >First some details: > > >I am working on a project involving an instant > one > > way > > >messaging on windows. Basically I am writing a > > >service(SocketService) that connects with a > server > > >through a socket and writes to file/(some > > repository) > > >the messages it receives. Another service( > > >DesktopMessageService) reads from the files the > > >messages and if it finds a new message for the > > CURRENT > > >user it will open a frame and show it on the > > screen. > > >The reason I use two services instead of one is > > >because I read that a service either does > neworking > > or > > >it accesses the desktop or console. > > > The SocketService performs well, it does indeed > > read > > >from a socket(ServerSocket) and when contacted > > there > > >are messages it does store them on file. > > > > > >The problems arise with the > DesktopMessageService.I > > >have yet to find a way to detect the current > > >user.Basically when the pc is booted the > > >DesktopMesssage starts ,tries to detect the > current > > >user and print to screen a message.The problem is > > that > > > > > >I cannot decect when a user loggs on to the > > machine. > > >The current user for the DesktopService is still > > >System.So if I want to print a message Hi + > > >System.getProperty("user.name") , even if there > is > > a > > >user logged on it still prints Hi System , not Hi > > >"Current User Name".Im also tried to restart the > > JVm > > >periodically but the curent user is still System. > > >By the way the service works fine when tested in > a > > >console . > > > > > >So my questions are, Is there a way to detect > when > > a > > >user loggs on and get his name? > > >Also, is there a way to detect when a users logs > > off? > > > > > >Thanks, Alex > > > > > > > > > > > > > > > > > === message truncated === ===== __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: Greg W. <gr...@mo...> - 2003-09-28 23:52:30
|
I've just checked in changes to the 4.2 & 5.0 branches to change from the custom win32 service to use the wrapper from http://wrapper.tanukisoftware.org It was simple to use and is working fine for me - so thanks to the tanukisoftware folks. I'd appreciate testing of this from real win32 users before the next releases. The wrapper is in extra/win32 and I have included a simple readme. cheers -- Greg Wilkins<gr...@mo...> Phone/fax: +44 7092063462 Mort Bay Consulting Australia and UK. http://www.mortbay.com |
|
From: <da...@ix...> - 2003-09-28 19:00:03
|
In article <5gc...@th...>,
Mike Castle <wra...@li...> wrote:
>What about if, for a while, on the NT side, if the first param is not one
>of {start|stop|console|dump} that a warning is issued, and the param is
>used as a config file. Then some later release, the {start|stop|console}
>becomes mandatory?
Hmmmm.... Does anyone use wrapper in a non-NT, but Win32 environment?
In looking at the App.bat.in, I see all code paths goes to this line:
:conf
set _WRAPPER_CONF="%~f1"
But I thought the ~f stuff was NT only. Am I mistaken?
Just realized I may have to target any enhancements that I do to Win98 and
company, which could be annoying.
mrc
--
Mike Castle da...@ix... www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
|
|
From: <da...@ix...> - 2003-09-26 18:20:58
|
The newer Wrapper binaries, with the -t|-p support to start|stop NT
services is great (actually solved a problem for us last night).
However, having to take a config file option is a bit of a nuissance.
Especially since we already have the config file set up in the .bat file.
So, has there been any thought given to enhancing the .bat file to allow
{start|stop|console} to work the same as it does with the Unix script?
Right now the Unix and NT scripts behave differently. The Unix script only
takes a single action parameter, while the NT script only takes a single
configuration file parameter.
I'd really like to propose that they come closer to performing similarly.
I think it'd be fairly easy to enhance both to take 2 parameters, the first
being one of {start|stop|console} and the optional second being a config
file.
I'm not sure what to do about dump on the NT side. Help?
Anyway, I know this would be a big change for the NT script side, but, do
many people actually use the feature of the .bat file taking a config file
as a parm? Would such a change break many people?
What about if, for a while, on the NT side, if the first param is not one
of {start|stop|console|dump} that a warning is issued, and the param is
used as a config file. Then some later release, the {start|stop|console}
becomes mandatory?
Internally I will probably be making these changes anyway, but if the
Wrapper community has any thoughts on an approach they would accept, I'd be
willing to design towards that end.
Cheers,
mrc
--
Mike Castle da...@ix... www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
|
|
From: Earnie D. <ed...@vr...> - 2003-09-26 13:59:13
|
You should be able to start your application when the user logs on by adding it to the users startup folder in windows. You should be able to identify the user via the system properties. Should work the way you want it to. Earnie! -----Original Message----- From: ender wiggin [mailto:end...@ya...] Sent: Friday, September 26, 2003 9:51 AM To: wra...@li... Subject: Re: [Wrapper-user] Sockets and desktop Hi. Thanks for the replay.I wonder if you could point me in the right direction.Quoting: "You are going to need to have an > application running in the User space > which is launched when the user logs in. This > component could then communicate to > the service using any of a number of methods" It would be very nice to write an small program that gets launched AUTOMATICALLY at user logon.(then this application will communicate with the service that collects messages and tell it to print the messages to screen to screen)Is there a way(In Java)? Alex --- Leif Mortenson <le...@ta...> wrote: > Alex, > I am not sure that your assumption about not > being able to use Sockets > and a GUI in the same service is correct. The > TestWrapper example > that is shipped with version 3.0.5 of the Wrapper > does both and works > just fine. > > Edit wrapper.conf and set the following > wrapper.ntservice.interactive=true > at the bottom of the file. Then install the > TestWrapper as a service > and start > it. > InstallTestWrapper-NT.bat > net start testwrapper > > Now telnet to the machine on port 9999. When it > connects, type 'R' > Must > be upper case. The Wrapper will promptly restart > the JVM.. All works fine > both using localhost and from a remote machine. > > The problems you are having with your users is a > little more > difficult. Unless you > specify an account in the wrapper.conf file, NT > services will by default > always run > as the SYSTEM user. This is also true for their > child processes (Java > in this case) > So no matter how many times you check, your user is > always going to be > SYSTEM. You are going to need to have an > application running in the > User space > which is launched when the user logs in. This > component could then > communicate to > the service using any of a number of methods. > > There is not any way that I am aware of for an > NT service to tell > when a user logs > in to the system. It sounds like it should be > possible, but not with > the current Wrapper. > > Telling when the user logs out is easy. Windows > sends a logout > signal to all processes > when any user logs out. The Wrapper intercepts this > and prevents the > Wrapper and its > JVM from exiting. The WrapperSimpleApp and > WrapperStartStopApp classes > do not > provide a way for your java app to see this signal, > but you can see it > if you use method > 3, by implementing the WrapperListener interface > directly. The > listener's controlEvent > method is called whenever any system signals are > received. This gives > the app the > opportunity to respond. > > I posted a couple of feature requests around > this so I remember to > look into ways > of making it possible to tell when and who logs in. > http://sourceforge.net/tracker/index.php?func=detail&aid=812174&group_id=394 28&atid=425190 > http://sourceforge.net/tracker/index.php?func=detail&aid=812175&group_id=394 28&atid=425190 > > Cheers, > Leif > > > > ender wiggin wrote: > > >Hello. > > > >First some details: > >I am working on a project involving an instant one > way > >messaging on windows. Basically I am writing a > >service(SocketService) that connects with a server > >through a socket and writes to file/(some > repository) > >the messages it receives. Another service( > >DesktopMessageService) reads from the files the > >messages and if it finds a new message for the > CURRENT > >user it will open a frame and show it on the > screen. > >The reason I use two services instead of one is > >because I read that a service either does neworking > or > >it accesses the desktop or console. > > The SocketService performs well, it does indeed > read > >from a socket(ServerSocket) and when contacted > there > >are messages it does store them on file. > > > >The problems arise with the DesktopMessageService.I > >have yet to find a way to detect the current > >user.Basically when the pc is booted the > >DesktopMesssage starts ,tries to detect the current > >user and print to screen a message.The problem is > that > > > >I cannot decect when a user loggs on to the > machine. > >The current user for the DesktopService is still > >System.So if I want to print a message Hi + > >System.getProperty("user.name") , even if there is > a > >user logged on it still prints Hi System , not Hi > >"Current User Name".Im also tried to restart the > JVm > >periodically but the curent user is still System. > >By the way the service works fine when tested in a > >console . > > > >So my questions are, Is there a way to detect when > a > >user loggs on and get his name? > >Also, is there a way to detect when a users logs > off? > > > >Thanks, Alex > > > > > > > > > ------------------------------------------------------- > 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 ===== __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com ------------------------------------------------------- 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 **************************************************************************** NOTICE: This email (including any attachments) may include confidential information. It is intended solely for the individuals or entities to which it is addressed. If you have received this email in error, distribution or use of it is prohibited. Please notify the sender and permanently delete it from your email system. Also, given the nature of electronic mail and its potential to carry computer viruses, the Virginia Retirement System and the sender in no way warrant a virus free transmission. You and your organization should use appropriate means to check this email and any attachments for potential viruses and to prevent their execution. |
|
From: ender w. <end...@ya...> - 2003-09-26 13:51:22
|
Hi. Thanks for the replay.I wonder if you could point me in the right direction.Quoting: "You are going to need to have an > application running in the User space > which is launched when the user logs in. This > component could then communicate to > the service using any of a number of methods" It would be very nice to write an small program that gets launched AUTOMATICALLY at user logon.(then this application will communicate with the service that collects messages and tell it to print the messages to screen to screen)Is there a way(In Java)? Alex --- Leif Mortenson <le...@ta...> wrote: > Alex, > I am not sure that your assumption about not > being able to use Sockets > and a GUI in the same service is correct. The > TestWrapper example > that is shipped with version 3.0.5 of the Wrapper > does both and works > just fine. > > Edit wrapper.conf and set the following > wrapper.ntservice.interactive=true > at the bottom of the file. Then install the > TestWrapper as a service > and start > it. > InstallTestWrapper-NT.bat > net start testwrapper > > Now telnet to the machine on port 9999. When it > connects, type 'R' > Must > be upper case. The Wrapper will promptly restart > the JVM.. All works fine > both using localhost and from a remote machine. > > The problems you are having with your users is a > little more > difficult. Unless you > specify an account in the wrapper.conf file, NT > services will by default > always run > as the SYSTEM user. This is also true for their > child processes (Java > in this case) > So no matter how many times you check, your user is > always going to be > SYSTEM. You are going to need to have an > application running in the > User space > which is launched when the user logs in. This > component could then > communicate to > the service using any of a number of methods. > > There is not any way that I am aware of for an > NT service to tell > when a user logs > in to the system. It sounds like it should be > possible, but not with > the current Wrapper. > > Telling when the user logs out is easy. Windows > sends a logout > signal to all processes > when any user logs out. The Wrapper intercepts this > and prevents the > Wrapper and its > JVM from exiting. The WrapperSimpleApp and > WrapperStartStopApp classes > do not > provide a way for your java app to see this signal, > but you can see it > if you use method > 3, by implementing the WrapperListener interface > directly. The > listener's controlEvent > method is called whenever any system signals are > received. This gives > the app the > opportunity to respond. > > I posted a couple of feature requests around > this so I remember to > look into ways > of making it possible to tell when and who logs in. > http://sourceforge.net/tracker/index.php?func=detail&aid=812174&group_id=39428&atid=425190 > http://sourceforge.net/tracker/index.php?func=detail&aid=812175&group_id=39428&atid=425190 > > Cheers, > Leif > > > > ender wiggin wrote: > > >Hello. > > > >First some details: > >I am working on a project involving an instant one > way > >messaging on windows. Basically I am writing a > >service(SocketService) that connects with a server > >through a socket and writes to file/(some > repository) > >the messages it receives. Another service( > >DesktopMessageService) reads from the files the > >messages and if it finds a new message for the > CURRENT > >user it will open a frame and show it on the > screen. > >The reason I use two services instead of one is > >because I read that a service either does neworking > or > >it accesses the desktop or console. > > The SocketService performs well, it does indeed > read > >from a socket(ServerSocket) and when contacted > there > >are messages it does store them on file. > > > >The problems arise with the DesktopMessageService.I > >have yet to find a way to detect the current > >user.Basically when the pc is booted the > >DesktopMesssage starts ,tries to detect the current > >user and print to screen a message.The problem is > that > > > >I cannot decect when a user loggs on to the > machine. > >The current user for the DesktopService is still > >System.So if I want to print a message Hi + > >System.getProperty("user.name") , even if there is > a > >user logged on it still prints Hi System , not Hi > >"Current User Name".Im also tried to restart the > JVm > >periodically but the curent user is still System. > >By the way the service works fine when tested in a > >console . > > > >So my questions are, Is there a way to detect when > a > >user loggs on and get his name? > >Also, is there a way to detect when a users logs > off? > > > >Thanks, Alex > > > > > > > > > ------------------------------------------------------- > 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 ===== __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: Sal I. <sal...@sy...> - 2003-09-25 16:55:50
|
i've been using it since 98/99 to perform nightly/weekendly builds.
don't remember having any problems with it.
yeah -- i don't know why there are so many other schedulers out there
either -- i've even seen some that sell for money and don't even have as
many options as "at" .
also note that there are some schedulers on sourceforge. i remember there
is a cross-platform scheduler that supports cron expressions.
you suggested the option to schedule the recurring job within the app.
The java Timer is not the best choice because it can't schedule events at a
time-of-day without some extra programming...
but fortunately there is "quartz", a java based scheduler that supports cron
expressions, simple recurring jobs, persistence, app-server integration.
and the best part: it is hosted on sourceforge.
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...]On Behalf Of Leif
Mortenson
Sent: Thursday, September 25, 2003 12:54 AM
To: wra...@li...
Subject: Re: [Wrapper-user] Regarding the service
Sal,
Thanks, learn something new every day. It was preinstalled on my
XP(Home Edition)
box. That looks fairly useful. I wonder why there appears to be such a
large market for
tools that effectively do the same thing though... Are there problems
with this tool? I
played with it a bit and it seems to work fine so far.
Cheers,
Leif
Sal Ingrilli wrote:
>i've always used "at", the windows scheduler. run "at" from a command
>prompt.
>i believe on some windows installations it is not installed automatically
>(just add it from the windows cd).
>with this you can schedule recurring jobs, like a daily .bat (or wrapper -c
>wrapper.conf) at a given time.
>with this you can also schedule jobs on system events like
startup/shutdown.
>
>the "at" scheduler also has a UI. to get to the windows scheduler on my xp
>box i click on this:
>Start | Programs | Accessories | System Tools | Scheduled Tasks
>
>also, last time i used a win98 box i found that it has a very similar
>scheduler to "at", but not quite like it.
>i ended up using it to simulate services by scheduling "wrapper -c
>wrapper.conf" on system startup.
>
>-----Original Message-----
>From: wra...@li...
>[mailto:wra...@li...]On Behalf Of Leif
>Mortenson
>Sent: Wednesday, September 24, 2003 7:08 PM
>To: wra...@li...
>Subject: Re: [Wrapper-user] Regarding the service
>
>
>Sal Ingrilli wrote:
>
>
>
>>you don't need the service wrapper.
>>
>>just use the windows/unix scheduler to schedule execution of a batch
>>file that runs your program
>>
>>
>
>UNIX has cron jobs, but what exists on Windows. I had actually looked
>for something a
>while back and was only able to locate a few overpriced commercial
>solutions. I ended
>up having the Java program running 24x7, but with its main thread in a
>wait state until the
>time that the actual job needed to run.
>
>Doing a google search on "Windows Scheduler" turns up several options
>now. A couple
>have free versions as well.
>
>Leif
>
>
-------------------------------------------------------
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
|
|
From: Leif M. <le...@ta...> - 2003-09-25 07:54:04
|
Sal,
Thanks, learn something new every day. It was preinstalled on my
XP(Home Edition)
box. That looks fairly useful. I wonder why there appears to be such a
large market for
tools that effectively do the same thing though... Are there problems
with this tool? I
played with it a bit and it seems to work fine so far.
Cheers,
Leif
Sal Ingrilli wrote:
>i've always used "at", the windows scheduler. run "at" from a command
>prompt.
>i believe on some windows installations it is not installed automatically
>(just add it from the windows cd).
>with this you can schedule recurring jobs, like a daily .bat (or wrapper -c
>wrapper.conf) at a given time.
>with this you can also schedule jobs on system events like startup/shutdown.
>
>the "at" scheduler also has a UI. to get to the windows scheduler on my xp
>box i click on this:
>Start | Programs | Accessories | System Tools | Scheduled Tasks
>
>also, last time i used a win98 box i found that it has a very similar
>scheduler to "at", but not quite like it.
>i ended up using it to simulate services by scheduling "wrapper -c
>wrapper.conf" on system startup.
>
>-----Original Message-----
>From: wra...@li...
>[mailto:wra...@li...]On Behalf Of Leif
>Mortenson
>Sent: Wednesday, September 24, 2003 7:08 PM
>To: wra...@li...
>Subject: Re: [Wrapper-user] Regarding the service
>
>
>Sal Ingrilli wrote:
>
>
>
>>you don't need the service wrapper.
>>
>>just use the windows/unix scheduler to schedule execution of a batch
>>file that runs your program
>>
>>
>
>UNIX has cron jobs, but what exists on Windows. I had actually looked
>for something a
>while back and was only able to locate a few overpriced commercial
>solutions. I ended
>up having the Java program running 24x7, but with its main thread in a
>wait state until the
>time that the actual job needed to run.
>
>Doing a google search on "Windows Scheduler" turns up several options
>now. A couple
>have free versions as well.
>
>Leif
>
>
|
|
From: Sal I. <sal...@sy...> - 2003-09-25 07:20:24
|
i've always used "at", the windows scheduler. run "at" from a command prompt. i believe on some windows installations it is not installed automatically (just add it from the windows cd). with this you can schedule recurring jobs, like a daily .bat (or wrapper -c wrapper.conf) at a given time. with this you can also schedule jobs on system events like startup/shutdown. the "at" scheduler also has a UI. to get to the windows scheduler on my xp box i click on this: Start | Programs | Accessories | System Tools | Scheduled Tasks also, last time i used a win98 box i found that it has a very similar scheduler to "at", but not quite like it. i ended up using it to simulate services by scheduling "wrapper -c wrapper.conf" on system startup. -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Leif Mortenson Sent: Wednesday, September 24, 2003 7:08 PM To: wra...@li... Subject: Re: [Wrapper-user] Regarding the service Sal Ingrilli wrote: > you don't need the service wrapper. > > just use the windows/unix scheduler to schedule execution of a batch > file that runs your program UNIX has cron jobs, but what exists on Windows. I had actually looked for something a while back and was only able to locate a few overpriced commercial solutions. I ended up having the Java program running 24x7, but with its main thread in a wait state until the time that the actual job needed to run. Doing a google search on "Windows Scheduler" turns up several options now. A couple have free versions as well. Leif ------------------------------------------------------- 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 |
|
From: Sal I. <sal...@sy...> - 2003-09-25 07:14:16
|
This is the relevant wrapper.conf section that runs my jboss app named
"VXTracker"
#********************************************************************
# Wrapper parameters
#********************************************************************
# Java Application
wrapper.java.command=%JAVA_HOME%/bin/java.exe
# Java Main class
wrapper.java.mainclass=com.silveregg.wrapper.WrapperSimpleApp
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=org.jboss.Main
wrapper.app.parameter.2=-c
wrapper.app.parameter.3=VXTracker
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=../lib/*.jar
wrapper.java.classpath.2=../bin/run.jar
wrapper.java.classpath.3=%JAVA_HOME%/lib/tools.jar
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=../lib
wrapper.java.library.path.2=%JAVA_HOME%/lib
wrapper.java.library.path.3=%JAVA_HOME%/bin
# Java Additional Parameters
# 1. Setting IP caching policy timeout to 1 hour
wrapper.java.additional.1=-Dsun.net.inetaddr.ttl=3600
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=64
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=1024
# Port which the native wrapper code will attempt to connect to
wrapper.port=1777
#jboss make take minutes to shutdown
wrapper.shutdown.timeout=120
#time-to-wait between wrapper ping & jvm response, default=30 seconds, we
set it to 5 minutes
wrapper.ping.timeout=300
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...]On Behalf Of Guofeng Zhang
Sent: Wednesday, September 24, 2003 10:56 PM
To: wra...@li...
Subject: [Wrapper-user] org.apache.jasper.JasperException: Unable to compile
class for JSP?
I install my app as a NT service according the instruction of Method 1 in
Integration Methods. It works.
I stop the service and then re-start it by Services panel in Windows'
Control setting. Then I use the IE browser to access the app, I get a white
page, the error message in Jboss's log is Unable to compile class for JSP.
The app works fine when it is not installed as a service. I think I might
not configure the wrapper properly.
Could any one point out what's wrong with the configuration? Thanks.
The Environemnt is:
Windows 2000 Professional SP3.
Jboss-3.0.4_Tomcat-4.1.12
j2sdk1.4.2_01
Java Service Wrapper 3.0.5
Tthe following is the part of the wrapper.conf:
# Java Application
wrapper.java.command=../../j2sdk1.4.2_01/bin/java
wrapper.java.additional.1=-Dprogram.name=run.bat
wrapper.java.classpath.1=./../lib/wrapper.jar
wrapper.java.classpath.2=../../j2sdk1.4.2_01/lib/tools.jar
wrapper.java.classpath.3=./run.jar
wrapper.java.library.path.1=../lib
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.app.parameter.1=org.jboss.Main
wrapper.app.parameter.2=-c
wrapper.app.parameter.3=default
# Java Additional Parameters
wrapper.java.additional.1=-server
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=256
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=384
-------------------------------------------------------
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
|