Guillaume,
Attached to this post, you'll find a patch file for the script. It
works on OS/400 now (there are still some warnings being shown though),
but I haven't been able to test it again on Linux/Unix after my
modifications. These modifications are only useful for someone who
would like to give ServiceMix a quick try on a System i. If anyone
wants to use in a production environment, I would still recommend not to
use the script, but to use the OS/400 commands instead (thus avoiding
the need for using QShell) and taking care of the work management.
Regards,
Gert Vanthienen
gert_at_anova.be
Guillaume Nodet wrote:
> I think the batch script also has some problems on Solaris.
> Would you mind sending a patched version so that
> we can include the needed modifications.
> I'd rather have a script that works everywhere ...
> Thanks !
>
> On 1/10/07, Gert Vanthienen <[EMAIL PROTECTED]> wrote:
>> Amit,
>>
>>
>> Just gave ServiceMix a try on our system and it works (i.e.
ServiceMix
>> starts and components get installed when copied to the appropriate
>> directory; I'm still struggling a bit with using ServiceMix
myself, so I
>> didn't try to deploy anything yet). I just had to comment out a few
>> lines in the servicemix shell script (lines 182-189, where the vendor
>> specific flags are being set) that is included in the archive to
get it
>> running in QShell using the *nix commands specified on the ServiceMix
>> website.
>>
>> If you want to use it on a production machine, you will want to
submit
>> it to batch, preferably in it's own subsystem, because I noticed
it uses
>> a lot of CPU. There are some good articles available on the web for
>> running e.g. JBoss on a System i (just Google on the words JBoss,
>> iSeries and SBSD), which show you how to set up such a subsystem. If
>> you have a recent System i server or if you can upgrade to V5R4, you
>> might want to take a look at the new IBM Technology for Java VM.
Their
>> are is a redpaper available on this technology, which gives you some
>> advice on when to use it and when to prefer the classic VM.
>>
>>
>> Regards,
>>
>> Gert Vanthienen
>> gert_at_anova.be
>>
>>
>>
>> aharsola wrote:
>> > Gert,
>> >
>> > Thanks for valuable inputs.
>> >
>> > My question was whether I can deploy ServiceMix based application
>> on OS/400
>> > and would there be any runtime issues. I also do not see any issue
>> in it.
>> > But on servicemix website, downloads are available only for
>> > linux/windows/unix/Max OS X. Since ours is OS/400 environment, I
was
>> > wondering whether it would work on it or not and whether it
>> contains any OS
>> > specific code/apis?
>> >
>> >
>> >
>> > Gert Vanthienen wrote:
>> >
>> >> Amit,
>> >>
>> >>
>> >> It depends on what you mean with your question...
>> >> I suppose that ServiceMix (as any standard Java application)
>> should run
>> >> fine on OS/400, but you might have to install JDK 1.5 (licensed
>> program)
>> >> on your system. I have never tried it myself though. As far as I
>> know,
>> >> ServiceMix does not have any out-of-the-box connectors for
System i
>> >> (e.g. to work with data queues), but I'm sure someone will correct
>> me if
>> >> they should exist anyway...
>> >>
>> >> Personally, I'm also looking to replace a legacy XML message
handling
>> >> infrastructure with a more flexible ESB implementation (such as
>> Apache
>> >> ServiceMix) on System i myself within the next few months.
>> Therefore,
>> >> if you should run into trouble while implementing ServiceMix on
>> System
>> >> i, I'm always willing to help you look into the System i specific
>> issues.
>> >>
>> >> If you would like to have some specific connectors (e.g. to a data
>> >> queue), we could always start a joined effort to develop these as
>> part
>> >> of Apache ServiceMix. I'm sure the ServiceMix community would
>> welcome
>> >> any new component and it would also be a good thing for the
System i
>> >> users to have an open-source ESB that has out-of-the-box
support for
>> >> their favorite platform (other than Mule, which already has this
>> support)
>> >>
>> >>
>> >> Regards,
>> >>
>> >> Gert Vanthienen
>> >> [EMAIL PROTECTED]
>> >>
>> >>
>> >> aharsola wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> Does ServiceMix support OS/400?
>> >>>
>> >>> Regards,
>> >>> Amit
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>>
>>
>
>
Index: distributions/apache-servicemix/src/main/release/bin/servicemix
===================================================================
---
distributions/apache-servicemix/src/main/release/bin/servicemix
(revision 495721)
+++
distributions/apache-servicemix/src/main/release/bin/servicemix
(working copy)
@@ -56,17 +56,20 @@
cygwin=false;
darwin=false;
aix=false;
+ os400=false;
case "`uname`" in
CYGWIN*)
cygwin=true
;;
-
Darwin*)
darwin=true
;;
AIX*)
aix=true
;;
+ OS400*)
+ os400=true
+ ;;
esac
# For AIX, set an environment variable
if $aix; then
@@ -150,7 +153,7 @@
echo "`$JAVA -version`"
# This service should call `java -version`,
# read stdout, and look for hints
- if $JAVA -version 2>&1 | grep "^IBM" ; then
+ if $JAVA -version 2>&1 | grep "^IBM" | $os400; then
JVM_VENDOR="IBM"
else
JVM_VENDOR="SUN"
@@ -182,11 +185,15 @@
if [ "$JVM_VENDOR" = "SUN" ]; then
DEFAULT_JAVA_OPTS="-server $DEFAULT_JAVA_OPTS"
elif [ "$JVM_VENDOR" = "IBM" ]; then
- DEFAULT_JAVA_OPTS="-Xverify:none $DEFAULT_JAVA_OPTS"
- if $aix; then
+ if $os400; then
+ # no additional default options required
+ elif $aix; then
DEFAULT_JAVA_OPTS="-Xlp $DEFAULT_JAVA_OPTS"
+ else
+ DEFAULT_JAVA_OPTS="-Xverify:none
$DEFAULT_JAVA_OPTS"
fi
fi
+
# Add the conf directory so it picks up the Log4J config
CLASSPATH="$CLASSPATH:$SERVICEMIX_HOME/conf"
DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"