Greetings There was a difficult (for me) situation with the interceptor. The essence is as follows. There is one packet where the method is located whose parameters should be intercepted. And in another package is the interceptor itself. The deployment descriptor is in the spool class package in the META-INF folder.

The ide spoiler itself finds (it does not light in red in xml, because it is in the same package), but it cannot find the required method and class, because it is in another package. (I think so because of this) For all the exclamations of the ideas he scored and tried to intercept the arriving parameters in the method, previously knocked down, but did not work. In target all classes are, ejb-jar.xml in jar is.

And yes, you cannot change the code of the class where the method whose parameters are to be intercepted is located, i.e. all you need to do through the descriptor.

  • Folder META-INF should not be in the package, but in the root of the jar archive - Sergey
  • @Sergey, in the down state, it is in the root of the jar archive. - exStas
  • So is this a web application? WAR? Does it really look in META-INF if it says that for war ejb-jar.xml should be in WEB-INF and EJB archives are not perceived as EJB archives? JAR files that contain enterprise bean classes packaged within a WAR module are not considered EJB JAR files, even if the bundled JAR file conforms to the format of an EJB JAR file. - Sergey
  • @Sergey, I'm sorry. Not in the cooker is, as I wrote above, in the jar of course. - exStas
  • Then maybe in ejb-jar they called their ejb differently and it turned out two sets of ejb. One class, different names. The program uses one, and the spoilers are not used for others. - Sergey

0