Avatar billede fredand Forsker
07. december 2016 - 16:27 Der er 5 kommentarer og
2 løsninger

Is this Local or Remote?

Hello guys!

I got a WAR inside a EAR.
A Webservice-java-class in the WAR will call a EJB in the EAR.
Is that then a local or remote call?

Best regards
Fredrik
Avatar billede arne_v Ekspert
07. december 2016 - 17:06 #1
foobar.ear
___foo.war
______web service
___bar-ejb.jar
______EJB
?

local should work fine
Avatar billede arne_v Ekspert
07. december 2016 - 17:07 #2
remote will of course also work, but there should be no point in doing that
Avatar billede fredand Forsker
08. december 2016 - 15:34 #3
Thanks for your help!
Btw your assumption is right regarding the structure.
Best regards
Fredrik
Avatar billede arne_v Ekspert
08. december 2016 - 21:53 #4
Note that many today just choose:

foobar.war
______web service
______EJB
Avatar billede fredand Forsker
25. oktober 2017 - 12:37 #5
Hello again!

(Instead of creating a new issue)
Correct me if I'm wrong but the following scenario must be remote then. In the same application server I got two files, one ear and one war. A Servlet-java-class in the WAR will call a EJB in the EAR.

Structure:

foobar.ear
___bar-ejb.jar
______EJB

foo.war
___Servlet.class

I just want to make sure since I red:
"...It must run in the same application as the enterprise bean it accesses.
A local client has these characteristics.
-It must run in the same application as the enterprise bean it accesses"

With application they must refer to application.war and application.ear and such, not the application server like Jboss, right?

Best regards
Fredrik
Avatar billede arne_v Ekspert
26. oktober 2017 - 03:07 #6
Yes - that would be remote, because it is two applications with two classloader trees.
Avatar billede fredand Forsker
26. oktober 2017 - 11:14 #7
Great! Thanks alot!
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester