JMS over HTTP, HTTP tunneling, imqhttp, Glassfish, Open MQ

Hi,
I want to run JMS over HTTP, because of firewalls.
My environment:
- Windows 7 64 bits
- Java EE 6 SDK (Glassfish 3, installer java_ee_sdk-6u4-jdk7-windows-x64.exe)
Following instructions (Oracle GlassFish Server Message Queue Administration Guide, HTTP/HTTPS Support), I have done as follows:
1.- modified default.properties (in my case file D:\usr\Glassfish3\mq\lib\props\broker\default.properties) by adding "httpjms" to imq.service.activelist, so I have:
# List of active services, started at startup
imq.service.activelist=jms,admin,httpjms
2.- modified server.policy file (in my case D:\usr\Glassfish3\glassfish\domains\domain1\config\server.policy) by adding at the end:
grant codeBase "file:${com.sun.aas.installRoot}/glassfish/domains/domain1/applications/imqhttp/-" {
permission java.net.SocketPermission "*",
"connect,accept,resolve";
3.- I then, using the Glassfish Admin Console (listening on port 4848), deployed the application packaged in the imqhttp.war WAR file (this WAR file taken from D:\usr\Glassfish3\mq\lib), using "imqhttp" as Context Root name.
4.- I then invoke URL http://127.0.0.1:8080/imqhttp/tunnel and get the following return:
HTTP tunneling servlet ready.
Servlet Start Time : Wed Jul 04 19:28:01 CEST 2012
Accepting TCP connections from brokers on port : 7675
Total available brokers = 1
Broker List :
ANTEC:imqbroker
Importantly: I had to reboot everything, including Windows to get the broker listed in the broker list.
...uh !!???!! ...it just shows that posting to discussion groups and sharing is great... yesterday, I could not get this working, I had nothing in my Broker list, and a bunch of exceptions when trying to publish a message... I swear I re-started Glassfish many times... now it's working all right, and the only thing I've done meantime is to reboot the PC...
In any case, I keep the post, it might be of help to someone.
Later
Varus

To have the new setting of broker property imq.service.activelist take effect, if EMBEDDED (default) jms-service is used, the GlassFish server needs to be restarted; otherwise, the broker process needs to be restarted. If the JMS service (EMBEDDED mode) in the GlassFish server has not been started (due to GlassFish JMS lazy init - default), run 'asadmin jms-ping' will start the embedded broker in GlassFish server.

Similar Messages

  • [Fwd: JMS publishing via http-tunneling]

    "Jeffrey S. Hair" wrote:
    Does anyone know of way to speed up WL JMS publishing via http-tunneling?
    We have a server that is publishing messages to JMS rather frequently (1/200 millisecs). We then
    have several applications and applets subscribed for this topic. The applications work great and get
    all of the messages quite fast (using t3 protocol).
    However, the applet, running on the other side of a firewall, and connected to the server over a 28k
    modem, receives the updates rather slowly since the messages need tunneled through http. In fact, so
    many updates are being published that the applet continually falls behind. If we stopped the updates
    or slowed down the updates, the applet would eventually catch up and reflect the latest message.
    The sessions in the applet were created using AUTO_ACKNOWLEDGE. I've since changed them to use
    CLIENT_ACKNOWLEDGE and allow for 15 seconds of messages to be processed before acknowledging. This
    improved the speed but the applet still falls behind to some degree. When the publishing slows down,
    the applet now at least catches up.
    As a side note, does anyone know of a way to view the contents of the JMS queue?
    Thanx,
    jsh
    Jeffrey S. Hair
    Sr. System Architect, FNX Limited[email.eml]

    Which web server are you using?
    Both iWS6.0 SP2 or iWS Fast-track 4.1 works with iMQ.
    But earler versions of iWS6.0 do not and we have no
    control of that.

  • Help configuring jms over http?

    I am looking to use jms over port 8080 to both send and receive soap messages. Does anyone know how to configure jms to do this? Any good documentation?
    I am using Sun Application Server 8 Platform Edition.
    Thanks.

    Hi Rabbia,
    This is not something which is defined by the JMS standard.
    Each vendor has differing approaches to supporting HTTP/HTTPS. Some use proxy servlets in conjunction with web servers etc... Others don't support it at all.
    Nirvana from my-channels supports the idea of adding multiple interfaces to a server. Each bound to a specific hostname and port and communicating over a specific protocol (e.g. HTTP or HTTPS). Using Nirvana you would simply add a HTTP interface which is bound to port 8080.
    http://www.my-channels.com/developers/nirvana/FAQ/addingANetworkInterface.html
    You would then configure your clients to point to that specific interface..
    http://www.my-channels.com/developers/nirvana/examples/nJMS/jmsadmin_intro.html
    Hope this helps.
    Eddie McDaid
    www.my-channels.com

  • JMS over https

    Hi Big-Brains,
    I'm a starter to JMS and have a requirement for implementing a JMS client to exchange data with a remote message broker using https. I'm not sure whether the above statement make sense at all..please bare me.
    here are my queries :
    A) JMS is a specification and does not speak about low level communication, and my understanding is the message broker should provide the https transfer capablility..is this right .. please tell me if there are any provider who provide https transport mechanism built in.
    2) If I have to implement...)..please advice me how to start with. I have exposure to implement web clients (https, https using JSSE)
    Thanks in Advance and your time is very much appreciated.
    Kishore

    Hi there,
    Nirvana from my-channels supports Sockets, SSL enabled sockets, HTTP and HTTPS. All are built into the message broker. See http://www.my-channels.com/ for more info.
    Regards
    Paul

  • Https pdf links won't open in IE8

    https pdf links won't open in IE8 but do in Firefox.

    Hi All,
    We have had a few bug reports related to Adobe Reader X protected mode coming in from you in this forum. We have addressed a large number of them in our upcoming Reader update and we would like to hear your feedback.
    To that extent, we would like to invite you to the Adobe Reader Prerelease program and try out the latest build. To participate, please fill in the form available at https://www.adobe.com/cfusion/mmform/index.cfm?name=reader_prerelease_ interest and indicate Adobe Reader as the product of your interest.
    We look forward to your active participation, feedback and help towards making Reader a better product.
    Thanks and regards,
    Adobe Prerelease Team

  • Sending vectors over an Http connection

    Hello, I want to send vectors from my midlet over a http connection to a servlet. Is it possible by using a DataOutputStream in combination with an ByteArrayOutputstream? is it possible to send a vector over an http connection from j2me to jsee?

    I guess what you're saying is that you'd like to use a ByteArrayOutputStream wrapped by a ObjectOutputStream, marshal in the java.util.Vector, get the byte array and send it via HTTP somehow, and then do the reverse on the other side.
    That will work if you need to use HTTP. Otherwise, you could setup a non-HTTP connection or use a higher level system like RMI or RMI-IIOP.
    - Everett

  • Receiving Custom XML Document over AS2 (HTTPS) - Inbound Processing

    Hi All,
    Need help in Receiving Custom XML Document over AS2 (HTTPS) - Inbound Processing
    External Trading Partner will be able to post the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver.
    Here is the process flow:
    1. External Trading Partner will be posting the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver
    2. B2B, consumes the Custom XML validates as per the XSD and process it.
    3. How to send the ACK back to External Trading Partner if it validates successfully and sent it to 'IP_IN_QUEUE'
    4. How to send the ACK back to External Trading Partner if the validation fails after receiving the XML document.
    5. Does the External Trading Partner require any certificates to post the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver (no need of encryption/decryption)?
    6. How to enable the B2B server to accept the HTTPS messages from the Trading Partner (no need of encryption/decryption).
    Please let me know. Thanks In Advance.
    Regards,
    Amirineni

    Hi Nandu, Ramesh,
    We have done the set-ups for transmitting a Custom XML Document over HTTP1.1 in B2B.
    Our Business Case is as follows:
    1. Read the Flat File using BPEL File Adapter
    2. Transform the Message in BPEL and send it to B2B
    2. Based on the set-ups in B2B, we need to post the XML message to the folliwng URL:-
    http://databridge.buy.datastream.net:5555/invoke/dsImport/receiveXML
    In the B2B Set-Ups, I have done the following:
    Business Protocol name: Custom Document over Internet
    Exchange Protocol: AS
    Document Protocol: Custom
    Transport Protocol: HTTP-1.1
    Host name : http://databridge.buy.datastream.net
    Port: 5555
    I have also deployed the agreement as well as the configuration. The issue that I am currently facing is when I select the configuration in WSIL browser in JDeveloper, I am getting the following error:
    "Unable to get schema information for target".
    Hence I am not able to map the message in BPEL and send it to B2B.
    Could you please let me know the possible causes and if I am missing anything in the set-ups in B2B.
    As always, your help and guidance is highly appreciated.
    Thanks,
    Dibya

  • Java applet runs inside html page when opened with http, but no longer with "Open File" menu, why?

    Using the "Open File" menu, file:///Users/234866H/Documents/atom/atomic1.html fails to open the java applet atomic1.class inside atomic.html. However, http://atom.curtin.edu.au/igor/atom/atomic1.html works just fine.
    I suspect the problem arose following the recent java upgrade. It is also there on Safari.
    Testing Java at http://www.java.com/en/download/testjava.jsp yields:
    "Your Java is working. Your Java configuration is as follows: Vendor: Apple Inc. Version: Java SE 6 Update 51 Operating System: Mac OS X 10.6.8 Java Architecture: 64-bit"
    However, this is an http test, and not an "Open File" test.
    Any help would be appreciated.

    Hello, I don't know about this specifically but this is what I would try.
    Instead of the string "\u7834\u70C2\u7269\u7A0B\u5E8F\u5458..."
    Set the encoding type in the String constructor first...
    ie:
    new String( "\u7834\u70C2\u7269\u7A0B\u5E8F\u5458...","GB18030");
    Here is a little class I whipped up to show the CharSets that are available to you..
    public class ShowAllCharSets
    ShowAllCharSets()
    Map myMap = Charset.availableCharsets();
    Iterator iterator = myMap.keySet().iterator();
       while (iterator.hasNext())
          System.out.println("Char set name = "+((String)it.next()));
    public static void main(String args[])
       new ShowAllCharSets();
    }Then use the preset charset String with the specific encoding already set for your menu items.
    GB18030 I picked arbitrarily because it is Chinese and you may have to try another.
    Good Luck!
    (T)

  • [svn:fx-trunk] 14719: Bug: LCDS-1522 - RTE running reliable messaging test over NIO HTTP endpoint caused by checkin 272187 .

    Revision: 14719
    Revision: 14719
    Author:   [email protected]
    Date:     2010-03-12 02:20:41 -0800 (Fri, 12 Mar 2010)
    Log Message:
    Bug: LCDS-1522 - RTE running reliable messaging test over NIO HTTP endpoint caused by checkin 272187.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Checkin 272187 fixed small messages to work on NIO HTTP endpoints but this exposed a bug in HTTPChannel. HTTPChannel is not supposed to support small messaging feature but there was one place where small messages feature were still being enabled which caused the bug.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/LCDS-1522
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as

  • Talking to WL JMS Queue via HTTP

    Hi,
    We have a web application running on weblogic server 6.1. We were able to talk (in our case, this involved sending it xml input) to this application through the weblogic JMS by hitting the JMS queue via a java program on the same box. What we need to do now is to talk to that same JMS queue using HTTP. In other words, be able to post an HTTP message from a different box to the JMS queue on this weblogic server.
    How do we do that? Please assume I know as little as possible.
    Thanks so much.
    Avraham

    One way to do this is to create a servlet that forwards the incoming HTTP message to the queue. In order to access a remote box you probably just need to package the JMS client library with the servlet's WAR file. In this setup, the servlet is basically a router between the HTTP side and the JMS side. You can also create a JAX-RPC web service if you want the HTTP input to follow a specific XML structure.
    - Bjarne.

  • On my own website vdha.us, I am now getting many words that are purple and when you mouse over them, a new spamming window opens trying to sell something. IE-9 does not do this. How do I turn this off in firefox?

    Sirs,
    The below URL came up immediately when I tried to access our Newfangled website this morning http://vdha.us :
    http://surveyprizecenter.com/survey/claimgift-GT-kw-7b.php?t202kw=Vdha.us&trimmedKeyword=Vdha.us
    I prefer to use Firefox and very seldom use IE-9. but now I might be forced to remove Firefox 4.0.1 and resort to using IE-9 because of this situation.
    I don’t know how spammers can use our website to exploit their spamming, but I can only imagine the complaints I am going to get from our Board of Directors and members about this.
    Can you make them stop, or at least explain how it is that anyone can do this without our permission.
    We have never allowed advertisement on our website and don’t plan on starting now.
    I am now also getting many words that are purple with two lines under them, and when you mouse over them, a new spamming window opens automatically trying to sell something. How do I turn this off?
    I would appreciate any expediency in the return of an answer that you can provide.
    Kindest Regards,
    Dave Broeker
    VDHA Life Member #1797
    VDHA Webmaster & BX Manager
    http://vdha.us

    The "MySearchDial" app needs to be removed in 4 places.
    1) Go to "add / remove programs" in your windows control panel select mysearchdial and remove it.
    2) Open your Firefox browser then click the Firefox tab at the top left and select options. You will need to change the start page settings back to your preferred start page.
    3) Again under the Firefox tab select "add-ons". In the add-ons manager you will need to remove mysearchdial from both "plugins" and "extensions"
    4) In your search bar (top right of address bar" use the drop down menu and select "manage search engines". You can restore your preferred search engine and remove mysearchdial from the menu.
    This should remove all the components of the nuisance hijacker and restore your browser back to your preferred settings. If you are comfortable with a more in depth removal I would also suggest going to your "programs" folder within the "C" drive of your machine and deleting the "MySearchDial" folder altogether. However, only do this AFTER you have uninstalled it from your system and if you are familiar with this type of removal.

  • My creative cloud subscription is over, and I'm trying to open up Adobe Photoshop CS6 which I got from my Adobe Creative Suite 6 Design & Web Premium - Education Edition, but it keeps trying to validate my creative cloud when I know it's expired.  What do

    My creative cloud subscription is over, and I'm trying to open up Adobe Photoshop CS6 which I got from my Adobe Creative Suite 6 Design & Web Premium - Education Edition, but it keeps trying to validate my creative cloud when I know it's expired.
    What do I do?  Help ):

    How do I prevent Creative Cloud from taking over my CS6 perpetual license?
    https://forums.adobe.com/thread/1584746

  • Illustrator has not been responding for over a week, I can't open or force quit it. I've already uninstalled, reinstalled, and deleted the preferences folder, but the icon in my dock seems corrupt and is causing the program to not respond and I can't dele

    Illustrator has not been responding for over a week, I can't open or force quit it. I've already uninstalled, reinstalled, and deleted the preferences folder, but the icon in my dock seems corrupt and is causing the program to not respond and I can't delete it.

    Tamara,
    Did you reinstall using the full three step way (otherwise strange things may linger)?
    Uninstall (ticking the box to delete the preferences), run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • JMS over MQ Series (how?)

    Hi All,
    I am trying to use JMS over MQ series 5.2. Can anyone tell me how to configure the Server for the JMS.
    Also in mq series 5.2 JMS jars (javax.jms.* etc or its wrappers) for client programs are not available.
    Can some one help me out?
    Awaiting your replies....
    Regards,
    Lee.

    There are java classes for MQSeries that you can download:
    http://www-4.ibm.com/software/ts/mqseries/txppacs/ma88.html
    This page includes a tutorial/manual which tells you (nearly) everything you need to know about using JMS over MQSeries.
    Steve.

  • How the balance works for http/https in CSS?

    I want to understand how the balance works for http/https in the CSS.
    As per doc,
    - http/1.0=single URL per TCP connection
    - http/1.1=persistent connection.
    Q1. my understanding is http is stateless connection so needs TCP session for each URL. how the http/1.1 works with persistent. keep the same TCP session for a multiple URL request?
    Q2. https is using single URL and continue processing until terminate the https instead of open another URL in the middle of transaction. in this case, I think the client can stick into same service based on the assumption the CSS support persistent. if then, no advanced sticky(ex, srcip) required?
    Q3. looks below both are analogy. what's difference between them?
    - balance srcip(same src IP to the same service)
    - advanced-balance sticky-srcip
    Q4. what's balance decision mechanism for "balance roundrobin" to distribute evenly? ex, in case of multiple URL request coming from same client. evenly distribute URLs?
    Regards,

    Hello,
    first let me clarify 1 point.
    HTTP/HTTPS are standards that are defined in RFC.
    For HTTP/1.1 you can check the following RFC
    http://www.faqs.org/rfcs/rfc2616.html
    Therefore, the behavior of HTTP 1.1 is not defined by the CSS.
    Q1- HTTP/1.1 simply keeps 1 TCP connection to send a received mutiplie HTTP request/response.
    HTTP/1.0 will open 1 TCP connection for every HTTP request.
    Q2- HTTPS is just HTTP over SSL.
    So basically the same rule as above applies.
    HTTP/1.1 can use 1 SSL connection for many HTTP request/response while HTTP/1.0 will use 1 SSL connection for each HTTP request.
    Therefore, if you have customer using HTTP/1.0 you need some form of stickyness to guarantee that every connections will go to the same server.
    Even if only using HTTP/1.1 you may need stickyness.
    A user could disconnect and reconnect and require to be loadbalanced to the same server as before.
    Q3- There is a big different between balance srcip and sticky-srcip.
    The balance srcip simply hash the source ip address to find the destination server.
    The problem of this method is that the loadbalancing is not guarantee to be evenly distributed between the servers.
    With sticky-srcip, you use a normal balance method like round-robin, and then you create a sticky entry in a sticky table.
    Next time this user comes back we first check the sticky entry to find the destination server.
    The advantage is that it guarantess your users will be evenly distributed among the server.
    Q4- roundrobin is applied to connection - not url [by default].
    So if you have 2 users and they both open 1 connection, the CSS will send 1 connection to 2 different servers.
    So each server has 1 connection.
    If one user sens 10 URL and the other 1 sends only 1, one server will have 10 url to process while the other only one.
    That's if you are using HTTP/1.1 and use persistent mode on the CSS.
    You can break persistency and split the url.
    I run out of space and time to explain you everything.
    I suggest you go read the RFC or a book on HTTP.
    Also read the CSS configuration guide.
    There is much more you need to know if you want to take full advantage of the CSS like cookie, ssl offloading, L7 rules vs L3/4 rules, ...
    Regards,
    Gilles.

Maybe you are looking for