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, 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