[JBoss-user] [EJB 3.0] - why @Remote is preferred over @Local?
Hi, I have a @Remote @Local interface | @Remote | @Local | public interface IMyIfc { ... } | SLSB that implements the interface | @Stateless | public class MyClass implements MyIfc { ... } | and another SLSB where MyClass is injected | @Stateless | public class AnotherClass implements IAnotherIfc { | @EJB | IMyIfc myIfc; | | ... | } | I would expect that local proxy is injected into AnotherClass.myIfc, however EJB container injects remote proxy. My question is - what is the reason for preferring remote over local? I did not find anything about this issue in spec... I suggest changing the order, so that call-by-reference behaviour is preferred to call-by-value. Thanks, Petr View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954299#3954299 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954299 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: How to inject resources from HA-JNDI?
The problem is that if I use @Resource(mappedName=queue/testQueue) javax.jms.Queue testQueue; ejb container uses default InitialContext (running on port 1099) to lookup the queue and not ha-jndi context (running on port 1100). Because the queue is registered in global namespace, it is not found and the SLSB cannot be deployed. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927388#3927388 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927388 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - How to inject resources from HA-JNDI?
Hi, I have a SLSB which sends messages to JMS queue. Everything runs on a cluster, i.e. JMS queue is registered in HA-JNDI and I would like to inject the queue via @Resource to the SLSB: 1. Is there a way to configure EJB3 contanainer to inject all resources from HA-JNDI instead of local JNDI? Is it a good idea to do it? 2. If not, is there a way to inject one particular resource from HA-JNDI? 3. If not, is it ok to remap resources from HA-JNDI to local JNDI and inject them from there? Are there any mbeans available which do this remapping? Thanks, Petr View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926736#3926736 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926736 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JNDI/Naming/Network] - Re: Co-located HA JNDI and EJB Clients
Seems that ExternalContext won't work as it can map only whole contexts and not objects... I've posted question to ejb3 forum: http://www.jboss.com/index.html?module=bbop=viewtopict=78279 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926737#3926737 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926737 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JNDI/Naming/Network] - Re: Co-located HA JNDI and EJB Clients
Have you considered using ExternalContext mbean to map queue from ha-jndi into local jndi? In this way you'll have jndi configuration externalized into xml file and you can even inject the queue into ejb3 beans. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926148#3926148 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926148 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user