Sending notification from MDB to MBean

Hi
Is there a way I can send a notification to an MBean from an MDB? I have a MessageDrivenBean that is listening to a queue. Any message on the queue need to be fwded to the MBean.
MBean and the MDB, both are in a jboss sar. The version used is 4.2.0 with java 6.
Any direction would be great. Thanks in advance

Is your goal to be able to see how many messages are processed? If this is the case, I think you have two options:
1. The MDB would have to be an MBean itself. In this case, your MDB would play two roles, an MDB, and an MBean. And then you just increment a count variable and expose it as an attribute.
2. Alternatively, you could have a separate MBean that is registered as a listener on your MDB (like Observer/Observable, where MDB is the Observable, and the MBean is the Observer), and the MDB will call update on your MBean every time it handles a message. Then the MBean would increment its internal counter, which is exposed as an attribute. Depending on what else you do in the update method, you would want to be careful about handling this on the same thread, as it could slow down your MDB processing.
- Alper

Similar Messages

  • Send notification from one MBean to another

    How do you send notifications from one MBean to another, with both extending NotificationBroadcasterSupport?
    I don't mean using the POJO classes themselves, but sending a notification to the managed resource (from the ObjectName) of the other. I figured you'd perhaps add it to the Notification subclass you send, but I don't know how in the NotificationListener you'd send it to another ObjectName.
    What I'm trying to do is see perform an operation in one MBean in JConsole and see a message added to another MBean's notifications list. How might I be able to do this?
    Thanks.

    Hi,
    If you want MBean A to receive notifications from MBean B, then you only need MBean A to register as a notification listener with MBean B,
    Where's the problem?
    -- daniel

  • Sending notification from OA Framework

    Hello,
    Say on a OA Framework page, user clicks a button, you handle the button click in
    processFormRequest of the controller of the page and here you want to send notification to one or more users which will be
    read from the db.
    So far, I have used workflows to send notifications, but for this particular use-case, this is just a FYI notification and writing
    a workflow for that might be an overkill.
    So just wanted to know, are there APIs in OA Framework to send notifications.
    regards, Yora

    Yora
    If you dont want to create workflow for it. You have two options either you call a plsql package from OAf using callable statement and in PLSQL you may use UTL_SMTP package to send mail. Here is the way how you can call Callable Statement
    http://oracleanil.blogspot.com/2009/04/itemqueryvoxml.html
    Or you may use java API's to send mail. Here is the link
    http://www.javabeat.net/tips/33-sending-mail-from-java.html
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • Send notification from GP to UWL Notification tab

    Hello all,
    The GP Task are already shown in the Task tab of the UWL and it works fine.
    Has anybody an idea, if it is possible to send a notification after finishing a GP Process to the UWL, which will be shown in the notification tab?
    I tried to use the predefined notification Callable Object, yet it is requires to enter an email template so I assume, that just emails are sent.
    Kind regards
    Lissi

    Please try with this link:-
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/44/9a3276a5726573e10000000a11466f/frameset.htm">Process Notification  from GP</a>
    Please acknowledge if its working or not.
    Regards
    Navneet

  • Sending notification from workflow to non users

    I have a workflow requirement where I would like to send notification to Email
    IDs of People who are not defined anywhere in the Content Management System.
    Basically the workflow is to review Documents for various Projects being
    carried out for our Customers. At the end of the workflow we would want to
    just notify the Customer that the document has been reviewed and approved
    and that they could collect them from our office. The email ID of the
    Customer is being stored as a metadata field and the purpose is to send a
    notification to this Email ID for the respective content.

    Hey There,
    This is a great question and a common request.
    Here at Fishbowl, we have an add-on component called Subscription Notifier that will do exactly what you are asking. It gives you the ability to define your own email templates so you can easily tailor the look and feel of the emails, it will email users and non users alike on a triggered and/or scheduled and/or event basis which gives you maximum flexibility. Furthermore as long as there is a look-up vector then email addresses can be pulled from anywhere they're stored (e.g. metadata as you currently have it, a data provider, database table join, IDM system etc.). Subscription Notifier also has built-in hooks to handle callbacks so that after a notification is sent out additional business process steps can be automated.
    Please take a look at the specs here: http://bit.ly/ENRwq
    Warmly,
    Billy Cripe
    Fishbowl Solutions

  • How to send notification from MI to EP

    Hi All,
    I have a requirement where in i have to send some alert/Notification from MI to Enterprise Portal .Is there any docs which can help me for this.
    Thanks
    Regards
    Santosh
    Message was edited by:
            santosh kharje

    Hi Santosh,
    I hope the following points can help you.
    I have the following 3 scenarios that are possible...
    -> MI-Oriented -one user
    -> SAP MI Access from a Ticket-Issuing System e.g SAP Enterprise Portal-oneuser.
    -> SAP MI Access from a Ticket-Issuing System e.g SAP Enterprise Portal-Multiple users.
    With the parameters in file MobileE#ngine.config you can configure the SAP MI Client Component to support single sign-on(sso) if the device has online connection. The mobile device recieves the SAP logon ticket from a system that issues tickets, such as SAP EP. The mobile device can then authenticate itself at the SAP MI server Component wiht the SAP logon ticket without the user having to enter an additional paasword.
    One user scenario:
    When a user logs on for the first time, the user data of the logon ticket is used to create a user in the MI-Client.
    Multiple user scenario:
    If the ticke does not exist, the user can start the SAP MI from the browser under the configured address, Usually http://localhost:4444/index.htm, and logon with user name and password.
    I have some more docs related to this but those are not links.
    If need i can mail to your E-mail-ID.
    Cheers,
    Anu.

  • Sending notifications from BPEL installed on Weblogic Server

    We have SOA Suite installed on the Weblogic server. For the SOA Suite installation, we did a base installation of OC4J 10.1.3.4, and then installed Weblogic server 9.2 on top of it.
    The problem is with the notifications. I created a simple process to generate notifications. Before doing that, I modified the NS_EMAILS.xml file for the Host and Port. I have done this before so I know what should be the values. Then I bounced both the Weblogic and OC4J servers.
    When I run the process, the notification is not generated. Do I need to do some additional steps to make it work for Weblogic?
    The ns_emails.xml file is located in product/10.1.3/bpel/system/services/config directory. Here is the portion of ns_emails.xml file that I have modified. Also, I can send the email from telnet and it works just fine.
    <EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    EmailMimeCharset=""
    NotificationMode="EMAIL">
    <EmailAccount>
    <Name>Default</Name>
    <GeneralSettings>
    <FromName>OracleSOA</FromName>
    <FromAddress>[email protected]</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>mailhost.innowave.com</SMTPHost>
    <SMTPPort>25</SMTPPort>

    Thanks guys,
    I cannot see anything in the logs. It does show the email message (Like the email to information, subject etc), but no errors after that.
    Does any of you guys tried it with the weblogic server? As I stated earlier, I have done it for two different clients on OC4J and it works fine.
    I will check the metalink note. Thanks for the advice.

  • Send notification from process chain to external appl. to trigger event

    Hi Experts,
    I need help with the following problem:
    From BI I need to send a notification to an external database, non SAP, to indicate that a data load has been completed successfully. This should trigger an event on the other side to consume the data via a webservice. The "activate data" variance does include a series of notification methods like, fax, sms, email etc. but none that could function as a trigger communicating with another application without human intervention.
    How can this be done? Via a function module? What would be the Abap routine for that? Any help to solve this is appreciated.
    Best Regards,
    Georg

    Hi Georg,
    may be you can implement something like this:
    Having a batch job running in your ext. system to check the existance of a specific file. If the file exists, do the necessary steps and delete the file. Within your process chain run a abap at a specific step to create that file.
    May be that helps.
    regards
    Siggi

  • Easiest way to send JMS from MDB to itself

    I need Message Driven Bean to send JMS-message to itself from onMessage-method. Of course, I can find necessary queue, create sender and send message.
    But is it easiest way? onMessage-method can get Destination property from received Message. Can be message sent using only this Destination, without knowing self-queue name?

    ctrl-click the project file and choose the Compress option. then use a service like yousendit.com to transfer the compressed .zip file

  • Microsoft band. Send notification from background task

    Hi, everybody. Has anybody tried to use the Microsoft's Band sdk from a background task? I've installed and referenced the sdk to the background project and inside the Run I'm trying to use the code to get the list of the paired bands
    IBandInfo[] pairedBands = await BandClientManager.Instance.GetBandsAsync();
    but the BandClientManager is not recognized. I have instead the IBandClientManager. Running the same code from the app's main page works as expected. Can somebody help?

    The Band team is following the Microsoft-band tag on StackOverflow. See the previously asked question
    Microsoft Band SDK Preview - NotificationManager within a backgroundtask .

  • Disabled subscription sends notifications, relative date not working properly

    Hi
    I have two problems regarding subscriptions:
    1.When I disable a subscription, should I receive any further notifications? I am receiving notifications despite disabling the subscription.
    (I have cloned the template and deleted the original template, then sending email notification will be stopped, but as soon as assigning new template to subscription, sending emails starts, whether subscription is enabled or not)
    2. The criteria for subscription is as follows:
    Status = Active or Status = Pending and Source = Portal and Created date [relative] = [now-7d]
    Regarding the criteria, it must check whether it has past 7 days from incident creation, but it starts sending notifications without considering the [now -7d] condition.
    I use SCSM 2012 SP1 - Rollup 6.
    Am I doing something wrong?
    YSobhdel

    The actual criteria was Created Date greater than or equal to [now-7d]
    What I am trying to accomplish is that whenever an open incident (i.e., not resolved or closed incident) is active more than 7 days, assigned to user will be notified.
    My Question is , why is it happening in the first place, this criteria is nearly impossible to catch (equal to [now-7d]), yet it is sending notifications from the first day. I have testes the notification with
    Created Date greater than or equal to [now-7d] as well but to no avail, still the same problem.
    About delay, I am 100% sure that this is not performance problem, since this workflow is set to periodically check criteria and is run once a day. I have waited for the setting to apply for about two days and this is far beyond any delay! (for two consecutive
    days, I have received this notification).
    YSobhdel

  • Email Notification from OIM 11g

    Hi ,
    Can anyone please explain in detail steps , how to configure /send notification from SOA . As i need to send notification to end user/manager etc..when an approval workflow is finished .
    Regards
    Sid

    Assuming that you already have an SMTP Server stood up, it's fairly easy. I would visit this site: http://www.orafmwschool.com/gmail-notification-service/
    From there, you can skip the whole configuration of the certificates since the example configures Gmail which is over SSL. Since you are only sending email out, just fill out the outbound information.
    Sunny Tsang

  • How to send message from Message Driven Bean  to JMS client?

    In my project I have JMS client, two QueueConnectionFactory and Message Driven Bean. Client send message to MDB through the first QueueConnectionFactory , in one's turn MDB send message to client through the second Queue Connection Factory . I already config my Sun AppServer for sending message in one way, and sending message from MDB to the second QueueConnectionFactory. But on my Client there is an error : �JNDI lookup failed: javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/MyQueue2� (jms/MyQueue2 � this is the name of my Queue). So it couldn't get this message.
    P.S.
    Thank you for help!!!

    What is the name of the second queue?is the connection factory on the local?Yes the connection factory is on the local. The name of my first queue is jms/MYQueue and the name of another one is jms/MyQueue2.

  • How can I use notifications to send data from different sources to thesame chart?

    Hi,
    I am using the "Continuous Measurement and Logging" template project that ships with LV 2013.
    It is extremenly helpful for figuring out messaging between the acquire, graph, and log loops. (Thanks NI!)
    I've run into a snag however.
    I would like to modify it so that my graphing loop receives data notifications from two acquisition sources via notifiers.
    I'm having trouble getting data from both sources to display on the same chart.
    I've isolated the issue in the attached vi.
    Here's what happens:
    1. I create data from 2 parallel loops and send the data to a third parallel loop with notifiers.
    2. The third loop receives data from only one of the loops because one of the receiving notifiers just times out instead of receiving data.
    Can someone suggest how I can fix this?
    Thanks.
    - Matt
    Solved!
    Go to Solution.
    Attachments:
    test notification loop.vi ‏42 KB

    Here is my modification of your VI. I put notes on the block diagram to explain the changes. It uses a queue for the data transfer to avoid loss of data. It uses a notifier to stop the loops. All local variables and Value property nodes have been eliminated.
    The way the loops are stopped will likely leave some data in the queue. No more than one or two iterations of each of the data acquisition loops. If you need to guarantee that all data has been displayed (or saved in a real application), then you need to stop the acquisition loops first and read the queue until you know it is empty and both of the other loops have stopped. Then stop the display loop and release the queue and notifier.
    Lynn
    Attachments:
    test notification loop.ldj.vi ‏1036 KB

  • How to send email notifications from a workflow?

    I am having problems trying to get notification emails to work from a workflow. I have done the following:
    1.Checked notification to file is commented out in waveset.properties
    2.Set SMTP server and port setting in Configure > Servers > email template
    3.Set SMTP and port setting in Account creation notification template.
    4.I am then running the following workflow code in reconsiliation per user workflow:
    <Action id='0' name='Send Notification' application='com.waveset.provision.WorkflowServices'>
                          <Argument name='op' value='notify'/>
                          <Argument name='template' value='Account Creation Notification'/>
                          <Argument name='type' value='email'/>
                          <Argument name='toAddress' value='$(email)'/>
               </Action>I am currently getting an error:com.waveset.util.WavesetException: toAddress must be specified.
    Whatever I try I cannot get the email template to pick up the email address for each user from the workflow.
    If I add a valid email address into the "toAddress" in the Account Creation Notification email template, the error goes away and reconsile completes, but no email is sent.
    Could someone advise what I can look into to sort this and get it working.

    You're running into a common IDM bug. I've hit it a few times too. I'm not sure of the root cause (sometimes using notifications as you did works for me sometimes it doesn't) but there's a workflow sub-process called "Notify" that you might look into. It's got a few extra features (such as retries) that the direct provisioning class does not.
    Call it using something like the following action:
          <Activity name='Notify User'>
            <Action id='0' name='send notification' process='Notify'>
              <Argument name='template' value=Template'/>
              <Argument name="from" value="[email protected]"/>
              <Argument name='to' value='$(userView.global.email)'/>
            </Action>
            <Transition to='end'/>
          </Activity>

Maybe you are looking for

  • SFP : Error in opening document (Layout)

    Hi All, A SFP form was developed in Language "DE"; when I try to open the layout of the SFP (logged on using EN); I get the error "Error while opening document" and the form is not opened. But when the same layout is opened with a logon using languag

  • Depreciation on basis of Life

    There are some assets which are to be depreciated over the period of life (say 3 years). How to define depreciation key for the same ? Please reply.

  • Problems with Nike+ Workouts

    Hi there. First time posting, so please be nice... I just purchased my first Nike workout from iTunes. Downloads it, and creates a new "smart" playlist folder called "Workouts" and places a new playlist in the folder with the name of the CD and the s

  • When i sign in to itunes it now asks for security questions and when completed i get error 1202

    When I sign in to itunes it now wants me to setup security questions. When completed I get error 1202 and therefore cannot purchase from the store.

  • Center a cell in custom package

    Is there a way to center a cell in a custom package with precision?  I just want to place one cell in the exact middle of the page.  Eyeballing it even with the grid isn't accurate enough.