EJB3 MessageDriven not de-queueing the message

Hi,
I've got a problem setting up a MessageDriven Bean (EJB3) on default JMS Queue in OC4J (10130).
If I open up the enterprise manager, I can see that the bean has been deployed, I can see the Queue contains messages, but it seems like the messages are not being read.
If I look at the MDB properties in the em, the only property that disturbs me is the destination type property, which seems unavailable, however I did configure it in the @MessageDriven annotation properties.
What am I doing wrong here?
Kind regards,
Bert
Here's my code:
Message Driven Bean
@MessageDriven(
          activationConfig = {
               @ActivationConfigProperty(propertyName="connectionFactoryJndiName",propertyValue="jms/RefacQueueConnectionFactory"),
               @ActivationConfigProperty(propertyName="destinationName",propertyValue="jms/MyQueue"),
               @ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue"),
               @ActivationConfigProperty(propertyName="messageSelector",propertyValue="RECIPIENT = 'MDB'") } )
public class TestMDB implements MessageListener, TimedObject {
          public void onMessage(Message message) {
                    System.out.println("onMessage() - " + message);
          public void ejbTimeout(Timer timer) {
               System.out.println("EJB 3.0: Timer with MDB");
               System.out.println("ejbTimeout() called at: " + new Date(System.currentTimeMillis()));
Client putting a test message on the queue
          ConnectionFactory factory = (ConnectionFactory) context.lookup("jms/RefacQueueConnectionFactory");
          Queue queue = (Queue) context.lookup("jms/MyQueue");
          Connection connection = factory.createConnection();
          Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
          MessageProducer sender = session.createProducer(queue);
          connection.start();
          System.out.println("Sending Message to the queue");
sender.send(session.createTextMessage("HelloWorld"));
session.commit();
View from the Enterprise manager
Message Driven Bean: "TestMDB"
General
Name "TestMDB"
State Up
Start Time Jul 7, 2006 7:25:40 AM CEST
Messaging Type javax.jms.MessageListener
Transactions Container
Transaction Support NotSupported
Performance
Messages Dequeued 0
Messages Rolled Back 0
Average Message Processing Time (seconds) 0.00
Number of Available Instances 0
Number of Used Instances 0
Message Properties
Uses Resource Adapter as Listener False
Destination Type Unavailable
Destination JNDI Location jms/MyQueue
Connection Factory JNDI Location jms/RefacQueueConnectionFactory
Subscription Type NonDurable
Subscription Name Unavailable
Listener Threads 1
Message Selector RECIPIENT = 'MDB'
Acknowledgement Mode AUTO_ACKNOWLEDGE

Well, I got the problem myself.
Just for the record, here's what I did wrong:
I forgot to put the RECIPIENT parameter on the message before sending it to the destination
Message message = session.createMessage();
message.setStringProperty("RECIPIENT", "MDB");
publisher.send(message);
I have no idea if this property is JMS spec, or Oracle specific... in my previous experience with jms, I never had to set this property (if I recall correctly). (this is the first time I'm using jms in an OC4J container.)
grtz

Similar Messages

  • HT4623 My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message. 

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an I get rid of that

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

  • My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message. How an I get rid of that

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

  • Is there away to send an email message on the ipad with a photo attachment "not" inline in the message?

    I need to send an email message on the ipad with a photo as an attachment "not" inline in the message?  I do not want the photo embedded in the email message.  I'm using exchange on the ipad. 

    Apple Mail will display attachments that are one page or less. While the photo will be displayed it is sent as an attachment. The recipient can click and drag the photo to their desktop just like any other attachment.

  • SMS messages do not appear in the Messages list, although the BlackBerry smartphone indicates that SMS messages have been received

    The BlackBerry smartphone shows notification that a SMS message has been received, but the SMS message does not appear in the Messages list or the SMS and MMS list

    Hi!
    Do you have an icon for SMS and MMS messages?
    To find the messages in the mean time from the main message queue do a search:
    Options>search setup up the options as follows it will show all unopened messages.
    Service=ALL SERVICES
    folder: ALL FOLDERS
    show: ONLY UNREAD
    type=ALL
    Thanks,
    Bifocals
    Here is the icon I'm referring to:
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • In system settings 15 item are not accessible, get the message: cannot open it, is not possible on intel based MAC. Items like security, i cloud user and groups network and more

    in system settings 15 item are not accessible, get the message: cannot open it, is not possible on intel based MAC. Items like security, iCloud user and groups network and more.
    Genius bar told me to erase the harddisk and install OSX Maverick again. This has not changed the problems with the system settings

    You need to Repartition the drive as One partition which will erase all data from it and then reinstall OS X. then with the initial setup system you chose the language on the first screen that comes up. That sets the language for the whole system.
    There is no other way of completely removing certain information created by a previous owner. this hold strue whether you are selling or give a Mac to someone.
    To do the repartitioning you need to use the Online Internet Recovery system, if the Mac came with Lion 10.7 or above, or from the original system reinstall discs that came with it when it was new.

  • Apple mail not showing all the messages?

    In Apple mail, for my icloud account, I have some mailboxes which show the wrong number of messages, it shows too few.
    As an example, a mailbox contains 150 messages, but apple mail reports there are only 146.
    I rebuilt the mailbox and let apple mail do its thing. In the activity window I can see there are 150 messages. Yet, once apple mail has finished rebuilding the mailbox, it still tells me there are 146 messages. What's going wrong? Why would apple mail not show all the messages while in the activity window it clearly shows it knows there are 150?

    Solved!
    This was too weird to be real. Apple mail does not show messages it believes to be duplicates, and buy, does it make big mistakes in deciding what are duplicate messages and what not! Some of my mailboxes had over 100 "duplicates" not showing according to apple mail.
    I found a solution thanks to this topic:
    https://discussions.apple.com/message/18265121#18265121
    defaults delete com.apple.mail AlwaysShowDuplicates
    does yield an error in 10.8.2 ( Domain (com.apple.mail) not found. Defaults have not been changed. )
    defaults write com.apple.mail AlwaysShowDuplicates -bool true
    Does work brilliantly though!

  • How do i attach a file to an email as an attachment and not embeded in the message?

    how do i attach a file to an email as an attachment and not embeded in the message?

    This question has been asked and answered several times already.
    Any file attached to an e-mail message is an attachment. There is no other possibility -- the mail protocol does not allow it.
    However, different e-mail clients may have different ways of displaying or viewing attachments, depending on their settings and the type of file attached.
    If you're having problems with Windows users complaining about your messages, follow these instructions
    <http://docs.info.apple.com/article.html?path=Mail/4.0/en/9965.html>

  • HT4623 I have tried to update my iPhone using the iTunes method but it will not work. The message "The iTunes update server could not be contacted. Please check your internet connection or try again later," appears. What do I do? The Internet is working f

    I have tried to update my iPhone using the iTunes method but it will not work. The message "The iTunes update server could not be contacted. Please check your internet connection or try again later," appears. What do I do? The Internet is working fine.

    Have you tried the following troubleshooting document?
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    If you end up using the If the iTunes Store opens successfully section of the document, and the "Automatically detect settings" checkbox is already checked, try unchecking and rechecking it and clicking OK.

  • I am trying to start a movie and it will not start. The message is "an error occurred in loading this content". Has anyone had this problem before?

    I am trying to start a movie and it will not start. The message is, "an error occurred loading this content". Has anyone had this message before? Any solution?

    Hi there TonyCashio,
    You may find the troubleshooting steps in the article below helpful.
    Apple TV (2nd and 3rd generation): Troubleshooting playback performance
    http://support.apple.com/kb/TS3623
    -Griff W. 

  • Client x.x.x.x is not known to the message server

    Hi,
    One of my customers is getting strange messages in the Development system of their SRM landscape. The messages are:
    Client x.x.x.x is not known to the message server
    Where x.x.x.x is the IP address of a workstation. The messages occur a few times per day, and they are always grouped. There are always about 5 identical messages with the same IP, but the next occurence may be from a different IP. Also, the QAS and PRD systems are configured identically (as far as I know) but they do not have this message.
    I do not understand why this message occurs. The "clients" of a message server are it's application servers, not the connected workstations. The users/developers are not doing anything special at this time. There are no dumps, the messages only appear in ST22.
    At another forum it was suggested that the problem may be with the printers in SPAD (there was one type F printer which I chaged to type G and eventually removed, but no change) or with the operation modes. I was also asked to check the logon groups. Everything seems normal there too.
    Does anyone have any idea where to look?
    Thanks
    Mischa

    Check this SAP NOTE ...The R/3 System relies on the operation system to resolve names and IP-addresses of other hosts (for example, host names of other Application Servers in the same R/3 system or IP-addresses of client computers that access the system).
    Try adding the host entries of R/3 system(Messager server) on Client computer and check if it works.
    Note 124562 - Hostname resolution problems (DNS timeouts)

  • Client PRD01_PRD_00 is not known to the message server

    Hi,
    I get a lot of user disconnects (SM21) and update deactivation (SM13). From the system log I get the following error. Are they related? How can I fix this?
    Client PRD01_PRD_00 is not known to the message server     
    Client PRD02_PRD_00 is not known to the message server     
    Transaction Canceled BT 510 ( )                                   
    Perform rollback                                                  
    Operating system call recv failed (error no. 10054)               
    Connection to user 24070 (BUCHANR ), terminal 112 (MB02159PC ) lost
    Please advise

    Hi Ferrari,
    I have the same problem here.
    Can you tell me how solution do you apply?
    Best regards,
    Marcelo Moraes

  • Client is not known to the message server

    Hi,
    I've search SAP Notes but could not find any answer to my problem. I am running 4.7 (620) on Ora 9i, Windows 2000 Advanced Server and kernel 155. We have 2 application servers and one DB server.
    I get an error message every 5 minutes in the system log reading:-
    Client PRD01PRD_00 is not known to the message server
    Client PRD02PRD_00 is not known to the message server
    This message translates in dev_w0 as follows:-
    ERROR => ThCheckReqInfo: message send/receive failed [thxxhead.c 16132]
    ERROR => ThSysAdmMsg: ThAdmSend [thxxab.c   6903]
    Please advise on a solution.

    Dear Ferrandi,
    this is an attempt to send an ADM message to a given instance. The problem is that the message server is not aware of such an instance. If you say that this happens every 5 minutes, it will be some kind of automatic job trying to speak to an instance not available in the system. I would suggest that you reset the trace files, then switch the trace level of the first three dialog work processes to 2 (components taskhandler, abap proc., and scrn. proc.) and then set the profile parameters
    rdisp/TRACE_LOGGING = on, 10m
    rdisp/TRACE_PATTERN_0 = ERROR => ThSysAdmMesg: ThAdmSend
    so that tracing will stop as soon as the problem happens again. Do post the work process trace file that has the error message here or send it via mail to me so that I can check which report is being run.
    Best Regards,
    Tim

  • Lightroom will not start up the message I get is

    A problem caused the program to stop working correctly Windows will close the program and notify you if a solution is available.
    Lost

    Thank you I'll try that
    Date: Wed, 16 Nov 2011 13:54:08 -0700
    From: [email protected]
    To: [email protected]
    Subject: Lightroom will not start up the message I get is
        Re: Lightroom will not start up the message I get is
        created by web-weaver in Photoshop Lightroom - View the full discussion
    Try it one more time - unless you have tried it already more than once.If the message appears again, you have to re-install LR.You can download the latest version from Adobe using your Serial key #.WW
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4030407#4030407
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4030407#4030407. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Lightroom by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Why does installation not start after the message "setup wants to make changes"?

    Why does installation not start after the message "Setup wants to make changes.  Type your password to allow this"?

    Hi
    It wants your system's admin password. Standard procedure on Mac for non-admin users
    Thanks

Maybe you are looking for

  • Microsoft Windows 8.1 update 1

    http://www.foxnews.com/tech/2014/04/02/windows-81-update-1-is-coming-april-8-here-are-new-features/?intcmp=obnetwork At Build 2014, Microsoft’s annual developer-focused conference, the company dished out some details about Windows 8.1 Update 1, the f

  • Problem in transporting the objects from Q to P

    Hi, I am trying to transport ds, is, DSO from Q to P. But it ended with errors. Below are the error messages. Extract structure ZOXDS20119 is not active The extract structure ZOXDS20119 of the DataSource ZDS_BILLCHANGE is invalid ZDS_BILLCHANGE is cr

  • Crystal reports version 12 vs version 11

    my company purchased crystal reports version 11 and got version 12 in error of course version 12 is an upgraded version so it was a keeper-----our hosting payroll site only works with version 11 and they said it would not be a problem if we created r

  • VPP needs an extra code with Configurator?

    I've got a question about configurator and VPP codes. The help file for Configurator says you import an app and then import the spreadsheet of codes to authorize the apps. So I purchased 32 copies of an app for the 32 ipads in our cart. I went into i

  • Downloaded a song but the file was corrupt , how do i get refunded back if the song

    when i downloadeda song on itunes i found that one of the files was corrpt and now wont completely dwnload and still had 2 pay for it . My question is how do i get my money back from that purchase or get thesong i wanted ?