Message area

Can we have two message area UI controls in the same view (one at the Top and the other at the bottom section) and ensure that the messages are displayed at both places?
Requirement reason:The View is a very big form which the user has to fill in, and the messages need to displayed at the top and bottom section of the screen so that the user does not have to scroll and can see the messages at both places.
Currently, the message is displayed at the first (top) message area and not the bottom message area.
Thanks,

Hai,
you can focus the Message Area UI element for those big screens.
view.getElement("MessageArea").requestFocus();
create a context attribute is Focus of type boolean.
like in Exception block
wdComponentAPI.getMessageManager.reportException("some Statement",false);
wdContext.currentContextElement.setIsFocus(true);
in
wdDOModify(){
if(wdContext.currentContextElement.getIsFocus()){
view.getElement("MessageArea").requestFocus();
wdContext.currentContextElement.setIsFocus(false);
Like this you can manage Big screens for Messages.
Regards,
Naga

Similar Messages

  • Error while creating a Message Area

    Hi All,
    When I create a Message Area using the UI element 'MessageArea', I get the following error message at the bottom of the screen:
    "Note: Multiple message areas have been implemented, but only one is supported"
    I just have only one Message Area created, but still I get this error.
    Regards,
    Tom

    > 1) I am getting the error message"Valuation area not defined", while creating a requisition. How to solve this problem?
    Please Go to OMS2 Material types and Select Material Type and set Qty / Value is Checked in all Valuation areas. Also go to Material Master and ensure all the values Maintained in Accounting view.
    > 2) We can put a purchase order on hold. What is the equivalent thing in Purchase requisition?
    The Hold Functionality is for External Documents only.
    > 3) What is the difference between holding a PO and changing the PO by ME22n? What are the fields which change PO does not open up, but hold PO opens up?
    Whenever you are not sure about the Details in PO you can put the Document on Hold and Later you can Save after.
    > 4) The tax code is set as default in PO. We want to make a PO of a material which is usually taxable, but not in this case. But the tax code is set as default. So, how to overcome this?
    You can not set Default Tax code for Purchase order ME21N. Further the Tax codes can be Pulled into Purchase Order thru Purchase info Records.
    Regards,
    Ashok

  • Sent Messages are not saved in Sent Mailbox

    It was working correctly but suddenly all my sent messages are not saved in the Sent Mailbox. I follow all the Mail Help instructions but nothing seems to work. Hope that someone can help me. I asked for help on december 14 but it was not helpful

    The mailboxes drawer contains all mailboxes under In, Drafts, Sent, Trash and Junk (if you have Junk Mail set to automatic).
    If you have a .Mac or IMAP type account, you also have an account named icon for the .Mac or IMAP type account at the bottom of the mailboxes drawer. It is named by the Account Description you provided/entered for the account under the Account Information tab for the account preferences.
    If you select save Sent messages on the server for a .Mac or IMAP type account, the account's Sent mailbox will be available under the account named icon in the mailboxes drawer along with all other server stored mailboxes.
    To open the account named icon for your .Mac account to reveal the server stored mailboxes including the account's Sent mailbox, select the black triangle beside your .Mac account icon in the mailboxes drawer pointing it down.
    Select the account's Sent mailbox and at the menu bar, go to Mailbox > Use This Mailbox For and select Sent.
    If you deselect store Sent messages on the server for the account preferences, the account's Sent mailbox will be available under Sent in the mailboxes drawer and you can't use "Use This Mailbox For" for mailboxes stored locally on the hard drive. It can only be used for .Mac or IMAP type account mailboxes that are stored on the server.

  • I got a new iPhone 5S and now my text messages are showing up on my iPad now, how do I stop them from showing up on my iPad?

    I just switched from a iPhone 4S to iPhone 5S and now my text messages are showing up on my iPad as well as my phone. How to I turn this feature off and just keep them on my phone?

    This is for imessage - go to settings - message - send&receive and start a new convo - remove or uncheck the apple id.

  • I deleted some of my text message histories to get rid of 'other' space (6.33 gb). They were gone from iMessage, but they still showed up in search, so they were still taking up space on my phone. I synced my iPhone (4s) but the messages are still there.

    I deleted some of my text message histories to get rid of 'other' space (6.33 gb). They were gone from iMessage, but they still showed up in search, so they were still taking up space on my phone. I synced my iPhone (4s) with iTunes but the messages are still there. How can I get rid of these texts for good and have more space on my phone? 6.33 gb of other space is way too much, thats almost half of my overall available space (13.5 gb.) I don't want to reset my phone and lose all my other texts/ app progress/ photos. I do have backups, but when I restore from the backup the other space comes back along with everything else. What can I do to get rid of this other space and the 'deleted' text messages? (I'm running iOS 6.1.3 if that helps)

    But once again, I do not want to lose my other texts, app progress, and photos. I could sync the photos but i would still lose the app progress and texts. I would only restore if it was the only option left, but the other space, as already stated, isnt the main concern. The main concern is those 'deleted' texts. If they go, then a good size chunk of the other space goes. I know you CAN delete texts for good. It worked fine before. All i want to know is why its not working for me now, and how to fix it.
    I also know that when you delete texts on your iphone, they get marked for deletion, however they stay on your device (thats why they show up when you search for them.) then when you sync your device with itunes, the texts marked for deletion should disappear. When i synced they didnt disappear. Thats what i need an explanation/solution for. Why the texts marked for deletion didnt get fully deleted after the sync.

  • In mail, messages are grouped into a subfile of the inbox

    In mail, some messages are grouped from the inbox into a subfile of the inbox. How do I separate the messages to be part of inbox? How did they get into the subfile in the first place?

    thanks for response. I am referring to inbox on ipad which shows list of messages. In the list of messages in the left column there is one message with a 4 in a shaded box. When I tap on that message, 4 other messages appear that are related responses. I prefer to have those 4 messages appear in the inbox. How did they get in the subfile and how do I get them to appear in the inbox?

  • Since 10.5.6 upgrade, email messages are garbled text

    Hi,
    This problem seems to have started with the latest upgrade. My email messages are coming in with garbled text. This happens in my Yahoo account where I will go to the mail website and the text there will be fine. It's only in the mail program.
    Thanks in advance,
    Pete.

    Hi,
    I have the same issue.
    Although the mails seems to have been downloaded correctly parts of the parts of the message mime information is displayed as part of the mail body.
    The only thing that helps is to rebuild the index of the specific mailbox (inbox in my case).
    BTW: Mail of iPhone OS does NOT have this problem. Generally it handles mails MUCH better than the real OS X. Strange, isn't it.

  • Carriage Returns in Message Area

    Hi,
    I am using a hidden field "P6_SUBMIT_MESSAGE" to store a message that gets generated from a PL/SQL process. I then use the following trick to display that same message in the message area at the top of my page
    Process success message
    &P6_SUBMIT_MESSAGE.
    How can I get carriage returns into this message. I have tried adding chr(10), chr(13) and even '<'br'>' in the PL/SQL process but no luck. If I use chr(13) and my P6_SUBMIT_MESSAGE is a Textarea (not a Hidden field) I can see the desired results in that text area but even then, the carriage returns are not propagated to the message area at the top of the page.
    Thanks

    I know this is not my thread but i just wanted to say, thanks scott! this works! i'm having the same problem as Robert and tried every possible way like he did with the ch(10) and < b r >... but did not realize to change the page item type, i had it as text area also. Now i changed it to display text (does not save state) and used < b r > for carriage return... it works like a charm!
    Thanks again,
    Marilyn

  • My phone was recently updated to 8.1.  After the update, when text messages are sent when my phone is off, I no longer receive when my phone is turned on.  Is there something in Settings that needs to be changed?  I never had this problem before the updat

    My phone was recently updated to 8.1.  After the update, when text messages are sent when my phone is turned off, they no longer appear when I turn the phone on.  Is there something in Settings that needs to be changed?

    MetsFanGirl,
    Thanks for verifying. Are you having issues receiving both iMessages and standard text messages when they are sent when the phone is turned off? Try this and test... http://vz.to/1qjiOs7
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • How do I display a message in the message area of a report with SALV?

    Hi,
    How do I display a message at the bottom of the screen of a report (don't know the correct name for the area, but it's the area where error messages normally appear) using the CL_SALV_TABLE object model?
    Is there a method in the object model somewhere that will place some text of my choosing in that area for me?
    I hope I stated that in an understandable way.
    If not, let me know and I'll try again.
    Thanks for your help!
    Andy

    Hi Andrew,
    you can issue an error message to be displayed as an error message:
    MESSAGE ID .. TYPE 'S' NUMBER .. DISPLAY LIKE 'E'
    TYPE 'S' messages are displayed in the status area of the next screen processed, program flow is continued after the message statement. The DISPLAY LIKE 'E' causes the message to be displayed in red color as an error message.
    Regards,
    Clemens

  • I am unable to see any POP3 or IMAP tab when I set up an account in my iphone 4S. Hence by default all my email accounts become IMAP and the messages are deleted from the server when I delete them from the iphone.

    I am unable to see any POP3 or IMAP tab when I set up an account in my iphone 4S. Hence by default all my email accounts become IMAP and the messages are deleted from the server when I delete them from the iphone.

    ok sorry everyone but i solved it myself but the solution is so nuts i've posted it here to help others who have the same problem.
    to setup a comcast imap account on your iphone:
    go to mail, contacts, etc in settings
    under accts, select add account
    select "other"
    new screen, choose "add mail account"
    now on the new acct screen you must enter your name, email address and password for your GMAIL acct ! (yes i said your gmail acct !, or some other acct with a NON comcast address).
    hit next
    then the acct verifies
    when verified a screen will open with all the acct settings for this acct AND @ the top of the screen are the 2 buttons > imap or POP
    select imap and THEN CHANGE ALL THE ACCOUNT information to the comcast account !
    then hit next and the account will take a couple minutes to verify but it will verify and now you have a comcast imap acct set up on your iphone.  The problem must be that when the iphone sends the initial verify acct info to comcast (if you enter that information first) the comcast server is simply not setup yet to signal the iphone that there is an imap option.

  • How do i disable iMessage from my mac, i have looked at other comments and there is no option to disable it when messages are open

    how do i disable iMessage from my mac, i have looked at other comments and there is no option to disable it when messages are open

    Solution may be found if you search in the "More Like This" section over in the right column.

  • How to create a navigateable messages for SALV in FPM message area

    We have some problems raising messages for errors in a ALV table. Messages reported by the ALV table itself (like a character entered in a number field) are displayed in the FPM message area and the message is mapped to the field causing the error (navigation link). When we try to raise an own message out of the application controller of our building block which carries the ALV, we didnu2019t manage to have the mapping between the error message and the ALV-field.
    We already tried several versions of calling the message method (using the elements of the context of the calling application as well as the context of the mapped ALV compontent):
    CALL METHOD wd_this->gr_msg_manager->report_t100_message
          EXPORTING
            iv_msgid              = '/ISDFPS/MSG_GAF_PE'
            iv_msgno              = '047'
            iv_parameter_1        = lv_par1
            iv_parameter_2        = lv_par2
            io_component          = lo_INTERFACECONTROLLER
            io_controller         = lo_api_interfacecontroller
            io_element            = lo_element
            IV_ATTRIBUTE_NAME     = lv_attribute
            iv_severity           = if_fpm_message_manager=>gc_severity_error
            iv_lifetime           = if_fpm_message_manager=>gc_life_visibility_automatic
            is_navigation_allowed = abap_true
            it_attributes         = lt_attributes.
    Does anybody know a solution or maybe an example where a error message is linked to an field in the SALV and reported in the FPM message area using the above mentioned method call?
    Thanks and best regards
      Gerald
    Edited by: Gerald Reinhard  on Mar 31, 2009 10:56 AM

    Just to clarify, what I am having trouble with is finding where exactly to plug in the name of the plant to be filtered? If using a message type such as MATMAS in a distribution model, it is very straight forward to navigate down from the 'Data filter active', and assign a value to whatever field you wish to filter via the 'List of Values'.  But in this example, message type QPMK required use of the BAPI MasterInspectionChar, and therefore the different method in creating the filter. 
    I cannot find similar functionality when navigating the BAPI related row, for MasterInspectionChar. The 'Change Filter' dialog popup displays a row for 'Container' and then 3 more rows containing 'BAPI structure...'.   Clicking the 'Attribute' checkbox on any of these rows sets 'Data filter active' as a node under the BAPI.  Double clicking the 'Data filter active' brings me back into the same dialog, and selecting any row with an attempt at this point to create a filter results in the 'Select node: content-dependent parameter filtering' warning.  Is this warning occuring because of missing configuration?
    Thanks - Mike

  • Cisco 5.0 "Your messages are not available now" after exchange 2010 and DC migration to a new host

    Guys,
    First of all, thanks for looking at this post. Hopefully you guys can help me out. My unity users, when dialing into voicemail are getting the message "Your messages are not available now".
    Services in error state under the event viewer:
    Event Type:    Error
    Event Source:    CSAgent
    Event Category:    Kernel Rule 
    Event ID:    256
    Date:        7/29/2014
    Time:        11:42:41 AM
    User:        N/A
    Computer:    UNITY
    Description:
    A packet with a bad transport layer header was detected. Reason: Illegal TCP reserved flags set using interface Wired\HP NC324i PCIe Dual Port Gigabit Server Adapter. TCP: 00.000.00.000/443->00.00.0.00/1241, flags 0x10. The operation was denied.
    Event Type:    Error
    Event Source:    CiscoUnity_MALEx
    Event Category:    Error 
    Event ID:    30012
    Date:        7/29/2014
    Time:        11:44:27 AM
    User:        N/A
    Computer:    UNITY
    Description:
    An occurred which prevents successful Exchange access by CsBMsgConnector via MAPI.
    This is typically an indication of configuration issues with Unity, Exchange, or the MAPI subsystem.
    Verify that the Unity services accounts are granted the correct permissions and that there are no issues with installation.  The SysCheck utility may assist in diagnosing the problem.
    Event Type:    Error
    Event Source:    CiscoUnity_Doh
    Event Category:    Error 
    Event ID:    32013
    Date:        7/29/2014
    Time:        11:44:27 AM
    User:        N/A
    Computer:    UNITY
    Description:
    Doh logon failed due to messaging component logon error: 8004052eH
    I found and followed to the letter:
    http://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unity/107323-unity-error.html
    I also went ahead and ran GUSI with some mixed results under environment information:
    SQL Version = Microsoft SQL Server  2000 - 8.00.2282: unknown SP
         SQL Edition = Desktop Engine
         Windows version =  5.2 Build 3790: Service Pack 2
         Outlook is not installed on the local server
         MAPI Provider : CDO Version - 6.5.8211.0
         MAPI Shared Memory: (HKLM:SOFTWARE\Microsoft\Windows Messaging Subsystem\Applications\<process>\SharedMemMaxSize)
                AvCsMgr : is set to recommended value
                AvMsgStoreMonitorSvr : RegKey not found.  Recommend add the key AvMsgStoreMonitorSvr and set DWORD SharedMemMaxSize with a value of 4194304 (decimal)
                AvNotifierMgr : RegKey not found.  Recommend add the key AvNotifierMgr and set DWORD SharedMemMaxSize with a value of 4194304 (decimal)
                AvUMRSyncSvr : is set to recommended value
                CsBMsgConnector : RegKey not found.  Recommend add the key CsBMsgConnector and set DWORD SharedMemMaxSize with a value of 4194304 (decimal)
                CsBridgeConnector : RegKey not found.  Recommend add the key CsBridgeConnector and set DWORD SharedMemMaxSize with a value of 4194304 (decimal)
                CsVpimConnector : RegKey not found.  Recommend add the key CsVpimConnector and set DWORD SharedMemMaxSize with a value of 4194304 (decimal)
             TCPChimney : Disabled
             RSS : Disabled
             *Pulled from UnityDB Configuration Table*
             ExcludeAllReceipts : 0
             ExcludeReturnReceipts : 0
             DisableSearchFolderUse : 0
             MinSearchFolderLifeHours : 1
             OptimizeSearchFolderUse : 0
    I tried following and deleting the Unity System Profile:
    https://supportforums.cisco.com/discussion/11249996/unity-501-exchange-2010-unable-logon-mapi-mailbox
    But I am still scratching my head. Any direction will be appreciated.

    Turns out that unity came back after all this. Maybe it just needed time. I think I answered my own question.  Anyways, this post could serve for future reference. 

  • MDB cannot loads enitities if more than 10 concurrent messages are sent tog

    Hello,
    I have seen a weird behavior of the MDB in Jboss or perhaps in transaction management.
    Here is a my scenario
    I have a session bean sb, an entity bean e and a message driven bean mb
    When a request comes to sb , it persists a new entity e and send a message (primary key) to mb
    mb then loads e from the database using one of the findByXX method and does something else.
    If 10 concurrent request comes to sb, 10 different entities are persisted and 10 different messages are sent to mb
    mb are able to load 10 different e from the database
    Everything works fine as long as there are 10 concurrent request. If there are 13 concurrent request, then one or two mb
    cannot load e from the database. It seems that the session bean has persisted the entities but some of them are still unload able from mb. They have been persisted , (I saw in the logs), but mb cannot load them.
    Initially I thought that a transaction mishap might be happening, so instead of persisting the entity and sending the message in one method in sb , I separated these two tasks in two methods a and b, in which both a and b uses RequiresNew transaction attribute. But the problem still remains. Please note if the number of parallel request are less than 10 then everything works fine. Is there something I am missing or is Jboss doing something buggy?
    The above situation is reproducible .
    Here is some more information about the problem along with some code snapshots. Note that the code is trimmed for clarity purposes.
    Request is a simple entity (e as mentioned in the problem before) that is persisted in session bean . Here is a trimmed snapshot
    Request.java
    package gov.fnal.ms.dm.entity;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    @Entity
    @NamedQueries({@NamedQuery(name = "Request.findById", query = "SELECT r FROM Request r WHERE r.id = :id"),
    @NamedQuery(name = "Request.findAll", query = "SELECT r FROM Request r"),
    @Table(name = "cms_dbs_migration.Request")
    @SequenceGenerator(name="seq", sequenceName="cms_dbs_migration.SEQ_REQUEST")
    public class Request implements Serializable {
    private String detail;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator="seq")
    @Column(nullable = false)
    private Long id;
    private String notify;
    .....The session bean is MSSessionEJBBean.
    MSSessionEJBBean.java
    @Stateless(name="MSSessionEJB")
    @WebService(endpointInterface = "gov.fnal.ms.dm.session.MSSessionEJBWS")
    public class MSSessionEJBBean implements MSSessionEJB, MSSessionEJBLocal, MSSessionEJBWS {
    @PersistenceContext(unitName="dm")
    private EntityManager em;
    .......    The methods that is called concurrently in this bean is
    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
    public Request addRequest(String srcUrl, String dstUrl, String path,
    String dn, String withParents, String withForce, String notify) throws
    Exception {
    Request r = addRequestUnit(srcUrl, dstUrl, path, dn, withParents, withForce, notify);
    if (r != null) sendToQueue(r.getId());
    return r;
    }    It first adds the request entity and then sends a message to the queue in separate methods each using TransactionAttributeType.REQUIRES_NEW (I don't think this TransactionAttributeType is needed . I was just playing to see if this resolves the problem)
    Here is the method that actually persist the entity
    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
    public Request addRequestUnit(String srcUrl, String dstUrl, String path,
    String dn, String withParents, String withForce, String notify) throws
    Exception {
    ....// Does something before persisting
    Request r = new Request();
    r.setNotify(notify);
    r.setPath(path);
    r.setPerson(p);
    r.setWithForce(withForce);
    r.setWithParents(withParents);
    r.setProgress(new Integer(0));
    r.setStatus("Queued");
    r.setDetail("Waiting to be Picked up");
    em.persist(r);
    System.out.println("Request Entity persisted");
    System.out.println("ID is " + r.getId());
    return r;
    }I can see that the log files has messages
    *{color:#800000}"Request Entity persisted" "ID is " 12 (or some other number){color}*
    . So it is safe to assume that the request entity is persisted properly before the message is sent to the queue. Here is how the message is sent to the queue
    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
    private void sendToQueue(long rId) throws Exception {
    QueueSession session = null;
    QueueConnection conn = null;
    try {
    conn = factory.createQueueConnection();
    session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
    MapMessage mapMsg = session.createMapMessage();
    mapMsg.setLong("request", rId);
    session.createSender(queueRequest).send(mapMsg);
    } finally {
    if (session != null) session.close();
    if(conn != null) try {
    conn.close();
    }catch(Exception e) {e.printStackTrace();}
    System.out.println("Message sent to queue");
    }I can see the message
    {color:#800000}*"Message sent to queue"*{color}
    in the log file right after I see the
    *{color:#800000}
    "Request Entity persisted"{color}*
    message. So it correct to assume that the message is infact sent to the queue.
    Here is the md bean that gets the message from the queue and process it
    @MessageDriven(activationConfig =
    @ActivationConfigProperty(propertyName="destinationType",
    propertyValue="javax.jms.Queue"),
    @ActivationConfigProperty(propertyName="destination",
    propertyValue="queue/requestmdb")
    public class RequestMessageDrivenBean implements MessageListener {
    @EJB
    private MSSessionEJBLocal ejbObj;
    public void onMessage(Message message) {
    try{
    System.out.println("Message recived ");
    if(message instanceof MapMessage) {
    System.out.println("This is a instance of MapMessage");
    MapMessage mMsg = (MapMessage) message;
    long rId = mMsg.getLong("request");
    List<Request> rList = ejbObj.getRequestById(new Long(rId));
    System.out.println("rList size is " +  rList.size());
    for(Request r: rList) {
    //Does something and print something in logs
    System.out.println("Finsihed onMessage");
    }catch(Exception e) {
    System.out.println(e.getMessage());
    }    One thing to note here is that getRequestById is another method in the same session bean MSSessionEJB. Can that be the reason for not loading the request from the database when many concurrent request are present? Here is what it does
    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
    public List<Request> getRequestById(Long id) throws Exception {
    System.out.println("Inside getRequestById id is " + id);
    return em.createNamedQuery("Request.findById")
    .setParameter("id", id)
    .getResultList();
    }    In the logs I do see
    {color:#800000}*"This is a instance of MapMessage"*{color}
    and I do see the correct Rid that was persisted before in the log
    *{color:#800000}
    "inside getRequestById id is 12"{color}*
    . Finally I do see
    *{color:#800000}
    "Finsihed onMessage"{color}*
    for all the request no matter how many are sent concurrently.
    *{color:#ff0000}Here is where the problem is . rList size is 1 for most of the cases but it returns 0 when the number of concurrent message exceeds 10.*
    *{color}*
    So you see there is no exception per se, just that entity does not get loaded from the database. I would like to mention this again, it does work properly when the number of concurrent request are less than 10. All the invocation of onMessage in MB are able to load the entity properly in that case. Its only when the number of concurrent request increases more than 10, the onMessage is unable to load the entity and the rList is 0.
    FYI I am using jboss-4.2.2.GA on RedHat enterprise linux 4 with jdk1.6.0_04
    Please let me know if there is more information required on this.
    Thank you

    Hello,
    I have seen a weird behavior of the MDB in Jboss or perhaps in transaction management.
    Here is a my scenario
    I have a session bean sb, an entity bean e and a message driven bean mb
    When a request comes to sb , it persists a new entity e and send a message (primary key) to mb
    mb then loads e from the database using one of the findByXX method and does something else.
    If 10 concurrent request comes to sb, 10 different entities are persisted and 10 different messages are sent to mb
    mb are able to load 10 different e from the database
    Everything works fine as long as there are 10 concurrent request. If there are 13 concurrent request, then one or two mb
    cannot load e from the database. It seems that the session bean has persisted the entities but some of them are still unload able from mb. They have been persisted , (I saw in the logs), but mb cannot load them.
    Initially I thought that a transaction mishap might be happening, so instead of persisting the entity and sending the message in one method in sb , I separated these two tasks in two methods a and b, in which both a and b uses RequiresNew transaction attribute. But the problem still remains. Please note if the number of parallel request are less than 10 then everything works fine. Is there something I am missing or is Jboss doing something buggy?
    The above situation is reproducible .
    Here is some more information about the problem along with some code snapshots. Note that the code is trimmed for clarity purposes.
    Request is a simple entity (e as mentioned in the problem before) that is persisted in session bean . Here is a trimmed snapshot
    Request.java
    package gov.fnal.ms.dm.entity;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    @Entity
    @NamedQueries({@NamedQuery(name = "Request.findById", query = "SELECT r FROM Request r WHERE r.id = :id"),
    @NamedQuery(name = "Request.findAll", query = "SELECT r FROM Request r"),
    @Table(name = "cms_dbs_migration.Request")
    @SequenceGenerator(name="seq", sequenceName="cms_dbs_migration.SEQ_REQUEST")
    public class Request implements Serializable {
    private String detail;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator="seq")
    @Column(nullable = false)
    private Long id;
    private String notify;
    .....The session bean is MSSessionEJBBean.
    MSSessionEJBBean.java
    @Stateless(name="MSSessionEJB")
    @WebService(endpointInterface = "gov.fnal.ms.dm.session.MSSessionEJBWS")
    public class MSSessionEJBBean implements MSSessionEJB, MSSessionEJBLocal, MSSessionEJBWS {
    @PersistenceContext(unitName="dm")
    private EntityManager em;
    .......    The methods that is called concurrently in this bean is
    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
    public Request addRequest(String srcUrl, String dstUrl, String path,
    String dn, String withParents, String withForce, String notify) throws
    Exception {
    Request r = addRequestUnit(srcUrl, dstUrl, path, dn, withParents, withForce, notify);
    if (r != null) sendToQueue(r.getId());
    return r;
    }    It first adds the request entity and then sends a message to the queue in separate methods each using TransactionAttributeType.REQUIRES_NEW (I don't think this TransactionAttributeType is needed . I was just playing to see if this resolves the problem)
    Here is the method that actually persist the entity
    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
    public Request addRequestUnit(String srcUrl, String dstUrl, String path,
    String dn, String withParents, String withForce, String notify) throws
    Exception {
    ....// Does something before persisting
    Request r = new Request();
    r.setNotify(notify);
    r.setPath(path);
    r.setPerson(p);
    r.setWithForce(withForce);
    r.setWithParents(withParents);
    r.setProgress(new Integer(0));
    r.setStatus("Queued");
    r.setDetail("Waiting to be Picked up");
    em.persist(r);
    System.out.println("Request Entity persisted");
    System.out.println("ID is " + r.getId());
    return r;
    }I can see that the log files has messages
    *{color:#800000}"Request Entity persisted" "ID is " 12 (or some other number){color}*
    . So it is safe to assume that the request entity is persisted properly before the message is sent to the queue. Here is how the message is sent to the queue
    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
    private void sendToQueue(long rId) throws Exception {
    QueueSession session = null;
    QueueConnection conn = null;
    try {
    conn = factory.createQueueConnection();
    session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
    MapMessage mapMsg = session.createMapMessage();
    mapMsg.setLong("request", rId);
    session.createSender(queueRequest).send(mapMsg);
    } finally {
    if (session != null) session.close();
    if(conn != null) try {
    conn.close();
    }catch(Exception e) {e.printStackTrace();}
    System.out.println("Message sent to queue");
    }I can see the message
    {color:#800000}*"Message sent to queue"*{color}
    in the log file right after I see the
    *{color:#800000}
    "Request Entity persisted"{color}*
    message. So it correct to assume that the message is infact sent to the queue.
    Here is the md bean that gets the message from the queue and process it
    @MessageDriven(activationConfig =
    @ActivationConfigProperty(propertyName="destinationType",
    propertyValue="javax.jms.Queue"),
    @ActivationConfigProperty(propertyName="destination",
    propertyValue="queue/requestmdb")
    public class RequestMessageDrivenBean implements MessageListener {
    @EJB
    private MSSessionEJBLocal ejbObj;
    public void onMessage(Message message) {
    try{
    System.out.println("Message recived ");
    if(message instanceof MapMessage) {
    System.out.println("This is a instance of MapMessage");
    MapMessage mMsg = (MapMessage) message;
    long rId = mMsg.getLong("request");
    List<Request> rList = ejbObj.getRequestById(new Long(rId));
    System.out.println("rList size is " +  rList.size());
    for(Request r: rList) {
    //Does something and print something in logs
    System.out.println("Finsihed onMessage");
    }catch(Exception e) {
    System.out.println(e.getMessage());
    }    One thing to note here is that getRequestById is another method in the same session bean MSSessionEJB. Can that be the reason for not loading the request from the database when many concurrent request are present? Here is what it does
    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
    public List<Request> getRequestById(Long id) throws Exception {
    System.out.println("Inside getRequestById id is " + id);
    return em.createNamedQuery("Request.findById")
    .setParameter("id", id)
    .getResultList();
    }    In the logs I do see
    {color:#800000}*"This is a instance of MapMessage"*{color}
    and I do see the correct Rid that was persisted before in the log
    *{color:#800000}
    "inside getRequestById id is 12"{color}*
    . Finally I do see
    *{color:#800000}
    "Finsihed onMessage"{color}*
    for all the request no matter how many are sent concurrently.
    *{color:#ff0000}Here is where the problem is . rList size is 1 for most of the cases but it returns 0 when the number of concurrent message exceeds 10.*
    *{color}*
    So you see there is no exception per se, just that entity does not get loaded from the database. I would like to mention this again, it does work properly when the number of concurrent request are less than 10. All the invocation of onMessage in MB are able to load the entity properly in that case. Its only when the number of concurrent request increases more than 10, the onMessage is unable to load the entity and the rList is 0.
    FYI I am using jboss-4.2.2.GA on RedHat enterprise linux 4 with jdk1.6.0_04
    Please let me know if there is more information required on this.
    Thank you

  • How to pass a variable value in message area

    hi
    i have a requirement in which i need to display a table with records and below it in a message area i need to display the total no. of records found ( eg : 2 records found )
    am using message manager for the display and calculating the total no of rows by lv_index = LINES( li_table ) .
       get message manager
      DATA lo_api_controller     TYPE REF TO if_wd_controller.
      DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
      lv_index = LINES( li_table ).
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_api_controller->get_message_manager
        RECEIVING
          message_manager = lo_message_manager
      report message
      CALL METHOD lo_message_manager->report_warning
        EXPORTING
          message_text             = '& records found' WITH lv_index
    BUT this throws an error. ... can anyone please provide the correct coding for this.
    Thanks
    Anurupa.

    Hi Anurupa,
                  If u want just a message to come in the message area without warning or error . U can use method 'report_success'.
    get message manager
    DATA lo_api_controller TYPE REF TO if_wd_controller.
    DATA lo_message_manager TYPE REF TO if_wd_message_manager.
    lv_index = LINES( li_table ).
    lo_api_controller ?= wd_this->wd_get_api( ).
    CALL METHOD lo_api_controller->get_message_manager
    RECEIVING
    message_manager = lo_message_manager
    report message
    CALL METHOD lo_message_manager->report_success
    EXPORTING
    message_text = '& records found' WITH lv_index

Maybe you are looking for

  • Webcam instant software no longer working

    After original install, the program worked great for about two weeks. Then it stopped working correctly. Problem: It would not record at all. Solution: reinstall. Result: Locked program with partial launch (I could see a scrollbar for the program app

  • Cancel credit memo genarating wrong accounting document

    Hello, We are facing when we Cancel sales credit memo credit memo genarating wrong accounting document entry in production system. I have checked the billing type for credit memo s1 and cancel credit memo in production system configuration Cancel cre

  • Dynamic code not rendering

    I am working on my first dynamic website in DW CS5.5.  I have already set up the back end successfully, and am working on the presentation. The database, recordset and dynamic text are in place, and they test properly, but in neither Live View nor Br

  • Bluetooth paired and connected, but not showing up in device list

    I have a iphone 4s and a plantronics discovery 975.  It was working fine, I don't recall doing any updates...  But now, it's showing paired and connected, but when I make a call, it's not connecting and doesn't sho up in the the device options - only

  • Menu exit for ik11-------- take point.s

    HI all, I found a menu exit for tcode IK11. Could u let me know, what i 've to write in the function module. <b>Got points soon</b> Regards, [email protected]