Author |
Message
|
klee |
Posted: Fri Apr 20, 2007 12:03 am Post subject: Should I use MDB or listener? |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Fri Apr 20, 2007 1:40 am Post subject: Re: Should I use MDB or listener? |
|
|
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 |
|
 |
klee |
Posted: Sun Apr 22, 2007 1:33 am Post subject: |
|
|
Novice
Joined: 05 Oct 2003 Posts: 15
|
Yes, I mean standalone application. |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Apr 22, 2007 2:17 am Post subject: |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Sun Apr 22, 2007 10:18 am Post subject: |
|
|
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 |
|
 |
jeevan |
Posted: Sun Apr 22, 2007 12:51 pm Post subject: |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Sun Apr 22, 2007 1:29 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Sun Apr 22, 2007 2:19 pm Post subject: |
|
|
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 |
|
 |
|