|
|
|||||||||||||||||||||||||||||||||||||||||||||||
Masoud Kalali's Blog
NetBeans 6.7 is here. Grab your copy and explore tens of new featuresPosted by kalali on June 29, 2009 at 02:00 PM | Permalink | Comments (4)NetBeans 6.7 is available for download. NetBeans team decided to release more often to provide developers with new features sooner than later. This new release model ensure that as soon as a set of certain features are developed and stabilized can be accessed by developers to develop faster, easier and with more confidence over availability of support for latest standards and frameworks. NetBeans IDE 6.7 OverviewNetBeans IDE 6.7 is integrated with Project Kenai, a collaborative environment for developers to host open-source projects. With Kenai and the NetBeans IDE, a team of developers is able to create projects, check out, edit, debug, build, discuss, and commit code, all through one easy-to-use interface! The release also builds on the success of NetBeans 6.5 with native support for Maven; GlassFish, issue tracker and Hudson integrations; and enhancements to Java, PHP, Ruby, Groovy and C/C++. Highlights of the 6.7 release include support for JavaScript 1.7, Ruby Remote Debugging, and integration of the Java ME SDK 3.0.
If you were following NetBeans releases you should know that NetBeans IDE is now available through several mirrors to ensure that users can get the IDE as fast as possible and no release rush will cause the servers to slow down. The first one is updated with NetBeans 6.7 release and the second one is still offering 6.5.1 as the latest release. Win your Copy of Wiley's OpenSolaris Bible bookPosted by kalali on June 23, 2009 at 05:38 AM | Permalink | Comments (0)
The OpenSolaris Bible book review is located at DZone IT books Zone. This is the first part of the review and you can get familiar with the book and what it is going to cover in first 11 chapters.Some free chapters are included in the review which you can download them to get familiar with the following topics:
If you have a question about the book, just post them at book review page and in addition to getting your answer try your chance to win a free copy. JMS Over HTTP using OpenMQ (Sun Java System Message Queue and HTTP tunneling)Posted by kalali on June 19, 2009 at 01:31 PM | Permalink | Comments (3)You may have already faced situation when you need to have messaging capabilities in your application while your client application runs in an environment which you have no control over its network configuration and restrictions. Such situation lead to the fact that you can not use JMS communication over designated ports like 7676 and so. You may simply put JMS away and follow another protocol or even plain HTTP communication to address your architecture and design requirement, but we can not easily put pure JMS API capabilities away as we may need durable subscription over a proven and already well tested and established design and architecture. Different JMS implementation providers provide different type capabilities to address such a requirement. ActiveMQ provide HTTP and HTTPS transport for JMS API and described it here. OpenMQ provide different transport protocol and access channels to access OpenMQ functionalities from different prgramming . One of the access channles which involve HTTP is named Universal Message Service (UMS) which provide a simple REST interaction template to place messages and comsume them from any programming language and device which can interact with a network server. UMS has some limitations which is simply understandable based on the RESTful nature of UMS. For current version of OpenMQ, it only supports Message Queues as destinations so there is no publish-subscribe functionality available. Another capability which involve HTTP is JMS over HTTP or simply JMS HTTP tunneling. OpenMQ JMS implementation supports HTTP/s as transport protocol if we configure the message broker properly. Well I said the JMS implementation support HTTP/S as a transport protocol which means we as user of the JMS API see almost no difference in the way that we use the JMS API. We can use publish-subscribe, point to point, durable subscription, transaction and whatever provided in the JMS API. First, lets overview the OpenMQ installation and configuration then we will take a look at an example to see what changes between using JMS API and JMS API over HTTP transport. Installation process is as follow:
OpenMQ project provides a Java EE web application which interact with OpenMQ broker from one side and Sun JMS implementation on the other side. Interaction of this application with the client and MQ broker is highly customizable in different aspects like Broker port number, client poll inrval, Broker address and so on.
Now let's see how we can publish some messages, this sample code assume that we have configured the message broker and assumes that we have the following two JAR files in the classpath. These JAR files are available in install_folder/mq/lib/
Now the Publisher code:
As you can see the only difference is the connection URL which uses http instead of mq and point to a Servlet container address instead of pointing to the Broker listening address. The subscriber sample code follow a similar pattern. Here I write a sample durable subscriber so you can see that we can use durable subscribtion over HTTP. But you should note that HTTP transport uses polling and continuesly open communication channel which can introduce some overload on the server.
Now how you can test the entire example and monitor the MQ? it is very simple by utilizing the provided tools. Do the following steps to test the overall durable subscription system:
Note that we can not have two separate client with same client ID running because the broker will not be able to distinguish which client it should send the messages. The sample code for this entry can be found Here. The sample code is a NetBeans project with the publisher and the subscriber source code. A complete documentation of OpenMQ is available at its documentation centre. You can see how you can change different port numbers or configure different properties of the Broker and HTTP tunneling web application communication. |
July 2009
Search this blog:CategoriesBusinessCommunity Community: Glassfish Community: Global Education and Learning Community Community: Java Communications Community: Java Enterprise Community: Java Tools Community: Java Web Services and XML Community: JavaDesktop Community: linux.java.net Community: NetBeans Community: Portlet Deployment J2EE J2SE LDAP Open Source OpenSolaris Security Swing Tools Virtual Machine Web Applications Web Services and XML Archives
June 2009 Recent EntriesNetBeans 6.7 is here. Grab your copy and explore tens of new features Win your Copy of Wiley's OpenSolaris Bible book JMS Over HTTP using OpenMQ (Sun Java System Message Queue and HTTP tunneling) ArticlesExtending OpenPTK, the User Provisioning Toolkit Dynamic Load Balancing in GlassFish Application Server JavaDB End-to-End Security All articles by Masoud Kalali » | ||||||||||||||||||||||||||||||||||||||||||||||
|
|