-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable instrumentation of Spring EJB clients #11104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! is it possible to add a test similar to SpringRmiTest.groovy for this?
Sure, I'll see what I can do! |
b909af6
to
65d1a15
Compare
@trask I was able to write a test for the remote-slsb Spring XML integration pattern. While I was at it, I also converted the Groovy test to Java for #7195. |
6d716de
to
6546cfd
Compare
The test worked when I ran from IntelliJ, but not when I ran from console. IntelliJ must include all the dependencies on the classpath, so the Spring 6 classes were available there.
The spring-test dependency was only added to use their JNDI mock, but that was removed in Spring 5. With the use of simple-jndi instead, spring-test was no longer required
@trask Tests are now successful. Turns out the Spring class I used to mock JNDI was removed in Spring 5, so it broke the latest dependencies test with a NoClassDefFoundError. I replaced it with a different JNDI mock library, it's working now. |
Thanks @laurit! I wasn't able to find a way to dynamically create an EJB at runtime, so it's cool to see that you were able to. |
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
Spring's XML configuration allows connecting to a remote EJB through the
remote-slsb
XML element. This connection utilizes a class in the packageorg.springframework.ejb.access
. This PR instruments the required class.