public static DestinationUrl createDestinationUrl ( String destination ) { String [ ] split = splitDestination ( destination ) ; String host = split [ 0 ] . trim ( ) ; String jmsDestination = split [ 1 ] . trim ( ) ; return new DestinationUrl ( host , jmsDestination ) ; }
Creates an instance of an connection URL based on an destination string . In case that the destination string does not match the form HOST?QUEUE||TOPIC an IllegalArgumentException is thrown .