This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes In MDB's Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "In MDB Watch "In MDB New topic
Author

In MDB's

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 832
In MDB's do we have option to use either EJBContext or MessageDrivenContext ?


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
Ralph Jaus
Ranch Hand

Joined: Apr 27, 2008
Posts: 342
Not really: You can inject, for example, an EJBContext

@Resource private EJBContext ctx;

in a MDB (and use it - works fine). But

ctx instanceof(MessageDrivenContext)

will be true. That means even if you declare an EJBContext, the container will provide a reference to the sub-interface.


SCJP 5 (98%) - SCBCD 5 (98%)
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 832
thanks for your reply. I mean to say we can use any of them in MDB's
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: In MDB's
 
Similar Threads
calling SLSB from MDB
MDB in WebSphere 4.0
email handling??
High volume data processing question
Single-Threaded MDB?