Send msg to MessageDrivenBean multithreading?

how can i send 5000 msg to a MDB by mutithreading??!!
is it possible to set them in a second by managing multithreading?
or it doesnt have to do with multithreaded client and it has to do with the container or MDB?
if it is possible with multithreading send a simple sample else guide me what can i do?

Hi,
First of all. One thing you should be clear is that if you want to run an MDB you need to send messages to the configured destinations. In general the messages are processed in the order in which it arrives to the queue.
For your question it looks like you want a pool of MDB instances running on the server and parallely process them on the server.
Then you may send n (n=5000) messages sequentially to the JMS Destination using some client program and then with the following <pool>
                    <max-beans-in-free-pool>10</max-beans-in-free-pool>
                    <initial-beans-in-free-pool>5</initial-beans-in-free-pool>
               </pool>in the deployment descriptor for the ejb you can achive parallel processing.

Similar Messages

  • Reject Travel Request (Enter and Send Msg Error)

    Hi Experts.
    I Copied standard workflow for approve travel request, and add a decision control to know whether is national or not. It seems that runs fine, but when the user choose to reject the request, the screen of "Enter and Send Msg seems to open" but in a blink the screen disappear. I checked agents, standar task 20000139 but i can't find any error.
    Any Suggestions,
    Thanks a lot,
    Steve.

    What is the Status of the Workflow. Is that particular task TS20000139 got executed?
    If it gets completed without any user action then this activity step might have some condition that is activated in the condition Tab of activity step.
    Thanks
    Arghadip

  • Whenever I am sending a MSG from my iPhone 4s to friends who don't have I phone or I device my smiley(emoji) seen to be square to them and when they send MSG to me with a smiley my iPhone shows :-) ;-p like symbols. Please help I want to receive smiley

    Whenever I am sending a MSG from my iPhone 4s to friends who don't have I phone or I device my smiley(emoji) seen to be square to them and when they send MSG to me with a smiley my iPhone shows :-) ;-p like symbols. Please help I want to receive smiley from my friend

    I think you answered your own question. As your friends phones are not iPhones, but maybe Nokia or Android the smiley will appear as a different character or box. Thew only way to fix this would be to send a basic smile using the basic keyboard so that your friends will receive it as a smile and you will when they reply. Or ask your friends to check if the phones they are using have the emoji type keyboard available and ask them to update their phones. This will show the smiley when they reply to you.
    Hope this helps.

  • Failure sending msg

    I have twi set of S60 series 1 is E75 and 2 is 6720 classic I face the problem of sending msg  after few days I contact to service provider he said that ur set has fault but our service center has no fault I check it its ture our set has fault and this fault cnnot remove until I format the cell phone in last mount format my cell phone 4 times plz help abot to solve this problem is this any kind of virus in my cell phone which is padding through my PC after connecting My PC my cell phone create the problem but I have latest antivirus how I can solve this problem.

    There are 2 things u need to clarify before proceeding:
    1. Check ure operator SMS centre / SMSC for confirmation
    2. Check all the appropriate settings, to do this u might refer to a friend whom having the same service provider and/or phone.
    3. Swap ure SIM card to another phone and try to send and receive the SMS.
    Hope u'll get back here with the result on all above questions.
    TQ
    I'm an Xploit - Please feel free to post your issues, feedbacks in this discussion forum and I'll do my level best to help, otherwise my knowledged friends whom are around willing to help you. Thank you !

  • I keep getting Alarm popups saying that it cannot send msg using the server null. I think I have disabled email (I use Gmail) and the calendar however I still get these popups and I can't close them?

    I keep getting Alarm popups saying that it cannot send msg using the server null.
    I think I have disabled email (I use Gmail) and the calendar however I still get these popups and I can't close them?
    How can I disable the Alarm popups?
    Thanks
    Brian

    OS X Mail: Troubleshooting sending and receiving email messages - Apple Support
    Google Mail recently implemented additional security measures "for your protection" of course. The manifestation of that may be the requirement to create a unique, "application-specific" password for each one of the various Google services you may use. That requirement probably includes Google Mail. So if the above Apple Support document doesn't resolve the problem, research Google's application-specific password requirements, and how to configure Mail to use it.
    I asked the Hosts to edit or obscure the email address in your post.

  • Problem in tracking  Transport.send(msg)

    {color:#ff0000}+protected PasswordAuthentication getPasswordAuthentication()+
    +{ return new PasswordAuthentication("username","password");+
    +}+
    +});+
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to));
    msg.setSubject(subject);
    msg.setText(message"Dear Mail Crawler, \n\n No spam to my email, please!");{color}
    {color:#ff0000}Transport.send(msg);{color}
    {color:#ff0000}System.out.println("Done");{color}
    now whenever controller comes at Transport.send(msg); and if network connection fails, then controller keep on same point until it doent gotta any network connection
    As a result user dont understand what goes wrong
    as it doesnt went ain any exception we cant throw any error msg or cant redirect to any error page.
    how we can examine timing of controller like if controller stays on Transport.send(msg) more than 5 minute then throws exception
    can we do like this???

    If you wanted to solve the problem as quickly as possible, you would've read the
    docs and had the answer by now. Really, it's not that difficult. Go to the first page
    of the javadocs. Scroll to the bottom where it tells you that each of the providers
    has properties that are specific to the provider. Click on the link for the SMTP
    provider. Scroll down that page until you see the word "timeout".
    Go ahead, you can do it...

  • Email wont send msgs on my macbook pro :(

    i can't send emails. they are saving to my outbox and just won't send i keep getting this msg when i try
    The Hotmail Exchange connection to server “pop3.live.com” failed. 
    Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be sent.
    then.. or..
    cannot send msg
    the hotmail exchange / hotmail connection server "pop3.live.com" failed.
    sending from….(my emai) l
    im not really sure what I've done wrong..
    help

    Looks like your outbound (sending) mail connection is pointed to Hotmail's POP3 server (for you to read mail) instead of their SMTP server (for you to send mail).
    You should be fetching mail from pop3.live.com and sending it to smtp.live.com. See
    http://windows.microsoft.com/en-US/windows/outlook/send-receive-from-app
    "Outgoing (SMTP) Server
    Server address: smtp.live.com
    Port: 25 (or 587 if 25 is blocked)
    Authentication: Yes
    TLS or SSL Secure Encrypted Connection: Yes"
    You can change this, but the setting is buried a few levels down.
    1. Go to Mail > Preferences... > Accounts > {yourhotmailacct} > Account Information > Outgoing Mail Server (SMTP)
    2. Pull down to Edit SMTP Server List...
    3. Select the server line that says pop3.live.com
    4. Select the Account Information tab.
    5. Change Server Name to smtp.live.com.
    You may also need to adjust settimgs in the Advanced tab to match the above while you are there.

  • How can i send msg from iphon to ipod?

    How can i send msg from my iphon to the ipod?

    Yes as long as you are Messaging the iPod with an email address that is not listed on the phone in Settings>Messages>Send and Receive.
    If both devices are using the same email Apple ID there will have the same email address and phone number listed in Settings>Messages>Send and Receive.
    You can on the phone uncheck the email adress in Settings>Messages>Send and Receive.
    If you want to FaceTime one another do the same for Settings>FaceTime

  • Cannot send msg with watsapp under 3G network

    Hi, I just added watsapp to my lumia 900. I can't receive or send msg through my watsapp under 3G network, but when i am connected to wifi, the watsapp function normally. Anyone can advise me on this?
    Thanks

    try to change priority on whatsup setting to cellular,wifi bro...
    Check again your accesspoint setting,maybe wrong ...
    nokia 1208 connecting people

  • MQJMS2007: Cannot send msg to a queue

    Hi All,
    When I try to send more then 5000 messages to a queue it gives me this error.
    javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
    at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:530)
    at com.ibm.mq.jms.MQQueueSender.sendInternal(MQQueueSender.java:791)
    at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java:225)
    at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java:258)
    at TestQSender.sendQ1(TestQSender.java:45)
    at TestQSender.<init>(TestQSender.java:17)
    at TestQSender.main(TestQSender.java:13)
    The message limit on the queue is 100,000.
    Can someone give some idea on this ?
    Thanks,
    -raj

    I have checked with the linked error also but still it is giving me the error while sending the message
    the error is as follows :
    Exception in method QueueSend.sendMessage()MQJE001: Completion Code 2, Reason 2009
    com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009
    at com.ibm.mq.MQQueue.putMsg2(MQQueue.java:1498)
    at com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:1569)
    at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1012)
    at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1046)
    at QueueSend.main(QueueSend.java:60)
    I am also sending the code i am using I am getting the values from property file and are correct value the program is as follows :
    * Created on Jul 20, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    import java.io.FileInputStream;
    import javax.jms.JMSException;
    import javax.jms.Queue;
    import javax.jms.QueueConnection;
    import javax.jms.QueueSender;
    import javax.jms.QueueSession;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import javax.naming.NamingException;
    import java.util.Properties;
    import com.ibm.mq.jms.JMSC;
    import java.io.IOException;
    * @author mahalena
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class QueueSend {
         public static void main(String args[]) throws JMSException
              com.ibm.mq.jms.MQQueueConnectionFactory qconFactory = null;
              QueueConnection qcon = null;
              QueueSession qsession = null;
              QueueSender qSender = null;
              Properties mqProp = null;
              try{
                   mqProp = new java.util.Properties();
              java.net.URL url = ClassLoader.getSystemResource("MQ.properties");
              mqProp.load(url.openStream());
                   qconFactory = new com.ibm.mq.jms.MQQueueConnectionFactory();
                   //qconFactory.setChannel(mqProp.getProperty("Channel"));//name of the channel of the client connection
                   qconFactory.setHostName(mqProp.getProperty("Hostname"));//The name of the host for a client connection
                   qconFactory.setPort(Integer.parseInt(mqProp.getProperty("Port")));//The po//rt for a client connection .1414 is default
                   qconFactory.setQueueManager(mqProp.getProperty("QueueManager"));//The name of the queue manager
                   qconFactory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
                   qcon = qconFactory.createQueueConnection();//
                   qcon.start(); //add
                   System.out.println("===========================>" + "The Queue Connection has been created");
                   qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);;
                   Queue queue = qsession.createQueue(mqProp.getProperty("Queue"));
                   qSender = qsession.createSender(queue);
                   TextMessage msg = qsession.createTextMessage();//define message type
                   String strMessage="hi";
                   msg.setText(strMessage);
                   System.out.println("===========================>" + "The messages text set.");
                   qSender.send(msg);
                   System.out.println("Connection established");
              }catch(JMSException jex){
    Exception e=jex.getLinkedException();
                   System.out.println("Exception in method QueueSend.sendMessage()"+e.getMessage());
                   e.printStackTrace();
              }catch(IOException ioe){
    System.out.println("Exception while getting MQ properties()"+ ioe.getMessage());
    ioe.printStackTrace();
    finally{
                   if(qSender!=null){
                        qSender.close();
                   if(qsession!=null){
                        qsession.close();
                   if(qcon!=null){
                        qcon.close();
    If any one get this error please convey it me as early as possilbe because it's urgent very urgent.
    I am also giving my id [email protected]

  • Transport.send(msg) size limit?!?

    Hello,
    I am having some trouble with my javamail application. I am able to send and retrieve e-mails with no problem, but sometimes when I try to send a large message, some of the message seems to be cut off, so that when I retrieve the message, only 1/2 of it is there.
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
    msg.setSubject(subject);
    msg.setHeader("X-Mailer", mailer);
    msg.setSentDate(new Date());
    msg.setContent(message_param, "text/plain");
    //*** send the message
    Transport.send(msg);
    message_param is a String that holds the message.
    Thank you for you help

    I also noticed that after a certain number of lines in my message, there are blank lines being inserted which aren't in the original message. For example, my message looks ok for about 4-5 lines, but then after that, the rest of the message is on every other line, etc...
    Thanks again

  • HELP! nokia 6230i not sending msgs

    hi my wifes phone has just stop sending msgs for no reason she has credit and has not changed anything yet when she tries to send a msg it says
    massage sending failed.
    no network support for messages.
    please someone help!!!

    first contact the network.
    secomd, if they cant help speak with a nokia engineer

  • Can´t make phone calls, can´t recieve calls, can´t send msg, it´s stuck... I have to turn off iPhone to cancle phone call...

    can´t make phone calls, can´t recieve calls, can´t send msg, it´s stuck... I have to turn off iPhone to cancle phone call... on the other side it´s ringing but on my side it´s just stuck and nothing happening

    You can try a hard reset by holding down the home button and the lock button at the same time until the apple appears. If that doesn't work I think you should definitely go into an apple store.

  • HT204380 Can't send msg from Iphon 4s to Ipod Touch?

    Hi
    I bought Ipod Touch for my young daughter...set it up for her and she can now send imsg to me which I can received hers...BUT I can' send msg to her. WHY??
    Can anyone help me on this please?
    Thanks a million!

    Is it actually sending via iMessage from your daughters device?  Meaning, does it show as a blue bubble?
    Also, read through this: http://support.apple.com/kb/ts2755
    Does any of that help?

  • Nokia6700s unable to send msg

    i've just bought this phone but i'm not able to send msg out although i can receive msg and call and receive calls. i don't know wat is the problem, any help? 

    You probably need to set up the Message Centre Number setting. Contact your network for the Message Centre Number and instructions on now to set it up.

Maybe you are looking for

  • Decline message in some foreign languages default to german

    Groupwise 2014 Clients set to Swedish or Danish have a feature where an appointment being declined by a recipient results in the decline message coming back in german and not in the language the client is using. Please note that other messages all se

  • MATMAS Inbound IDOC

    Hello all, Iam working on Material master Data Upload using the IDOCs. -There are about 3K records. -I have collected the IDOCs and executing the RBDAPP01 -in background with Parallel processing and with Packet size as 5. All the IDOCs processed thes

  • Student/teacher edition CS5 re-install on new OS

    Purchased student/teacher edition of CS5 a couple of years ago.  Updated computer from Windows XP to Windows 7 and tried to re-install CS5.  Get error message "The serial number is not valid for this product."  Help?!

  • Graph and property node

    Hello all; I want to make my .vi more powerful, so what I wanted to do is next: 1. my input must be: "boolean system check box" in 1D array(this is must have, I need this as input into call library function node) 2. all those checkbox(12) are connect

  • Just started my new Macbook Pro, from Time Machine backup and the password is not working

    Just got home with my new mackbook pro, and going through the startup process I booted from a time machine back up of my 2007 macbook. When I got to the login part of the process, after the new macbook was registered and ready to go, and now my passw