Hello, team
We are trying to switch Wildfly version from 23 to 27.
We have A LOT of legacy code which runs INSIDE wildfly server and tries to do jndi-connection to controller beans via InitialContext in following way:
1. Create InitialContext object with following properties:
{java.naming.provider.url=
http://localhost/wildfly-services, java.naming.factory.initial=org.jboss.as.naming.InitialContextFactory, java.naming.factory.url.pkgs=org.jboss.as.naming.interfaces}
2.
Object objref = initialContext.lookup("java:global/NMS/config/PublicConfigurationControllerBean!com.allot.nms.configuration.management.ejb.PublicConfigurationControllerInternal");
Object remoteHome = PortableRemoteObject.narrow(objref, com.allot.nms.configuration.management.ejb.PublicConfigurationControllerInternal);
Call remoteHome.someFunction()
I get exception of "javax.naming.NameNotFoundException: NMS/config/PublicConfigurationControllerBean!com.allot.nms.configuration.management.ejb.PublicConfigurationControllerInternal"
It worked fine in Widfly 23. Should it work also in Wildfly 27 ?
Any help will be appreciated.
Thanks,
Arkady