This is the continuation of my previous post..
I would like to run jboss on 0.0.0.0 instead of some specific ip address.
You can do this:
:cmdStart REM Executed on service start call run.bat -b 0.0.0.0 >run.log goto cmdEnd
FYI, I've included the windows Service Runner binary (jbossvc.exe) from jboss native in the bin directory, by default now:
As far as i remember, the JBoss Native has hardware specific (32 bit and 64 bit) downloads. And going by the JIRA comments (readme), it looks like only the 32 bit version is by default packaged with the JBoss-AS (which is platform independent).
So if the AS has to be installed on a 64 bit Windows, the user will have to separately download the JBoss Native 64 bit, as is being done currently, isn't it?
going by the JIRA comments (readme), it looks like only the 32 bit version is by default packaged with the JBoss-AS
The readme part in the JIRA actually confused me:
With a note on the header of README-service.txt:
README-service.txt, service.bat and jbosssvc.exe are part of the
'JBoss Native Win32' distribution. They are included here to allow
JBossAS run as a Service in Windows environments.
The version used is 'JBoss Native 2.0.6 Win32'
However, it looks like care has been taken to make the service work on even 64 bit systems :-) A comment from the same JIRA:
4. Allow paralell native installations and use the one corresponding to the JVM used and host CPU. If we are on the 64-bit system detect if the JVM is 64 or 32 bit (reported from java -version) and construct the path to the native according to that. This allows a single native binary for windows that has multiple CPU builds.
Mladen told me it should work on both 32 and 64 bit windows platforms.
You can try it, too, on x64 and tell me if there is any problem :-)
I thought it would be very useful to bundle this by default to avoid all the hassle of reverting to service wrappers and the like.
If someone wants the full jboss native distro to get the apr connectors and stuff you can simply unzip it over.
I just now downloaded trunk and tried using the included jbosssvc.exe on my Vista 64-bit box and got a C0000005 access violation error. This error does not appear if I use the jbosssvc.exe from the 64-bit Windows JBoss Native download.
Perhaps provide both jbosssvc.exe and jbosssvc64.exe, and update the service.bat script to detect which is required and use the right one. You can key off of the PROCESSOR_ARCHITECTURE env var, it is set to "x86" when running 32-bit Windows and "AMD64" for 64-bit Windows. (Note that I have an Intel Core 2 Quad processor - thus "AMD64" does not really identify the exact processor type, but rather simply means "running a 64-bit OS".)