Resource Menu


RE : change context for libresource + get back data
Ok, it works with a mix of mod_jk and url rewriting.

For who it may help, this is what I'have done: (I consider that mod_jk and mod_writing for apache are installed)

  • configure my workers for mod_jk: in /etc/apache2/workers.properties:
workers.java_home=/usr/lib/jvm/java
ps=/
worker.list=worker1,worker2,worker3,loadbalancer

#tomcat worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13 worker.worker1.lbfactor=1 #jboss worker.worker2.port=8019 worker.worker2.host=localhost worker.worker2.type=ajp13 worker.worker2.lbfactor=1 #jonas worker.worker3.port=9010 worker.worker3.host=localhost worker.worker3.type=ajp13 worker.worker3.lbfactor=1

  • use mod_jk to redirect jonas root to port 80: in /etc/apache2/conf.d/mod_jk.conf
JkMount / worker3
   JkMount /* worker3
  • rewrite / url to /libresource: in /etc/apache2/conf.d/mod_rewrite.conf
  • configure Jonas: in JONAS/conf/server.xml:
add a connector:
<Connector
    port="9010" minProcessors="5" maxProcessors="75"
    acceptCount="10" debug="20" protocol="AJP/1.3"/>

specify which worker to use:

<Engine  jvmRoute="worker3"   name="jonas" defaultHost="localhost">

uncomment the

<Cluster ...>....</cluster>
  • configure libresource url's: in JONAS/conf/libresourceConfig.properties
replace
kernel.serverUrl=http://mint.bio.uniroma2.it:9000
with
kernel.serverUrl=http://mint.bio.uniroma2.it/libresource

Libresource is now accessible from http://xxx/libresource

Arnaud

posted by aceol at Dec 12, 2008 5:21 PM