Re: Implementing JMS form C#

2004-11-25 Thread mqteam
Sid/Roger,



The reason I want to use JMS rather then the MQ.NET API is because lets face
it, the .NET API is far from being really object-oriented, it very much like
coding procedural using an OO language. Now that would fine if we were
writing VB code, but we have a lot of Java know-how and we would like to
have the same in .NET be it design patterns and methodologies or just code
samples for handling messages we rather recode then redesign and rethink.



Just think about the added value given by using JNDI and abstraction of
publish and subscribe to common queuing.



Roger thanks for the link, but we have already have a message type we use
that inherent the MQMessage and expands it to include the JMS headers.



What we are looking for is a way to code this:


public static void main(String[] args) {
String destName = null;
String destType = null;
ContextjndiContext = null;
ConnectionFactory  connectionFactory = null;
Connection connection = null;
Sessionsession = null;
Destinationdest = null;
MessageConsumerconsumer = null;
TextMessagemessage = null;

connectionFactory = (ConnectionFactory)
jndiContext.lookup(jms/QueueConnectionFactory);
connection = connectionFactory.createConnection();
session = connection.createSession(false,
Session.AUTO_ACKNOWLEDGE);
consumer = session.createConsumer(dest);
connection.start();

Message m = consumer.receive(1);
And so on

Cheers
TIA
Didi






- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 11:59 PM
Subject: Re: Implementing JMS form C#


 The .net environment supports MSMQ only (AFAI), I don't think there is any
 kind of JMS bridge built in.

 If your using c# why not use IBM .NET support ?? Why JMS ??

 Sid




 -Original Message-
 From: mqteam [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 24 November 2004 22:42
 To: [EMAIL PROTECTED]
 Subject: Implementing JMS form C#

 Hello All,



 I would like to know if there are any JMS implementations in C#,

 Meaning can I write code like this in C#:





 Using XXX.JMS



 Namespace mynamespace {



 Class myclass {



 Void static main ..



 ConnectionFactory qcf;

 Connection Conn;

 Session Sess ;



 Conn =  qcf.createconnection() ..



 And so on and so forth,

 Do you know of any product like this, better yet an open source is better.

 Best option will include an MDB and support for MQSeries built in, but
this
 is a little to much to expect.



 The reason I need it is to form a common methodology on messaging from
.NET
 and J2EE.



 Cheers

 Didi

 Instructions for managing your mailing list subscription are provided in
 the Listserv General Users Guide available at http://www.lsoft.com
 Archive: http://vm.akh-wien.ac.at/MQSeries.archive

 Instructions for managing your mailing list subscription are provided in
 the Listserv General Users Guide available at http://www.lsoft.com
 Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: Implementing JMS form C#

2004-11-25 Thread Roger Lacroix
Hi,

So, you are in a Ford dealership wanting to buy a Mustang but saying you want
the features and color of a Corvette!?!?!

Now maybe your boss is Bill Gates but seriously, if you want J2EE features then
why don't you just use Java?

It can't be a cost issue. You can get almost everything for free.
- Eclipse IDE for Java developement - FREE
- Java JDK v5.0 - FREE
- Java J2EE v1.4 - FREE
- JBoss (now certified for J2EE) - FREE
- WMQ Server - pony up some money to IBM.


Regards,
Roger Lacroix
Capitalware Inc.
http://www.capitalware.biz


Quoting mqteam [EMAIL PROTECTED]:

 Sid/Roger,



 The reason I want to use JMS rather then the MQ.NET API is because lets face
 it, the .NET API is far from being really object-oriented, it very much like
 coding procedural using an OO language. Now that would fine if we were
 writing VB code, but we have a lot of Java know-how and we would like to
 have the same in .NET be it design patterns and methodologies or just code
 samples for handling messages we rather recode then redesign and rethink.



 Just think about the added value given by using JNDI and abstraction of
 publish and subscribe to common queuing.



 Roger thanks for the link, but we have already have a message type we use
 that inherent the MQMessage and expands it to include the JMS headers.



 What we are looking for is a way to code this:


 public static void main(String[] args) {
 String destName = null;
 String destType = null;
 ContextjndiContext = null;
 ConnectionFactory  connectionFactory = null;
 Connection connection = null;
 Sessionsession = null;
 Destinationdest = null;
 MessageConsumerconsumer = null;
 TextMessagemessage = null;

 connectionFactory = (ConnectionFactory)
 jndiContext.lookup(jms/QueueConnectionFactory);
 connection = connectionFactory.createConnection();
 session = connection.createSession(false,
 Session.AUTO_ACKNOWLEDGE);
 consumer = session.createConsumer(dest);
 connection.start();

 Message m = consumer.receive(1);
 And so on

 Cheers
 TIA
 Didi






 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 11:59 PM
 Subject: Re: Implementing JMS form C#


  The .net environment supports MSMQ only (AFAI), I don't think there is any
  kind of JMS bridge built in.
 
  If your using c# why not use IBM .NET support ?? Why JMS ??
 
  Sid
 
 
 
 
  -Original Message-
  From: mqteam [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, 24 November 2004 22:42
  To: [EMAIL PROTECTED]
  Subject: Implementing JMS form C#
 
  Hello All,
 
 
 
  I would like to know if there are any JMS implementations in C#,
 
  Meaning can I write code like this in C#:
 
 
 
 
 
  Using XXX.JMS
 
 
 
  Namespace mynamespace {
 
 
 
  Class myclass {
 
 
 
  Void static main ..
 
 
 
  ConnectionFactory qcf;
 
  Connection Conn;
 
  Session Sess ;
 
 
 
  Conn =  qcf.createconnection() ..
 
 
 
  And so on and so forth,
 
  Do you know of any product like this, better yet an open source is better.
 
  Best option will include an MDB and support for MQSeries built in, but
 this
  is a little to much to expect.
 
 
 
  The reason I need it is to form a common methodology on messaging from
 .NET
  and J2EE.
 
 
 
  Cheers
 
  Didi
 
  Instructions for managing your mailing list subscription are provided in
  the Listserv General Users Guide available at http://www.lsoft.com
  Archive: http://vm.akh-wien.ac.at/MQSeries.archive
 
  Instructions for managing your mailing list subscription are provided in
  the Listserv General Users Guide available at http://www.lsoft.com
  Archive: http://vm.akh-wien.ac.at/MQSeries.archive

 Instructions for managing your mailing list subscription are provided in
 the Listserv General Users Guide available at http://www.lsoft.com
 Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: Implementing JMS form C#

2004-11-25 Thread mqteam
My boss is not Bill Gates, but he still wants to downsize the sun machines
to Intel and as for wanting the Corvette well I want the Ferrari!!!

You don't need to tell me about J2EE being better I know that for sure, but
we have a lot of .NET code that will need to work with other platforms and I
was hoping for a better way of doing it!



As for money, J2EE programmers cost 2 to 3 folds more then .NET programmers.



Cheers

Didi

- Original Message -
From: Roger Lacroix [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 25, 2004 5:25 PM
Subject: Re: Implementing JMS form C#


 Hi,

 So, you are in a Ford dealership wanting to buy a Mustang but saying you
want
 the features and color of a Corvette!?!?!

 Now maybe your boss is Bill Gates but seriously, if you want J2EE features
then
 why don't you just use Java?

 It can't be a cost issue. You can get almost everything for free.
 - Eclipse IDE for Java developement - FREE
 - Java JDK v5.0 - FREE
 - Java J2EE v1.4 - FREE
 - JBoss (now certified for J2EE) - FREE
 - WMQ Server - pony up some money to IBM.


 Regards,
 Roger Lacroix
 Capitalware Inc.
 http://www.capitalware.biz


 Quoting mqteam [EMAIL PROTECTED]:

  Sid/Roger,
 
 
 
  The reason I want to use JMS rather then the MQ.NET API is because lets
face
  it, the .NET API is far from being really object-oriented, it very much
like
  coding procedural using an OO language. Now that would fine if we were
  writing VB code, but we have a lot of Java know-how and we would like to
  have the same in .NET be it design patterns and methodologies or just
code
  samples for handling messages we rather recode then redesign and
rethink.
 
 
 
  Just think about the added value given by using JNDI and abstraction of
  publish and subscribe to common queuing.
 
 
 
  Roger thanks for the link, but we have already have a message type we
use
  that inherent the MQMessage and expands it to include the JMS headers.
 
 
 
  What we are looking for is a way to code this:
 
 
  public static void main(String[] args) {
  String destName = null;
  String destType = null;
  ContextjndiContext = null;
  ConnectionFactory  connectionFactory = null;
  Connection connection = null;
  Sessionsession = null;
  Destinationdest = null;
  MessageConsumerconsumer = null;
  TextMessagemessage = null;
 
  connectionFactory = (ConnectionFactory)
  jndiContext.lookup(jms/QueueConnectionFactory);
  connection = connectionFactory.createConnection();
  session = connection.createSession(false,
  Session.AUTO_ACKNOWLEDGE);
  consumer = session.createConsumer(dest);
  connection.start();
 
  Message m = consumer.receive(1);
  And so on
 
  Cheers
  TIA
  Didi
 
 
 
 
 
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, November 24, 2004 11:59 PM
  Subject: Re: Implementing JMS form C#
 
 
   The .net environment supports MSMQ only (AFAI), I don't think there is
any
   kind of JMS bridge built in.
  
   If your using c# why not use IBM .NET support ?? Why JMS ??
  
   Sid
  
  
  
  
   -Original Message-
   From: mqteam [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, 24 November 2004 22:42
   To: [EMAIL PROTECTED]
   Subject: Implementing JMS form C#
  
   Hello All,
  
  
  
   I would like to know if there are any JMS implementations in C#,
  
   Meaning can I write code like this in C#:
  
  
  
  
  
   Using XXX.JMS
  
  
  
   Namespace mynamespace {
  
  
  
   Class myclass {
  
  
  
   Void static main ..
  
  
  
   ConnectionFactory qcf;
  
   Connection Conn;
  
   Session Sess ;
  
  
  
   Conn =  qcf.createconnection() ..
  
  
  
   And so on and so forth,
  
   Do you know of any product like this, better yet an open source is
better.
  
   Best option will include an MDB and support for MQSeries built in, but
  this
   is a little to much to expect.
  
  
  
   The reason I need it is to form a common methodology on messaging from
  .NET
   and J2EE.
  
  
  
   Cheers
  
   Didi
  
   Instructions for managing your mailing list subscription are provided
in
   the Listserv General Users Guide available at http://www.lsoft.com
   Archive: http://vm.akh-wien.ac.at/MQSeries.archive
  
   Instructions for managing your mailing list subscription are provided
in
   the Listserv General Users Guide available at http://www.lsoft.com
   Archive: http://vm.akh-wien.ac.at/MQSeries.archive
 
  Instructions for managing your mailing list subscription are provided in
  the Listserv General Users Guide available at http://www.lsoft.com
  Archive: http://vm.akh-wien.ac.at/MQSeries.archive
 

 Instructions for managing your mailing list subscription are provided in
 the Listserv General Users Guide available at http

Re: Implementing JMS form C#

2004-11-24 Thread Roger Lacroix
Hi,

I guess the question is why?  Or is that you like the concept of J2EE and wished
.NET had it?

Because if you are only concerned about MQRFH messages then don't bother
building them.  Just send your payload as plain data and set the receiving JMS
Queue's attribute of 'TargClient' set to MQ (vs JMS). Hence the bean will be
able to read the message because the MQ JMS layer will add what is missing.

The same is true for sending a message from a JMS application to your C# app
(set 'TargClient' to MQ).

On the other hand, if you really want to go down that road, here's a starting
point:
http://searchvb.techtarget.com/vsnetTip/1,293823,sid8_gci930896_tax293034,00.html


Regards,
Roger Lacroix
Capitalware Inc.
http://www.capitalware.biz


Quoting mqteam [EMAIL PROTECTED]:

 Hello All,



 I would like to know if there are any JMS implementations in C#,

 Meaning can I write code like this in C#:





 Using XXX.JMS



 Namespace mynamespace {



 Class myclass {



 Void static main ..



 ConnectionFactory qcf;

 Connection Conn;

 Session Sess ;



 Conn =  qcf.createconnection() ..



 And so on and so forth,

 Do you know of any product like this, better yet an open source is better.

 Best option will include an MDB and support for MQSeries built in, but this
 is a little to much to expect.



 The reason I need it is to form a common methodology on messaging from .NET
 and J2EE.



 Cheers

 Didi

 Instructions for managing your mailing list subscription are provided in
 the Listserv General Users Guide available at http://www.lsoft.com
 Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: Implementing JMS form C#

2004-11-24 Thread Sid . Young
The .net environment supports MSMQ only (AFAI), I don't think there is any
kind of JMS bridge built in.

If your using c# why not use IBM .NET support ?? Why JMS ??

Sid




-Original Message-
From: mqteam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 24 November 2004 22:42
To: [EMAIL PROTECTED]
Subject: Implementing JMS form C#

Hello All,



I would like to know if there are any JMS implementations in C#,

Meaning can I write code like this in C#:





Using XXX.JMS



Namespace mynamespace {



Class myclass {



Void static main ..



ConnectionFactory qcf;

Connection Conn;

Session Sess ;



Conn =  qcf.createconnection() ..



And so on and so forth,

Do you know of any product like this, better yet an open source is better.

Best option will include an MDB and support for MQSeries built in, but this
is a little to much to expect.



The reason I need it is to form a common methodology on messaging from .NET
and J2EE.



Cheers

Didi

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive