I think it should be possible. Including the JNP library in the application's library (for example .war/WEB-INF/lib/ or .ear/lib/) should make that library available for use. You could then use the code in AS 7 to do a JNP backed lookup (using the right initial context factory property value and the provider url) to make it as if the call is happening from some standalone client to AS4.x. But it's just a guess and it's likely that it probably will run into some issues that I haven't thought about.
Thx for your answer, but jboss is not amused , think i am gonna go REST
Am 10.11.2017 12:28 Nachm. schrieb "jaikiran" <email@example.com>:
JBoss Developer <https://developer.jboss.org/?et=watches.email.thread>
EJB-Client running on JBoss AS 7, To be called Stateless Bean running on
JBoss 4, is this possible?
reply from jaikiran pai
AS 7* - View the full discussion