1 Reply Latest reply on Aug 17, 2004 3:04 PM by Elias Ross

    Creating a queue programmatically

    Thilina Anjitha Newbie

      hi,
      I need to create queues programatically at run time. Following link says how to do it.

      http://www.huihoo.com/jboss/online_manual/3.0/ch08s07.html

      Sample files can download from the link,
      http://www.jboss.org/doco_files/documentation-example.zip

      But the problem is this tutorial suport only Jboss 2.4.0 and 2.4.1 only. I'm using Jboss 3.2.3. I run the DestinationHelper25.java file which is in the samples directory.
      If I run in Jboss 3.2.3 it says the following error.

      Error in administering destination: java.net.ConnectException: Connection refused
      java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      at java.net.Socket.connect(Socket.java:452)
      at java.net.Socket.connect(Socket.java:402)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
      at sun.net.www.http.HttpClient.(HttpClient.java:306)
      at sun.net.www.http.HttpClient.(HttpClient.java:267)
      at sun.net.www.http.HttpClient.New(HttpClient.java:339)
      at sun.net.www.http.HttpClient.New(HttpClient.java:320)
      at sun.net.www.http.HttpClient.New(HttpClient.java:315)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498)
      at DestinationHelper25.invokeViaUrl(DestinationHelper25.java:140)
      at DestinationHelper25.invoke(DestinationHelper25.java:113)
      at DestinationHelper25.createDestination(DestinationHelper25.java:67)
      at DestinationHelper25.main(DestinationHelper25.java:196)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
      Process terminated with exit code 0





      Please can somebody help me solve this problem. Actually I'm in real trouble. If you know any other method to achive this please send me how to this.
      Thnaks in advanced for any help,
      Thilina.