Skip to main content

developerWorks >  WebSphere  >  Forums  >  WebSphere MQ  >  developerWorks

Channel Securtiy Exit in Java?    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 5 - Pages: 1 - Last Post: Nov 8, 2009 5:44 PM Last Post By: Glenns_Screen
ShanghaiScott

Posts: 3
Registered: Oct 13, 2009 02:03:41 PM
Channel Securtiy Exit in Java?
Posted: Oct 13, 2009 02:05:48 PM
 
Click to report abuse...   Click to reply to this thread Reply
Is it possible to use a Java class as a security exit program? All the documentation refers to libraryname(functionname) or dllname(functionname). I would like to have jarname(classname) or something. Can this be done using the MQ for Java classes which have the exit interfaces?
Glenns_Screen

Posts: 401
Registered: Apr 17, 2006 11:58:20 PM
Re: Channel Securtiy Exit in Java?
Posted: Oct 13, 2009 07:22:34 PM   in response to: ShanghaiScott in response to: ShanghaiScott's post
 
Click to report abuse...   Click to reply to this thread Reply
Try searching for "security exit" throughout the "WebSphere MQ using Java" manual. HTH, Glenn.
ShanghaiScott

Posts: 3
Registered: Oct 13, 2009 02:03:41 PM
Re: Channel Securtiy Exit in Java?
Posted: Nov 05, 2009 10:44:59 AM   in response to: Glenns_Screen in response to: Glenns_Screen's post
 
Click to report abuse...   Click to reply to this thread Reply
Thanks. I have been searching. The information that I'm missing is:

1. can a security exit program, written in Java, be assigned to a channel of a queue manager?

All the documentation in the Java (csqzaw17.pdf) PDF seems to relate to creating an MQ client which implements the MQSecurityExit.

Ideally, the security exit would be on the channel in the QueueManager so that clients do not have to be changed to do their own security (which makes little sense in any case.)

2. If it is possible to use a Java program for a security exit on a queue manager channel, how is that to be specified? If I were to use the WebSphere MQ Explorer for instance, how do I refer to the Java class the implements MQSecurityExit?
Glenns_Screen

Posts: 401
Registered: Apr 17, 2006 11:58:20 PM
Re: Channel Securtiy Exit in Java?
Posted: Nov 05, 2009 07:58:45 PM   in response to: ShanghaiScott in response to: ShanghaiScott's post
 
Click to report abuse...   Click to reply to this thread Reply
AFAIK, MQ exits written in Java can only be used from Java Clients. They cannot be used on other types of MQ channel or environments. For portability, MQ exits are normally written in ANSI C.

HTH, Glenn.
ShanghaiScott

Posts: 3
Registered: Oct 13, 2009 02:03:41 PM
Re: Channel Securtiy Exit in Java?
Posted: Nov 06, 2009 11:42:18 AM   in response to: Glenns_Screen in response to: Glenns_Screen's post
 
Click to report abuse...   Click to reply to this thread Reply
Thanks for responding. I have been working with the source code to BlockIP2 and frankly, the idea that C code is portable is debatable. This one C source file has 10,000 lines half of which are #ifdef blah to handle "portability". Java clearly would be better for portability as well as ease of maintenance. Reading about the MQSecurityExit interface really gave me hope! I'll try sending a feature request to IBM for WebSphere MQ to add support for Java apps as exits. Who knows, maybe they'll do it!
Glenns_Screen

Posts: 401
Registered: Apr 17, 2006 11:58:20 PM
Re: Channel Securtiy Exit in Java?
Posted: Nov 08, 2009 05:44:27 PM   in response to: ShanghaiScott in response to: ShanghaiScott's post
 
Click to report abuse...   Click to reply to this thread Reply
>Java clearly would be better for portability as well as ease of maintenance.

I don't agree. Java programs nearly always require the correct version of JVM to be carted around with them. MQ is not written in Java so it would be very unlikely that Java exits on message channel agents would be supported.

C is a superior language to Java for systems programming tasks such as MQ exits as C provides low level interfaces to operating system services and can make direct use of pointers and structures. Its also much faster and less memory intensive than Java. ie. there is no garbage collection in C.

I have a very complex MQ channel exit written in C that compiles on Windows, 4 different Unix's and z/OS. Only about 1% of the code has #ifdef for platform specifics, mainly for Windows.

Glenn.
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums