-
1. Re: JBoss to JBoss EJB communication
wdfink Sep 30, 2014 9:07 AM (in response to kaushik.sharma)You might check the remote-naming or the scoped context (since 7.2) approach.
It depends on your requirements what is appropriate.
Remote EJB invocations via JNDI - EJB client API or remote-naming project
-
2. Re: JBoss to JBoss EJB communication
stonesoft Oct 1, 2014 6:26 AM (in response to wdfink)I have the same issue and I was wondering if there no solution if you can't purchase 7.2? If I am correct 7.2 is the version that requires you to purchase a license if you want run it in a production mode?
thanks
-kevin
-
3. Re: JBoss to JBoss EJB communication
wdfink Oct 1, 2014 8:32 AM (in response to stonesoft)No, as long as you use AS7 (or even WildFly) bits from github this is open source.
But if you download EAP6.* from the download pages you have a 0$ subscription and you agree that you have to buy a subscription if you use that bits in production.
So it is possible to use the github repository (which has renamed to wildfly) and build the 7.2.0.Final tag or others by yourself.
Remember 7* is JBossAS, since 8* it is WildFly and there are a lot of changes
-
4. Re: JBoss to JBoss EJB communication
stonesoft Oct 3, 2014 1:13 PM (in response to wdfink)Thank you for your answer. I am going to try to build 7.2 myself. I also found the 7.2 binaries built from the source by a company named OpenLogic.
-
5. Re: JBoss to JBoss EJB communication
stonesoft Oct 6, 2014 2:25 PM (in response to stonesoft)Ok so I got the source and I am trying to build it. But before I go too far I want to try to resolve something. The application that I am trying to get work is EJB1 in Jboss on one server invokes EJB2 in Jboss on another server. EJB1 does not know the IP for EJB2 until runtime (it could be 1 of 20 or so IPs). I was reading your 2 suggestions: "Remote EJB invocations via JNDI..." and "Scoped EJB client contexts" and I am confused. On the Remote EJB invocations via JNDI page it says, "It is not possible to use remote-naming if the client is an application deployed on another JBoss instance." Does this mean that I cannot use remote naming for my example? Finally, is there an example somewhere that shows EVERYTHING that I need to do in order to get my EJB1 to be able to invoke EJB2 (in Jboss 7.2)?
thanks again
-
6. Re: JBoss to JBoss EJB communication
kaushik.sharma Oct 7, 2014 4:45 AM (in response to wdfink)I too have the same confusion as Kevin. Is it possible to dynamically invoke from JBoss1::EJB1 to JBoss2::EJB2 when the JBoss1 server does not know the IP address of the JBoss2 server until runtime? Is it some limitation of EAP 6.1, which I am using in my development set up?
thanks, kaushik
-
7. Re: JBoss to JBoss EJB communication
stonesoft Oct 10, 2014 8:24 PM (in response to kaushik.sharma)Hey Kaushik
I have given up on getting EJB to remote EJB to work. I have tried so many examples and I can't get any of them to work. I am going to rewrite the code we have that uses remote EJBs and use a web service instead. Good luck, I hope you are able to find an answer.