Generating alert from applet

hi,
could we generate alert from applets,
infact i want that if a errors come user notify by alert.
any help regarding it will be welcom.

Use JSObject to make a call to JavaScript.

Similar Messages

  • How to generate alert from Mapping

    Hello,
    I know how to generate alrets by configuring ALRTCATDEF, Alert Configuration.
    I want to know how we can generate alert from mapping for ex..
    If a=b then send the message
    and if a!=b then failed the message and throw and alert.
    In java or XSLT mapping
    Thnaks and Regards
    Hemant

    Hi Hemanth,
    Bhavesh Blog explied to raise alert using UDF,if you want using JAVA or XSLT converth the same code in to JAVA Map,I think it will work.
    I had done similar requirement using Mial adapter using Java Mapping.
    Regards,
    Raj

  • Generating alert from the payload

    Hi,
    We have a requirement to generate alert from payload. If the value of the particular field is 'X" than generate an alert.
    We are not using BPM. Please advice how can this be achieved without BPM
    Regards
    Edited by: XI_Fan on Aug 19, 2008 4:12 PM
    Edited by: XI_Fan on Aug 19, 2008 4:14 PM

    >>We are looking at creating alert from Alert framework using payload by checking the field.
    Generating alerts is a 2 step process.
    In first step you need to do all the configurations in ALRTCATDEF and RWB->alert configurations.
    Next step if to have some trigger mechanism via which error will be generated in the processing of message and hence alerts will be triggered.
    Normally we use UDF to validate payload and if an error occurs we can trigger the alert,but in your case since you can't use UDF,you can use a simple If-Else condition and map the result to some mandatory(occurence 1-1) field on the receiver side.
    If the If-Else condition is not satisfied,then the mandatory receiver element/node will not be generated and hence a mapping error will trigger an alert.
    Thanx
    Aamir

  • Ho to generate Alerts from Payload

    Hi Experts,
    How can i generate Alerts by getting the data from the payload if message failed in XI.
    Suppose iam sending the Purchase Order deteils  through XI, If the message failed in XI.
    I want to get the Alert like "Message failed for the PO Number=0123456" .
    How can i develope the scenario for this.
    Can any body give me the complete scenario to do this.
    Thanks & Regards
    Sankar

    Hi Sankar,
    Are you using the fault message for getting the error message.
    If yes then you can have an RFC call in to your XI system (RFC:SALERT_CREATE) in the falut message mapping .
    Pass the appropriate input details which you want to get in alert.
    If not Try to find out a way to trigger the RFC:SALERT_CREATE from the application server using the ABAP code and RFC communication.
    Hope this will help you ...

  • How to generate alerts from the oaf page

    hii.......
    I need to generate simple alert from oaf page...........
    can u suggest me sample code for this????????

    Hi Nazeer,
    Nazeer again and again you are replying the same answer and again and again I'm asking you the same question.
    What do you mean by alert?? is it some mail that you want to send from OAF page??
    sample code to send mail from OAF:
    import java.io.*;
    import java.net.*;
    * This program sends e-mail using a mailto: URL
    public class SendMail {
    public static void main(String[] args) {
    try {
    // If the user specified a mailhost, tell the system about it.
    if (args.length >= 1) System.getProperties().put("mail.host", args[0]);
    // A Reader stream to read from the console
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    // Ask the user for the from, to, and subject lines
    System.out.print("From: ");
    String from = in.readLine();
    System.out.print("To: ");
    String to = in.readLine();
    System.out.print("Subject: ");
    String subject = in.readLine();
    // Establish a network connection for sending mail
    URL u = new URL("mailto:" + to); // Create a mailto: URL
    URLConnection c = u.openConnection(); // Create a URLConnection for it
    c.setDoInput(false); // Specify no input from this URL
    c.setDoOutput(true); // Specify we'll do output
    System.out.println("Connecting..."); // Tell the user what's happening
    System.out.flush(); // Tell them right now
    c.connect(); // Connect to mail host
    PrintWriter out = // Get output stream to mail host
    new PrintWriter(new OutputStreamWriter(c.getOutputStream()));
    // Write out mail headers. Don't let users fake the From address
    out.println("From: \"" + from + "\" <"user.name") + "@" +
    InetAddress.getLocalHost().getHostName() + ">");
    out.println("To: " + to);
    out.println("Subject: " + subject);
    out.println(); // blank line to end the list of headers
    // Now ask the user to enter the body of the message
    System.out.println("Enter the message. " +
    "End with a '.' on a line by itself.");
    // Read message line by line and send it out.
    String line;
    for(;;) {
    line = in.readLine();
    if ((line == null) || line.equals(".")) break;
    out.println(line);
    // Close the stream to terminate the message
    out.close();
    // Tell the user it was successfully sent.
    System.out.println("Message sent.");
    System.out.flush();
    catch (Exception e) { // Handle any exceptions, print error message.
    System.err.println(e);
    System.err.println("Usage: java SendMail [<mailhost>]");
    Regards,
    Reetesh Sharma
    Edited by: Reetesh Sharma on Jun 30, 2010 3:27 AM

  • Generate alerts from event inserted in OM/DW databases

    Hi,
    Is there a existing datasource that is able to read events inserted in OM/DW databases using Microsoft.SystemCenter.CollectEvent and Microsoft.SystemCenter.DataWarehouse.PublishEventData  ?
    Something that would work like Microsoft.SystemCenter.SdkEventProvider but not for events inserted using SDK...
    If such a datasource doesn't exist, I could write a scripted datasource that would query the EventView view in OM database, but I'd rather avoid that.
    The reason why I'm trying to achieve this is that I'm collecting syslog events ( more or less following this article : http://blogs.technet.com/b/omx/archive/2013/01/07/how-to-store-syslog-in-the-scom-data-warehouse.aspx ) and I now need to create alerts
    when a specific event is missing for a
    given target (the targets are already discovered as instances of a custom class with their IP address as a property).
    All targets are sending their syslog events to the same SCOM agent, which explains why I'm unable to simply use a "basic" rule based on syslog datasource -> missing correlator -> alert action (such a rule would need to be targeted at this
    specific agent, thus not allowing me to filter on the IP address property).
    I hope my question was clearly enough explained, if not I'll try to clarify anything you need!
    Thanks,

    Hi 
    you can use System.Mom.BackwardCompatibility.FilteredEvent.DataProvider module to read event in SCOM DB and generate alert, this module is available in System.Mom.BackwardCompatibility.Library.MP .
    Regards 
    sridhar v

  • Scom - generating alerts from emails received

    Hi All,
    We have an in house monitoring tool that we use to send email alerts to some of our support teams.
    Is it possible to have scom receive these emails and generate an alert based on these?
    I would like to do this without the use of scorch monitoring a mailbox and generating the alert for me, simply have "scom" receive the email and create an alert.
    Regards,

    Hi
    SCOM is not able to receive mails. You don't have many choices if you don't want to use Orchestrator. I probably would build a PowerShell Alert Rule or Monitor which runs frequently and checks the "mailbox" and depending on the script criteria
    and mails creates an alert.
    Cheers,
    Stefan
    Blog: http://stefanroth.net

  • Anyone know how to customize email subject generated by Alerts from BPM

    I'm generating Alerts from BPM. However, the Alerts generated this way has subject title with - Process and an id number like this 'Process 000000126930'.
    I want to create custom subject line / email title.
    I tried by creating and using container variables in the Alert category for the title and it did not work.
    Any ideas on how to do this.
    Thank you,
    Parimala

    Hi Parimala,
    You can use the external definition Mail strcuture (Mail.xsd) provided by SAP for XI. You can map your structure with the Mail structure where you can create any subject line and any content as well, depending upon your interface configuration.
    Pls find the attached, Mail.xsd. Customize the subject, to, from etc. fields and populate the content branch element to send any message via the email.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://sap.com/xi/XI/Mail/30" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/Mail/30">
      <xsd:element name="Mail">
        <xsd:annotation>
          <xsd:documentation>Mail package for XI - Mail Adapter</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="Subject" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            <xsd:element name="From" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            <xsd:element name="To" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            <xsd:element name="Reply_To" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            <xsd:element name="Content_Type" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            <xsd:element name="Date" type="xsd:dateTime" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            <xsd:element name="Message_ID" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            <xsd:element name="X_Mailer" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
         <xsd:element name="Content" minOccurs="0">
           <xsd:annotation>              
              </xsd:annotation>
         </xsd:element>
          </xsd:sequence>
          <xsd:attribute name="encoding" type="xsd:string" />
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
    Hope this helps, pls let me know if you need further info.
    Cheers,
    Ranjan

  • How  to  generate  an  alert  from  within  a  workflow?

    Hi Experts,
    Let  me  describe  my  scenario. Presently  I  am  working  in  CRM 5.0. There is a need  to generate an alert from my workflow . This alert   should  be generated in the Web Client in  a  particular tab only.
      Now I have identified a function module called  'SALRT_CREATE_API'  which can be  used to generate alerts. But  in  that  function  module  one  of  the  import  parameters is   'IP_Category'  which accepts  the category of the alert . Now the  alerts  in  the WebClient do not have any such thing as 'Alert Category' . They only possess 'Alert Id' and 'Alert Class'. (spro => SAP Reference Img => Customer Relationship Management => Interaction Center Webclient =>Basic functions => Define Alert  and Alert Profiles ).
    So  please suggest  me  some  solution.
    Thanks & Regards ,
    Samrat Dutta

    Hi,
    I am not sure whether you have gone through this documentation:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/45/732041c877f623e10000000a155106/content.htm
    Which mentions that you will have to maintain the Alert Category. You can use transaction SALRTCATDEF to define your alert. You will have to maintain the Business Object from where you are triggering the alert.
    If you need it via Business workflow then you can see the documentation:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/8f507464246353e10000000a11466f/content.htm
    Hope this helps,
    Sudhi

  • Calling web service from applet

    Hi,
    I am trying to consume a .NET web service from a java applet. I use JDev9i and I generated a clientside-stub...
    It works fine in the development environnement, but I get this exception when executing from browser:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertiesAccess(Unknown Source)
         at java.lang.System.getProperties(Unknown Source)
         at oracle.soap.transport.http.OracleSOAPHTTPConnection.<clinit>(OracleSOAPHTTPConnection.java:105)
         at AppletPackage.Service1Stub.<init>(Service1Stub.java:23)
    I replaceOracleSOAPHTTPConnection with SoapHTTPConnection, but then I get the same exception when trying to execute
    requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData)); (in the stub)
    Is there anything wrong with the methods of the Oracle packages that could cause security problems?

    Nope, the problem is that the webservice impl is trying to get all system properties and this is a restricted operation for applets. Seems like every single api impl done by oracle is not usable from applets, unless you sign them. I've tried webservices, xml and jndi.. all of them rely on system properties

  • Playing an audio file from applet

    Hi friends,
    I have a problem to be solved .
    Please help me.
    I have to play an audio file from applet.When the applet loads it shold start playing .There is a progress bar in the applet it shold alsomove corresponding to that.
    How can i do that.Give me an idea.
    I know nothing about jmf.
    I am using j2sdk1.4,windows 2000 server.

    Andrew,
    Forgive my naivety, but i struggle with JAVA! I am desperately trying to create a JAVA plugin to SERVOY and have to date been successful with a few things. Record, Playback, convert to .spx.
    I am really struggling with implementing a rewind and fastforward function of the type you have. I thought it would be easy, but it appears not.
    At the bottom is the complete code from my class that is called by the servoy plugin wrapper,
    i had thought that adding some simple jump 500 ms would have been easy in something like this:
    public AudioStream js_FastForward (AudioStream as) throws IOException {
    !!! Line or two here to move the play head forward !!!
         AudioPlayer.player.start(as);
         return as;
    Can you give me any pointers to how i code that fast forward bit.
    many thanks
    David
    package com.d2e.MyPlugin;
    import com.servoy.j2db.scripting.IScriptObject;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.awt.Button;
    import javax.sound.sampled.*;
    import org.xiph.speex.*;
    import org.xiph.speex.spi.*;
    import  sun.audio.*;    //import the sun.audio package
    public class MyPluginProvider implements IScriptObject  {
          public void JSencode()
             throws IOException{
               /** Version of the Speex Encoder */
                final String VERSION = "Java Speex Command Line Encoder v0.9.7 ($Revision: 1.5 $)";
                /** Copyright display String */
                final String COPYRIGHT = "Copyright (C) 2002-2004 Wimba S.A.";
                /** Print level for messages : Print debug information */
                final int DEBUG = 0;
                /** Print level for messages : Print basic information */
                final int INFO  = 1;
                /** Print level for messages : Print only warnings and errors */
                final int WARN  = 2;
                /** Print level for messages : Print only errors */
                final int ERROR = 3;
                int printlevel = INFO;
                /** File format for input or output audio file: Raw */
                final int FILE_FORMAT_RAW  = 0;
                /** File format for input or output audio file: Ogg */
                final int FILE_FORMAT_OGG  = 1;
                /** File format for input or output audio file: Wave */
                final int FILE_FORMAT_WAVE = 2;
                int srcFormat  = FILE_FORMAT_OGG;
                int destFormat = FILE_FORMAT_WAVE;
                int mode       = -1;
                int quality    = 4;
                /** Defines the encoders algorithmic complexity. */
                 int complexity = 3;
                /** Defines the number of frames per speex packet. */
                 int nframes    = 1;
                /** Defines the desired bitrate for the encoded audio. */
                 int bitrate    = -1;
                /** Defines the sampling rate of the audio input. */
                 int sampleRate = -1;
                /** Defines the number of channels of the audio input (1=mono, 2=stereo). */
                 int channels   = 1;
                /** Defines the encoder VBR quality setting (float from 0 to 10). */
                 float vbr_quality = -1;
                /** Defines whether or not to use VBR (Variable Bit Rate). */
                 boolean vbr    = false;
                /** Defines whether or not to use VAD (Voice Activity Detection). */
                 boolean vad    = false;
                /** Defines whether or not to use DTX (Discontinuous Transmission). */
                 boolean dtx    = false;
              //HArd code src format and dest
               // private String srcPath ="junk.wav";
              srcFormat = FILE_FORMAT_WAVE;
              destFormat = FILE_FORMAT_OGG;
              //destPath="junk.spx";
             byte[] temp    = new byte[2560]; // stereo UWB requires one to read 2560b
             final int HEADERSIZE = 8;
             final String RIFF      = "RIFF";
             final String WAVE      = "WAVE";
             final String FORMAT    = "fmt ";
             final String DATA      = "data";
             final int WAVE_FORMAT_PCM = 0x0001;
             // Open the input stream
             DataInputStream dis = new DataInputStream(new FileInputStream("junk.wav"));
             // Prepare input stream
           //DP - Sort out the Wave File
               // read the WAVE header
               dis.readFully(temp, 0, HEADERSIZE+4);
               // Read other header chunks
               dis.readFully(temp, 0, HEADERSIZE);
               String chunk = new String(temp, 0, 4);
               int size = readInt(temp, 4);
               while (!chunk.equals(DATA)) {
                 dis.readFully(temp, 0, size);
                 if (chunk.equals(FORMAT)) {
                   typedef struct waveformat_extended_tag {
                   WORD wFormatTag; // format type
                   WORD nChannels; // number of channels (i.e. mono, stereo...)
                   DWORD nSamplesPerSec; // sample rate
                   DWORD nAvgBytesPerSec; // for buffer estimation
                   WORD nBlockAlign; // block size of data
                   WORD wBitsPerSample; // Number of bits per sample of mono data
                   WORD cbSize; // The count in bytes of the extra size
                   } WAVEFORMATEX;
                   if (readShort(temp, 0) != WAVE_FORMAT_PCM) {
                     System.err.println("Not a PCM file");
                     return;
                   channels = readShort(temp, 2);
                   sampleRate = readInt(temp, 4);
                   if (readShort(temp, 14) != 16) {
                     System.err.println("Not a 16 bit file " + readShort(temp, 18));
                     return;
                   // Display audio info
                   if (printlevel <= DEBUG) {
                     System.out.println("File Format: PCM wave");
                     System.out.println("Sample Rate: " + sampleRate);
                     System.out.println("Channels: " + channels);
                 dis.readFully(temp, 0, HEADERSIZE);
                 chunk = new String(temp, 0, 4);
                 size = readInt(temp, 4);
               if (printlevel <= DEBUG) System.out.println("Data size: " + size);
           //DP ENd sort wave file 
           //Now Choose the mode , we have a file sampled at 44100
                 mode = 2; // Ultra-wideband
             // Construct a new encoder
             SpeexEncoder speexEncoder = new SpeexEncoder();
             speexEncoder.init(mode, quality, sampleRate, channels);
             if (complexity > 0) {
               speexEncoder.getEncoder().setComplexity(complexity);
             if (bitrate > 0) {
               speexEncoder.getEncoder().setBitRate(bitrate);
             if (vbr) {
               speexEncoder.getEncoder().setVbr(vbr);
               if (vbr_quality > 0) {
                 speexEncoder.getEncoder().setVbrQuality(vbr_quality);
             if (vad) {
               speexEncoder.getEncoder().setVad(vad);
             if (dtx) {
               speexEncoder.getEncoder().setDtx(dtx);
             // Display info
             // Open the file writer
             AudioFileWriter writer;
             if (destFormat == FILE_FORMAT_OGG) {
               writer = new OggSpeexWriter(mode, sampleRate, channels, nframes, vbr);
             else if (destFormat == FILE_FORMAT_WAVE) {
               nframes = PcmWaveWriter.WAVE_FRAME_SIZES[mode-1][channels-1][quality];
               writer = new PcmWaveWriter(mode, quality, sampleRate, channels, nframes, vbr);
             else {
               writer = new RawWriter();
             writer.open("junk.spx");
             writer.writeHeader("Encoded with: " + VERSION);
             int pcmPacketSize = 2 * channels * speexEncoder.getFrameSize();
             try {
               // read until we get to EOF
               while (true) {
                 dis.readFully(temp, 0, nframes*pcmPacketSize);
                 for (int i=0; i<nframes; i++)
                   speexEncoder.processData(temp, i*pcmPacketSize, pcmPacketSize);
                 int encsize = speexEncoder.getProcessedData(temp, 0);
                 if (encsize > 0) {
                   writer.writePacket(temp, 0, encsize);
             catch (EOFException e) {}
             writer.close();
             dis.close();
            * Converts Little Endian (Windows) bytes to an int (Java uses Big Endian).
            * @param data the data to read.
            * @param offset the offset from which to start reading.
            * @return the integer value of the reassembled bytes.
           protected static int readInt(final byte[] data, final int offset)
             return (data[offset] & 0xff) |
                    ((data[offset+1] & 0xff) <<  8) |
                    ((data[offset+2] & 0xff) << 16) |
                    (data[offset+3] << 24); // no 0xff on the last one to keep the sign
            * Converts Little Endian (Windows) bytes to an short (Java uses Big Endian).
            * @param data the data to read.
            * @param offset the offset from which to start reading.
            * @return the integer value of the reassembled bytes.
           protected static int readShort(final byte[] data, final int offset)
             return (data[offset] & 0xff) |
                    (data[offset+1] << 8); // no 0xff on the last one to keep the sign
         AudioFormat audioFormat;
           TargetDataLine targetDataLine;
         public Class[] getAllReturnedTypes() {
              // TODO Auto-generated method stub
              return null;
         public String[] getParameterNames(String arg0) {
              // TODO Auto-generated method stub
              return null;
         public String getSample(String arg0) {
              // TODO Auto-generated method stub
              return null;
         public String getToolTip(String arg0) {
              // TODO Auto-generated method stub
              return null;
         public boolean isDeprecated(String arg0) {
              // TODO Auto-generated method stub
              return false;
         public String js_Record (String name){
              captureAudio();
              return "Started Recording " +name;
        public String js_StopRecord (String name) throws IOException{
             //new ActionListener(){
             //   public void actionPerformed(ActionEvent e)
                  //Terminate the capturing of input data
                  // from the microphone.
                  targetDataLine.stop();
                  targetDataLine.close();
              //  }//end actionPerformed
             //};//end ActionListener
                 // JSpeexEnc ("junk.wav","output.spx");
                  JSencode();
              return "Stop Records " +name;
        //Play audio file
        public AudioStream js_Playback (String name) throws IOException{
             InputStream in = new FileInputStream("junk.wav");
             AudioStream as = new AudioStream(in);        
             AudioPlayer.player.start(as);           
             return as;
        public AudioStream js_ContPlay (AudioStream as) throws IOException {
             AudioPlayer.player.start(as);           
             return as;
         //Stop Play
        public AudioStream js_Stop_Playback (AudioStream as) throws IOException{
             AudioPlayer.player.stop(as);
              return as;
         //This method captures audio input from a
        // microphone and saves it in an audio file.
        private void captureAudio(){
          try{
            //Get things set up for capture
            audioFormat = getAudioFormat();
            DataLine.Info dataLineInfo =
                                new DataLine.Info(
                                  TargetDataLine.class,
                                  audioFormat);
            targetDataLine = (TargetDataLine)
                     AudioSystem.getLine(dataLineInfo);
            //Create a thread to capture the microphone
            // data into an audio file and start the
            // thread running.  It will run until the
            // Stop button is clicked.  This method
            // will return after starting the thread.
            new CaptureThread().start();
          }catch (Exception e) {
            e.printStackTrace();
            System.exit(0);
          }//end catch
        }//end captureAudio method  
    //  This method creates and returns an
        // AudioFormat object for a given set of format
        // parameters.  If these parameters don't work
        // well for you, try some of the other
        // allowable parameter values, which are shown
        // in comments following the declarations.
        private AudioFormat getAudioFormat(){
          float sampleRate = 44100.0F;
          //8000,11025,16000,22050,44100
          int sampleSizeInBits = 16;
          //8,16
          int channels = 1;
          //1,2
          boolean signed = true;
          //true,false
          boolean bigEndian = true;
          //true,false
          return new AudioFormat(sampleRate,
                                 sampleSizeInBits,
                                 channels,
                                 signed,
                                 bigEndian);
        }//end getAudioFormat
        class CaptureThread extends Thread{
               public void run(){
                 AudioFileFormat.Type fileType = null;
                 File audioFile = null;
                 //Set the file type and the file extension
                 // based on the selected radio button.
                 //if(aifcBtn.isSelected()){
                  // fileType = AudioFileFormat.Type.AIFC;
                  // audioFile = new File("junk.aifc");
                // }else if(aiffBtn.isSelected()){
                 //  fileType = AudioFileFormat.Type.AIFF;
                 //  audioFile = new File("junk.aif");
                // }else if(auBtn.isSelected()){
                 //  fileType = AudioFileFormat.Type.AU;
                 //  audioFile = new File("junk.au");
                // }else if(sndBtn.isSelected()){
                //   fileType = AudioFileFormat.Type.SND;
                 //  audioFile = new File("junk.snd");
                // }else if(waveBtn.isSelected()){
                 fileType = AudioFileFormat.Type.WAVE;
                 audioFile = new File("junk.wav");
                // }//end if
                 try{
                   targetDataLine.open(audioFormat);
                   targetDataLine.start();
                   AudioSystem.write(
                         new AudioInputStream(targetDataLine),
                         fileType,
                         audioFile);
                 }catch (Exception e){
                   e.printStackTrace();
                 }//end catch
               }//end run
             }//end inner class CaptureThread
    }

  • Generating Alert Message XML file and placing it in Queue

    Hello Team,
    I want the alert mechanism to generate the Alert file in XML format and it should be placed in the Queue it is the requirement of the client and it should be done without the help of the BPM can any one suggest me is this scenario can be done and if it can be done then please suggest me how can we do it.I have also refereed http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/10/23/customize-e-mail-body-and-subject-in-alerts-in-sap-pi-731-java-stack-only-part-1-esr this link of customized alert mail but i want that attached file of email to be placed in the Queue and also without using BPM.
    I am also thinking is it possible to combine multiple interfaces without using BPM.
    Please help me in this issue thanks very much in advance.
    Regards,
    Avinash.

    Hi Avinash,
    One option is genrate customize alert as per blog, pick the alert email from mail box and place in the desired queue with another interface.
    So you have two flow
    customize alert interface to create customize alert and send the message to mail box
    Pick the alert from mail box and place in the queue
    regards,
    Harish

  • Alerts from ECC

    Chek these... i have a doubt which is bold below.....
    Alert Rules
         Message-based alerting is used to notify about errors that occur during message processing. It is based on the alert framework, among other things, so you can leverage the functions it provides, such as sending the alert by e-mail, fax, or SMS.
    By defining rules within the RWB, you can filter the monitored messages according to error code, error category, and message header attributes for sender and receiver. For instance, if a customer only wants to be informed immediately when his core business scenarios fail, the message-based alerting can be restricted to the respective interfaces only.
    -     Use RWB to define Alert Rules within PI
    -     Use ABAP for defining rules within ECC and generate an alert from ECC to PI by passing the right variables.
    My question is
    how do to this.....how to define rules within ECC and generate  an alert from ECC to PI by passing the right variables...?
    any idea guys....i am going with ALRTCATDEF...

    HI
    Refer the following links
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm -
    Alert
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step - Alert Configuration
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide - Trouble shoot alert config
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1 -- ccms alerts u2013 1
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2 -- ccms alerts u2013 2
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3 -- ccms alerts --- 3
    Alerts with variables from the messages payload (XI) - UPDATED -
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step - Alert Configuration by Micheal
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    I hope at the end of this you may get some knowledge on Alerts.
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step XI:Alerts step-by-step. (fundamental Basic)
    /people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i CCMS Monitoring for XI. (CCMS monitoring for XI is enough later
    we configure to Adapter Engine).
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1 Configuring scenario specific E-mail alerts in XI-CCMS: Part-1
    (This is Important)
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2 Configuring scenario specific E-mail alerts in XI-CCMS: Part-2
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3 Configuring scenario specific E-mail alerts in XI-CCMS: Part 3
    /people/federico.babelis2/blog/2006/05/03/solution-manager-cen-and-alerting-configuration-guide-for-dummies Solution Manager CEN and Alerting configuration (Advanced)
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide - Trouble shoot alert config
    Alerts with variables from the messages payload (XI) - UPDATED -
    Alert configuration
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    Calling alerts from UDF
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Email Alerts
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
    Alert Delivery
    /people/matt.kangas/blog/2006/06/27/personalized-alert-delivery
    Transport the alerts
    http://help.sap.com/saphelp_nw04/helpdata/en/a6/5a94413aaad960e10000000a1550b0/frameset.htm
    XI: Alerts - Step by step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    http://help.sap.com/saphelp_nw04s/helpdata/en/d0/d4b54020c6792ae10000000a155106/frameset.htm
    Triggering by Calling a Function Module Directly.
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Alerts with variables from the messages payload (XI) u2013 UPDATED
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Simple Steps to Get Descriptive Alerts from BPM in XI
    /people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi
    Triggering XI Alerts from a User Defined Function
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Throwing Smart Exceptions in XI Graphical Mapping
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    cheers

  • Alerts from PI for Exception Handling

    We have a scenario where the incoming message is examined and if the value exceeds certain threshold, we want to generate alerts and send notification to a set of users.  What are some of the options available that SAP would recommend or other customers have implemented? 
    Thank you!
    Cheers
    George

    Multiple ways to trigger alerts in XI.
    One of them shown in this blog of mine :
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Or use BPM based alerts and so on.
    Regards
    Bhavesh

  • Script to get all the alerts from SCCM Management Pack

    Hi Team,
    I need a script/tool to generate all the default alerts from a Management Pack.
    Thanks and Regards, Mohd Zaid www.techforcast.com

    You may use the following SQL statement
    select displayname as MPname, b.monitorname, b.alert from(
    select displayname as monitorname, alert, a.managementpackid from (select monitorid, displayname as alert,
    monitor.managementpackid from monitor inner join displaystringview on monitor.alertmessage=ltstringid
    where languageCode='ENU') a inner join displaystringview on a.monitorid=ltstringid
    where languageCode='ENU') b inner join displaystringview on b.ManagementPackid=ltstringid
    where languageCode='ENU' where displayname ='SCCM Management Pack'
    Roger

Maybe you are looking for

  • Can't open an iPhoto library, but my wife can from her account

    Just reinstalled my system in the last month, but now all of a sudden, I am unable to open our shared iPhoto Library which is stored on a second drive that has no permissions set. But I have no problem accessing the library from my wife's account. An

  • HP Probook 430 mousepad issue

    I'm having issues with the mousepad with several Probook 430. What happens is that after å while the mousepad gets choppy in the vertical direction. If i go in to the synaptics driver and reset, the problem disapears for a while. It also disapears wh

  • Need for locking system for delta initialization (BW-R3-LO)

    Hello all, Could someone please help me with the following, Please be kind, don't get impatient for the lengthy post 1. Do we need to lock the system (or posting-free the system) to do early delta initialization or not? If yes, please explain me how

  • Wireless 5508 HA mode, urgent question! Many thanks

    Hi, experts, our company has order two WLC 5508 and want to deploy as HA mode. one is air5508-12-k9, another is air5508-HA-k9. however, due to proper installation, someone has installed license into HA model, right now, two WLCs are both primary. Whe

  • OSX ML & Mail 6.2 - Accounts Go Offline

    Since upgrading to 10.8.2 & Mail 6.2, if my Mac Pro or MBP 'sleep', my accounts go off-line & the 'electric bolt' or 'lightning' icon appears beside my Mailbox Icons. Going to the Mailbox Menu & clicking on 'Take All Accounts Online' has no effect (T