* The parameter sended via Post is a XML that represents an entity
The JBoss server is listen the port 8009 but mi App2 have a service that is listen the port 8900, this service is configured with Mule-ESB.
I try this configurations:
1.- Worker port: 8900
In this case App2 receive an unexpected message (see result.png)
2.- Worker port: 8009
The message is sended to App2 by balancer (I know that because the message in "access.log" is: "127.0.0.1 - - [23/Aug/2011:15:00:47 -0500] "POST /orderReceiver HTTP/1.1" 404 988") but this is not attended by App2
3.- Worker port: 8009 and App2 listen the same port 8009
The same result as scenario #1
In case #1, when I set "JkLogLevel debug" in mod-jk.conf I see that the XML is sendend but preceded by some meta-information, I suspect that this information is nos recognized by my service and for this reason I obtain the result shown in result.png
I've made a trivial app that recive and print a GET request and print it in console, this app works fine. I deploy this app in a default Tomcat (with default ports).. I can't test this app with POST request.
So, my questions are:
1.- mod_jk allow the POST request? It's necessary to do any change in my configuration to receive POST request?
2.- Exist any difference between the original POST and the POST received by Mule-ESB?
3.- It's necessary to do any other configuration in my JBoss instance?
I've atached my configuration files.
Any help is welcome,
Alexis Gamarra Cano
Alexis Gamarra
Alexis Gamarra
Greenhorn
Joined: Aug 18, 2010
Posts: 3
posted
0
These are the settings I used:
Configuration in Apache:
========================
In file <APACHE_HOME>/conf/httpd.conf I add this row:
# Include mod_jk configuration file
Include conf/mod-jk.conf
# Mount your applications
JkMount /application/* loadbalancer
# You can use external file for mount points.
# It will be checked for updates each 60 seconds.
# The format of the file is: /url=worker
# /examples/*=loadbalancer
JkMountFile conf/uriworkermap.properties
# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
JkShmFile logs/jk.shm
# Add jkstatus for managing runtime data
<Location /jkstatus/>
JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
worker.list=loadbalancer,status
# Definimos el nodo Nodo1
# Puerto del conector ajp de nuestro tomcat (JBoss)
#worker.nodo1.port=8009
# Ip del nodo 1.
#worker.nodo1.host=10.3.50.66
#worker.nodo1.type=ajp13
# Peso de nuestro nodo. A más peso, mas peticiones recibe.
#worker.nodo1.lbfactor=1
# Definimos el nodo Nodo2
worker.nodo2.port=8900
worker.nodo2.host=localhost
worker.nodo2.type=ajp13
worker.nodo2.lbfactor=1
# Status worker for managing load balancer
worker.status.type=status
# Simple worker configuration file
# Mount the Servlet context to the ajp13 worker
/jmx-console=loadbalancer
/jmx-console/*=loadbalancer
#/web-console=loadbalancer
#/web-console/*=loadbalancer
/orderReceiver=loadbalancer
/orderReceiver/*=loadbalancer