This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS

 
boaz rubin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need advise on a project I'm working on:
I'm creating a new mechanism that tracks our API methods for statistics reasons. For example:
measures the time it takes, success/failure, market etc.
In order to implement it, I'm using an object (for example: Vector) that is holding the required information for each API method that is invoked.
When it gets to a specific size, I'm cloning it, resetting the original one,
opening a connection to the database and storing it in the data base.
1. should I implement this action (clone, open connection, store) by using MessageDrivenBean.
2. What is the way to call to the MessageDrivenBean from the server (weblogic)

I would be happy to hear advise.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. should I implement this action (clone, open connection, store) by using MessageDrivenBean.
2. What is the way to call to the MessageDrivenBean from the server (weblogic)
MDB sounds good. You "call" message driven bean's by sending messages to the JMS queue to which the MDB is listening.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic