Exception while using CLI command to re-create outbound socket binding in JBoss EAP 6.

Solution Unverified - Updated -

Issue

We are facing an issue when attempting to drop and re-create a remote destination outbound socket binding.

  1. Initially create the socket binding:
/socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=messaging-HOST:add(host=localhost,port=25)
  1. We can successfully remove the resource:
/socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-messaging-HOST:remove()
  1. Subsequent attempts to re-create the resource fail indicating that the resource still exists, even though reading the resource indicates that it does not exist.
/socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-messaging-HOST:add(host=localhost,port=25)
{
    "outcome" => "failed",
    "failure-description" => "JBAS014749: Operation handler failed: Service jboss.outbound-socket-binding.messaging-HOST is already registered",
    "rolled-back" => true
}

If we restart the JBoss instance, then we are then able to re-add the socket binding.Is there a way to remove and re-add the binding without having to restart the instance?

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.