DevWebProFrance News Archives About Us Feedback

Web News


Apple attacks plan to open iTunes

Apple has criticised a French law that could break the locks tying songs from the iTunes store to iPod players. In a statement Apple said that if the law were passed it would result in "state-sponsored piracy".

Google AJAX Feed API

Calling all web developers, Google has just released the new Google AJAX Feed API which offers access to public data feeds through JavaScript.

Netvibes users to create their own Universes

Netvibes, one of Europe's hottest Internet companies, has put the power to create all-you-need-to-know Web portals in the hands of individuals on Monday, challenging the decade-old strategies of online giants. Eighteen months...

Agence France-Presse, Google settle copyright dispute
News agency Agence France-Presse has entered into a licensing deal with Google, ending the dispute between the two over AFP's articles appearing on Google News.

Jalipo Launches Pay-Per-View TV Site
Jalipo, a new online distribution network for high-quality TV and video content that aims to act as an alternative to YouTube, launched on Monday with partners including BBC World and Al Jazeera English. Jalipo, which has the...

`.eu' Domain Names Top 2.5M in Year One
More than 2.5 million ".eu" Internet addresses have been registered since the European domain name launched just over a year ago, the European Commission said Wednesday. Many worldwide brands from companies...



05.03.07


JMS Event Gateways


By Sean Corfield
Expert Author
Article Date: 2007-05-03

Someone asked on the BACFUG mailing list if you could use ColdFusion with MQ series to do JMS.

I responded that, yes, the example gateway supplied with CFMX 7 is completely generic and should work with any JMS 1.0.2 compliant server.

However, there is not much documentation on this (it was just an example, after all).

Each JMS server has its own custom libraries and classes so some people just assume you have to write a custom gateway.

Not so.

You can just take the server-specific libraries and put them in the ColdFusion class path and then specify the initial context factory class (and the topic connection factory class) in the configuration file.

Try a Better Way Today.
Try WebEx MeetMeNow -
Click Here

For example, to use the ActiveMQ server (Apache's free open source JMS), specify this:

providerURL=tcp://localhost:61616
initialContextFactory=
org.apache.activemq.jndi.ActiveMQInitialContextFactory
topicConnectionFactory=TopicConnectionFactory


The config files provided with CFMX 7 as example have details for JRun's built-in JMS server:

providerURL=localhost:2908
initialContextFactory=jrun.naming.JRunContextFactory
topicConnectionFactory=jms/jndi-TopicConnectionFactory
and Fiorano's JMS server:
providerURL=http://wtgdev5.macromedia.com:2001;
http://wtgdev4.macromedia.com:2002
initialContextFactory=
fiorano.jms.runtime.naming.FioranoInitialContextFactory
topicConnectionFactory=cn=primaryTCF,cn=
TopicConnectionFactories,cn=MsgHub,ou=EAI,o=Macromedia,c=US


In the latter example, Fiorano uses LDAP to locate the actual connection factory object. The CFMX 7 JMS event gateway automatically supports both approaches.

You can specify additional context properties for the server using the contextProperties configuration parameter. You specify a comma-delimited list of property names (in the config file) that should be read in and added to the context map when creating the connection.

With Fiorano, for example, this allows you to specify how durable consumers and publishers cache data.

The example gateway is very flexible and is intended to be used "out of the box" with any compliant JMS server, without needing any code changes.

That said, the gateway as it ships today supports topics with both durable and non-durable consumers and publishers (if the JMS server supports this). It does not support queues. It does not support message selectors. It does not support transacted messages.

I'm hoping to have some news around that in due course (completely independent of Scorpio, before you start speculating!).



Comments

About the Author:
Sean is currently Senior Computer Scientist and Team Lead in the Hosted Services group at Adobe Systems Incorporated. He has worked in the IT industry for nearly twenty-five years, first in database systems and compilers (serving eight years on the ANSI C++ Standards Committee), then in mobile telecoms, and finally in web development. Sean is a staunch advocate of software standards and best practices, and is a well-known and respected speaker on these subjects. Sean has championed and contributed to a number of ColdFusion frameworks, and is a frequent publisher on his blog, http://corfield.org/

About DevWebProFrance
DevWebProFrance is for professional developers ... those who build and manage applications and sophisticated websites. DevWebProFrance delivers via news and expert advice New Strategies In Development.

DevWebProFrance is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com NetworkNewz.com


-- DevWebProFrance is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
 © 2007 iEntry Inc.  All Rights Reserved  Privacy Policy Legal  
 

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


">Unsubscribe from DevWebProFrance.
To unsubscribe from DevWebProFrance or any other iEntry
publication, simply send an email request to: support@ientry.com

New Strategies In Development
DevWebProFrance Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact