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 Java / JMS » Should I use MDB or listener?

Post new topic  Reply to topic
 Should I use MDB or listener? « View previous topic :: View next topic » 
Author Message
klee
PostPosted: Fri Apr 20, 2007 12:03 am    Post subject: Should I use MDB or listener? Reply with quote

Novice

Joined: 05 Oct 2003
Posts: 15

Hi all,

I have the below requirement.

1. receive message from system1 and process it
2. then send an new message to system2(with retry) and wait for its reply

Should I use MDB or listener?
Is there any disadvantage if I use MDB?

Thanks,
Klee
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri Apr 20, 2007 1:40 am    Post subject: Re: Should I use MDB or listener? Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

klee wrote:
Hi all,

I have the below requirement.

1. receive message from system1 and process it
2. then send an new message to system2(with retry) and wait for its reply

Should I use MDB or listener?
Is there any disadvantage if I use MDB?

Thanks,
Klee


What do you mean by listener, your standalone application ?

It's wide question ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
klee
PostPosted: Sun Apr 22, 2007 1:33 am    Post subject: Reply with quote

Novice

Joined: 05 Oct 2003
Posts: 15

Yes, I mean standalone application.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun Apr 22, 2007 2:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can't use an MDB in a standalone application.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Sun Apr 22, 2007 10:18 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

klee wrote:
Yes, I mean standalone application.


It depends on many, many things .


I could have similar questin:

Quote:
"
Hi all,

I have the below requirement.

1. receive message from system1 and process it
2. then send an new message to system2(with retry) and wait for its reply

Should I use C or JAVA?
Is there any disadvantage if I use JAVA?
"


Nobody will answer such a question.

I need additional informatin about this application architecture and business?

- is your application part of web application (use MDB) or standalone applicatin (use listener) ?

- What kind of application server architecture do you have ?

- Who will be administrator of this new app in this 2 options (new person ) ?
- application architecture ?

- performance requrements

- ...
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
jeevan
PostPosted: Sun Apr 22, 2007 12:51 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

marcin.kasinski wrote:
klee wrote:
Yes, I mean standalone application.


I need additional informatin about this application architecture and business?

- is your application part of web application (use MDB) or standalone applicatin (use listener) ?

- What kind of application server architecture do you have ?

- Who will be administrator of this new app in this 2 options (new person ) ?
- application architecture ?

- performance requrements

- ...


I am a beginner in JMS programming though I am good at MQ admin. Now trying to learn ( time and technological dev dictate to learn dev If I liek to stay in job market)


I am curious to get answered a few questions:


I have hard time understanding role of JNDI in enterprise programming
can JMS be used in standalone programming ? i mean client /.server setup

what is difference between jsm client program and mdb?

I would be greatful if you can answer these questions

thanks
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Sun Apr 22, 2007 1:29 pm    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

jeevan wrote:

can JMS be used in standalone programming ? i mean client /.server setup


Yes,

It's just API.

jeevan wrote:


what is difference between jsm client program and mdb?

thanks



JMS client program is proogram written using JMS API

MDB is part of J2EE.
It lets you in easy way implement event oriented application.

MDB interface has method onMessage.

You, I mean developer should implement this method.

Application server reads MQ queue by listeners.
Listener execute this method for every queue.

It was very short description.

The rest you can read in JMS and MDB docs.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Sun Apr 22, 2007 2:19 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Think of JNDI as a large properties file.

That happens to be managed and stored in a complicated way that makes it somewhat complicated to get at, unless you're running inside the same java virtual machine that is managing and storing the properties (the app server).

The J2EE/JEE application server provides many services to applications, including managed transactions, connection pools, and naming services (JNDI).

Applications that use the JMS API can be written to take advantage of all of those services. Applications that use the JMS API can also be written to ignore those services.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Should I use MDB or listener?
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.