Obtain EJB client JAR

0

I have a Web application that has an EJB module and I want to obtain the JAR of the EJB client. But I get an error.

Could someone help me and tell me how to open the EAR and extract the JAR file that I need.

    
asked by Sov Villegas 09.01.2017 в 03:42
source

1 answer

0

The error is clearly saying that RegistrationRequestedPortImpl and RegistrationPortImpl have the same URL pattern .

I do not understand well if the question is about how to extract a JAR of a EAR literally or if you want to call it from another module.

In any case, if it is the first, why do you want to access files .class ? If so, @Dani is right, any file compressor ...

If it is the second one, an EJB can be injected in the following way, in any bean :

@EJB
private NombreEJB nombreRef;

Or manually using a lookup :

Context ctx = new InitialContext();
      NombreEJB nomEJB = (NombreEJB) ctx.lookup("java:comp/env/NombreEJB");
    
answered by 09.01.2017 в 22:22