Can JBoss EAP auto bind/unbind services as Glassfish do?

Solution Verified - Updated -

Issue

  • If my application has multiple services, can JBoss EAP container auto call bind/unbind services (methods), for example:

     public void init(InterfaceService interfaceServiceImplemantion) {
          bindConfigService(interfaceServiceImplemantion);
     }
    
     public void bindService(IService service) {
          service.set(service);
          logger.info("An IService has been set");
     }
    
     public void unbindService(IService service) {
          service.compareAndSet(service, null);
          logger.info("An IService has been removed");
     }
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content