Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
garden masters:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
gardeners:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

[MDB] K&B, What technique is better ?

 
pollinator
Posts: 3570
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, K&B !
Since MDB does not have local/remote interfaces, what is better
technique:
1) To call MDB directly from client (for example, Java Servlet, possibly on separate server).
2) To call MDB from Enterprise Bean.
Java message is delivered over JMS provider, it looks like there is not
any difference, but maybe there are some other issues/tricks which should be considered. What is best best practice ?
[ October 31, 2003: Message edited by: Mikalai Zaikin ]
 
pioneer
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot call a MDB directly beacuse it does not have a home/component interfaces. You can send a message to a JMS server so that a MDB can be invoked by the container.
Hope this helps,
 
Mikalai Zaikin
pollinator
Posts: 3570
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, when I say "call MDB" that ofcourse means "send message to MDB over JMS"
My question actually was : *is there any difference for client location*?
 
Pradeep bhatt
pioneer
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It does not make any difference whether you sent messages from a servlet or EJB.
You can replace the sender any time, that is the advantage of using messaging system.
 
pioneer
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Client and MDB are highly decoupled.Thanks to JMS
 
Hey cool! They got a blimp! But I have a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!