-
1. Re: EJB3 Injection and HA-JNDI
triumphthepup Sep 24, 2008 12:58 PM (in response to bdinnerv)I'm curious about this as well. So +1 from me.
-
2. Re: EJB3 Injection and HA-JNDI
asookazian Sep 27, 2008 10:39 AM (in response to bdinnerv)as far as cluster-enabling a Seam (EJB 3) app, all you need to do is the following:
1) add to web.xml
2) add @Clustered to your stateful session beans
you can also configure your entity classes to be cached using Hibernate 2nd level cache.
But as long as you do the two steps above, you don't need to worry.
Keep in mind that if you're using mod_jk with IIS or httpd, make sure that sticky_sessions is enabled (this is a configuration that is highly recommended by JBoss). see Tomcat Connector info on JK. -
3. Re: EJB3 Injection and HA-JNDI
justkeys Oct 2, 2008 5:22 PM (in response to bdinnerv)For MDB's deployed in the all folder you don't need to do anything: they find the destination and subscribe, whether it is remote or local; and when the coordinator-node dies, they resubscribe as soon as the new coordinator-node is ready hosting the destinations. So this makes me believe that the @Resource ConnectionFactory injection is cluster-aware somehow.
For client side lookups you should use the right jndi parameters and port 1100 instead of 1099: this will make sure the client-side proxy finds a working node.
For @EJB i dont think this would make sense since it meant for injecting local dependencies. -
4. Re: EJB3 Injection and HA-JNDI
justkeys Oct 2, 2008 5:37 PM (in response to bdinnerv)Hm, correction about MDB: has nothing to do with @Resource, it's about @MessageDriven in the all-deployment.