Exception while using CLI command to re-create outbound socket binding in JBoss EAP 6.
Issue
We are facing an issue when attempting to drop and re-create a remote destination outbound socket binding.
- Initially create the socket binding:
/socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=messaging-HOST:add(host=localhost,port=25)
- We can successfully remove the resource:
/socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-messaging-HOST:remove()
- 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.