Pergunta

I'm trying to run mule-3.1.2 on 64bit IBM AIX, but the java wrapper can't be executed (Found but not executable.). I'm sure I have set the right permission. Besides, I also can't run mule on a ia64 machine, same problem.

So can I run the mule just as a java application not using the java wrapper?

Foi útil?

Solução

There are different ways to start Mule without using the wrapper: besides embedding it in a java or web-application, you can also start main() on org.mule.MuleServer.

Edit: 1

A good resource suggested by @rocwing is: Configuring Mule to Run From a Script

Edit 2:

Below is a script that can start Mule standalone: logging is not correctly configured and the shutdown sequence is a little... challenged, but it should get you started.

#!/bin/sh
for f in $MULE_HOME/lib/boot/*.jar
do MULE_CLASSPATH="$MULE_CLASSPATH":$f ; 
done

for f in $MULE_HOME/lib/mule/*.jar
do MULE_CLASSPATH="$MULE_CLASSPATH":$f ; 
done

for g in $MULE_HOME/lib/opt/*.jar
do MULE_CLASSPATH="$MULE_CLASSPATH":$g ;
done

java -Djava.endorsed.dir=$MULE_HOME/lib/endorsed -cp "$MULE_CLASSPATH" org.mule.MuleServer -config ~/my/mule-config.xml
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top