[Clustering/JBoss] - setting up a jboss as proxy for routing HTTP requests to jbo
by krisohary
I have been working on jbos cluster from past 2 years. I already have a setup where apache as a front end to jboss cluster with mod_jk2. Now because of some reasons I need to remove the apache and I want to shift the load balancer from mod_jk to jboss.
Basically when I have mod_jk, the load balancing is done by apache in round-robin fashion. But the jboss has four load scheduling algorithms which are being hidden when I use apache as a front-end. So for this reason I need to remove the apache and make jboss as a proxy for routing HTTP requests.
I am not able to find the documentation for how to set up this architecture. Please reply me with the procedure of how to do this.
Senario:
A jboss cluster with n nodes
A jboss server acts as a proxy for routing the HTTP requests.
This proxy should use the load balancing techniques(Round-Robin, Random-Robin, etc.,) that are defined by jboss for routing the HTTP requests.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163537#4163537
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163537
17 years, 9 months
[EJB 3.0] - SessionBean not deployed, remote not bound
by giaulo
Hi, i'm developing a ejb3 app with a session bean, a remote interface and a stand alone client.
I use Netbeans 5.5 with jboss4.0.4 bundled and my ear package is succesfully builded and deployed.
But when I put the .ear package in another Jboss4.0.4 server (with all configuration), only the client
is deployed:
10:41:44,899 INFO [EARDeployer] Init J2EE application: file:/home/giulio/Informatica/Sistemi_Middleware/jboss-4.0.4.GA-clustered/server/all/deploy/AddressBook.ear
| 10:41:44,996 INFO [ClientDeployer] Client ENC bound under: AddressBook-app-client
| 10:41:45,161 INFO [EARDeployer] Started J2EE application: file:/home/giulio/Informatica/Sistemi_Middleware/jboss-4.0.4.GA-clustered/server/all/deploy/AddressBook.ear
|
Instead of:
| [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 12:32:36,588 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=AddressBook.ear,jar=AddressBook-ejb.jar,name=SessionBean,service=EJB3 with dependencies:
| 12:32:36,588 INFO [JmxKernelAbstraction] persistence.units:ear=AddressBook.ear,jar=AddressBook-ejb.jar,unitName=AddressBook-ejbPU
| 12:32:36,672 INFO [EJBContainer] STARTED EJB: ejb.SessionBean ejbName: SessionBean
| 12:32:36,699 INFO [EJB3Deployer] Deployed: file:/home/giulio/Informatica/Sistemi_Middleware/JBoss-4.0.4.GA/server/default/tmp/deploy/tmp30870AddressBook.ear-contents/AddressBook-ejb.jar
| 12:32:36,790 INFO [EARDeployer] Started J2EE application: file:/home/giulio/Informatica/Sistemi_Middleware/JBoss-4.0.4.GA/server/default/deploy/AddressBook.ear
|
The application can't bound the remote interface, as I can see from JNDIView list():
+- AddressBook-app-client (class: org.jnp.interfaces.NamingContext)
|
Instead of:
+- AddressBook (class: org.jnp.interfaces.NamingContext)
| | +- SessionBean (class: org.jnp.interfaces.NamingContext)
| | | +- remote (proxy: $Proxy73 implements interface ejb.SessionRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
| +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
| +- AddressBook-app-client (class: org.jnp.interfaces.NamingContext)
|
Why this happens?
Please help me!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163534#4163534
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163534
17 years, 9 months