ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » C# Security Exit

Post new topic  Reply to topic Goto page Previous  1, 2
 C# Security Exit « View previous topic :: View next topic » 
Author Message
jefflowrey
PostPosted: Mon Jan 15, 2007 6:26 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to be careful with .NET about the exits.

Some of them are only for managed code, and those are not compatible with other exits.

There's some specific information I remember seeing about this in the Info Center.

What was the requirement for implementing in .NET/XMS, anyway, when there are plenty of successful implementations in Java?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
SilentWind
PostPosted: Tue Jan 16, 2007 5:59 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Jan 2006
Posts: 58

jefflowrey wrote:
You need to be careful with .NET about the exits.

Some of them are only for managed code, and those are not compatible with other exits.

There's some specific information I remember seeing about this in the Info Center.

What was the requirement for implementing in .NET/XMS, anyway, when there are plenty of successful implementations in Java?


Well, I require my apps to pub-sub in a .NET environment. Previously I tried using WMQ classes to do a pub-sub, but that didn't work. Hence I reverted to XMS. I would like to ask if WMQ classes can support pub-sub, if so, I may divert resources in that area instead of focusing on XMS which is not supported at this point in time.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 16, 2007 6:29 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can manually build an MQRFH header for use with an MQ pub/sub broker, or you can manually build an MQRFH2 header for use with a WMB pub/sub broker...

The heart of my question was why .NET, and not why XMS.

For Pub/Sub, XMS makes sense.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
SilentWind
PostPosted: Tue Jan 16, 2007 9:15 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Jan 2006
Posts: 58

jefflowrey wrote:
You can manually build an MQRFH header for use with an MQ pub/sub broker, or you can manually build an MQRFH2 header for use with a WMB pub/sub broker...

The heart of my question was why .NET, and not why XMS.

For Pub/Sub, XMS makes sense.


Because I require security exits, and XMS cannot support security exits at the moment. This input is from the readme.txt when the XMS is installed and also from the IBM forums. Unless someone here has a good idea of using security exits in XMS now.... (which I hoped )
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jan 17, 2007 2:26 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

One more time.

You have many working Java apps in your shop.

Why are you using .NET instead of Java?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
SilentWind
PostPosted: Wed Jan 17, 2007 6:04 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Jan 2006
Posts: 58

jefflowrey wrote:
One more time.

You have many working Java apps in your shop.

Why are you using .NET instead of Java?


Yes, I have many Java apps. Also, I have .NET apps running. In fact they are communicating with each other. I would think this is a feature of MQ to allow for interoperability.

And yes, I have a very complicated shop.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jan 18, 2007 4:16 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

As the Devil's advocate you could try encapsulate the java classes with J# and call those from the .NET side....
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
SilentWind
PostPosted: Thu Jan 18, 2007 10:01 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Jan 2006
Posts: 58

fjb_saper wrote:
As the Devil's advocate you could try encapsulate the java classes with J# and call those from the .NET side....


That would be a last resort for me.

To summarize this topic, I would like to configure XMS to have security exits installed so that it can authenticate with the server security exit on Websphere MQ 6.0.2.

- I cannot use WMQ classes because there is no default-pub-sub implementation, and if I do, I require to construct the headers myself which I may run into other problems.
- I cannot use WMQ exit in a XMS factory because simply it does not make sense and the 2 packages are different.
- I use XMS because I have .NET apps which communicate with other apps like Java through the MQ server.

So once again, I would like to ask if XMS have any supported security exits or there is another workaround for this.

Thank you all for your valuable advice and assistance!
Back to top
View user's profile Send private message
Tibor
PostPosted: Fri Jan 19, 2007 12:33 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

SilentWind wrote:
I cannot use WMQ classes because there is no default-pub-sub implementation, and if I do, I require to construct the headers myself which I may run into other problems.

I think you can. I wrote an RFH2 header handling in C (ANSI C!) and it works since years. Moreover, C# is more flexible, that's why I think it wuold be a relatively simple task for you.

Tibor
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jan 19, 2007 12:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

SilentWind wrote:
I require to construct the headers myself which I may run into other problems.


It's not that tricky, and may prove to be easier than the workaround....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Sun Jan 21, 2007 10:12 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

fjb_saper wrote:
As the Devil's advocate you could try encapsulate the java classes with J# and call those from the .NET side....

Or you could write a standard Windows C program and compile and link it as a WMQ Security Exit DLL.

From C#, you have 2 ways to use it:
(1) In your C# code, do some thing like:
Code:
factory.SetStringProperty(XMSC.WMQ_SECURITY_EXIT, "MySecurityExit.dll");

(2) Use a Client Channel Table with your C# code. Create a CLNTCONN channel and put your exit DLL info in the SCYEXIT field.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
saketr
PostPosted: Sat Feb 24, 2007 10:02 am    Post subject: Reply with quote

Apprentice

Joined: 08 Feb 2006
Posts: 41

Hi there,

IBM.WMQ entities are 'WebSphere MQ classes for .NET' and IBM.XMS entities are 'IBM Message Service Client for .NET' or XMS .NET or IA9H.

According to IA9H readme:
ftp://ftp.software.ibm.com/software/integration/support/supportpacs/individual/ia9h.readme.txt

Section 5: Support for WMQ 'Exits' is currently not available.

If exits are a must for you application (and .NET is the platform), then 'WebSphere MQ classes for .NET' maybe the answer.

--

a Hursley view on WebSphere MQ @ http://hursleyonwmq.wordpress.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ API Support » C# Security Exit
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.