How to dispatch an event on external topic

Hi, I need to know if it is possible to dispatch an event on an external (BEA) Topic instead of ENS server queue.
If yes, any link for docs/example?
My scenario is: JCS 5.0 and Messaging Server 6.3
Thanks in advance

Hi Everyone,
Im currently having a problem with the event notification service for sun java calendar server 6( sun communication suite 5)...i have successfully compiled the sample publisher apub.c and subscriber asub.c..apart from this i haven't done any changes/settings in ics.conf or any other file..when i run the code using the following :
subscriber window:asub.c
./a.out localhost 57997
subscription successfull
publisher window:apub.c
./a.out localhost 57997
apub>bla bla
apub>.
#[root@localhost~]:In the output for apub.c when the apub prompt appears the logic of the code simply has to put whatever we type onto the publisher window(publish) and when i enter '.' on a line by itself the publisher shuts down..*But in my case there is nothing appearing on the subscriber window..there is no notification happening...*
Can i please know if i have missed out any steps..and also if ENS really works.._The thing i want to finally achieve is to somehow get the text/calendar response object containing the event details with the help of ENS_...i'll be grateful if anybody could answer me..
many thanks,
Bharath

Similar Messages

  • How to dispatch an event from the application to the preloader

    HI everyone
                     I've been searching everywhere on the net, and as far as it goes I gotten no answer for this. When the application hit the preinitialize phase, I'm calling the loadStyle method. As you can see I will hold the CreationComplete event until I the swf is ready. What I want to do, is to have a second loading bar in the preloader (no problem here) to show the progress of the swf downloaded, hence the StyleEvent.PROGRESS event. I would like to know how can I dispatch that event to the preloader?
    ///////////////////APPLICATION
                  import mx.events.StyleEvent;
                import mx.styles.StyleManager;
                private function loadStyle():void
                        var eventDispatcher:IEventDispatcher = StyleManager.loadStyleDeclarations("cl/elmelej/mangiare/estilo/estilo.swf");
                        eventDispatcher.addEventListener(StyleEvent.COMPLETE, completeHandler);
                        eventDispatcher.addEventListener(StyleEvent.PROGRESS,progreso);  
                private function completeHandler(event:StyleEvent):void
                        super.initialized = true;
                private function progreso(event:StyleEvent):void
                override public function set initialized(value:Boolean):void
                    // Hold off until the Runtime CSS SWF is done loading.
    ///////////////////////////////////PRELOADER
    virtual public function set preloader(value:Sprite):void
                _preloader = value;
                value.addEventListener(ProgressEvent.PROGRESS, progressHandler);   
                value.addEventListener(Event.COMPLETE, completeHandler);
                value.addEventListener(StyleEvent.PROGRESS, progressHandlerCSS);  
                value.addEventListener(FlexEvent.INIT_PROGRESS, initProgressHandler);
                value.addEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler);
    As you can see, the preloader is listening to StyleEvent.PROGRESS  events, but I cant dispatch that event to the preloader so that it can react to it. I hope you can help me. Thanks for your time and help
    Sebastián

    Alex,
             Thank you very much for the fast answer, but I'm not an advanced programmer in Flex, so I would need a bit more help from you. I wouldlike you to tell me if it is possible to do what I want to do? and could you be more specific n the information you gave me please?
    I think you mean something like this:
    private function progreso(event:StyleEvent):void
                  (this.systemManager.getChildAt(systemManager.numChildren) as Preloader).getChildAt(XXXXXXXX).dispatchEvent(event)
    /////////////////////// (this.systemManager.getChildAt(systemManager.numChildren) as Preloader)) -------->gets the preloader 
    ///////////////////////(this.systemManager.getChildAt(systemManager.numChildren) as Preloader).getChildAt(XXXXXXXX)     -------------> would get the progressbar (only If I have XXXXXvalue)      
    let me tell you that the method that I posted on the last message was a part of this class:
         public class PreloaderDisplayBase extends Sprite implements IPreloaderDisplay
    PreloaderDisplayBase is my Preloader.
    I hope you can help me.
    Thanks Again
    Sebastián Toro O

  • How to dispatch an event to the host application?

    Can I create a keyboardEvent and dispatch it to the host application?
    I'm trying to create an onscreen keyboard, so on every mouseUp event, a corresponding keyboardEvent is created and dispatched to the host application.
    Is it even possible to dispatch a keyboard event programatically?

    I can dispatch Keyboard Events programatically, and event listener inside my extension works just fine.
         var evnt:KeyboardEvent = new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false, Keyboard.M);
         this.dispatchEvent(evnt);
    However, the KeyBoardEvent is not propogating up to the host application (Illustrator).
    What do I need to do to send it on to the host application?

  • How to dispatch custom events from an item renderer used for Datagrid Column

    Hi,
    I am using an Item Renderer for a Data Grid Column and in that mxml, I am dispatching a custom event with data.
    But the main mxml which has the DataGrid is not able to resolve the event. How can I solve this?
    Thanks

    Hi,
    This is the constructor for Event.
    public function Event(type:String, bubbles:Boolean  = false, cancelable:Boolean  = false)
    When you created your custom event after extending from Event, for the parent container receives the event, the bubbles property must be set to true.
    Please check if you have done so. That should solve the problem. Let me know if it doesn't.
    Nishad

  • How to send an event to external system?

    Hi
    I am facing problem in sending the event to an external system.
    Initially I created 2 workflows with different itemtypes. One has send event and other has receive event. This works perfectly when I use the WF_OUT and WF_IN agents of the same system.
    Now, I signup two workflow server ( running in two PC, on Oracle 8.1.7 ). I have followed the following steps.
    a. creating database links.
    b. Signing up the system.
    c. changing the system status to enabled in Global Preference Page.
    In the event subcription in System1 is local, Out agent is Wf_OUT of System1 and the TO Agent is Wf_IN of System2. There is external subscription for the same event in System2 without Agents.
    When I run the workflow with send event, the event message goes to WF_OUT agent with the status Ready, but never propogates.
    What could be the reason? Can anyone help me?
    Thanks a lot.

    Hi
    Thanks for immediate respose. I tried the ping/acknowledgement example in the biginning itself. It doesn't work. I also tried by changing the agents ( to respective values suitable for my systems) of that example. Then also it failed. The error in that case also same. The message will not propogate from the out going agent.

  • How to obtain an event?

    Consider a circle filled with transparent color node over a button node, they are all contained in a root. When we click on the circle, the event dispatch chain established is root -- circle ? So the button node will not react to the click and will not have a visual changing effect. How we dispatch the event to the button node so that it can react to the click and have a visual effect of button pressed ?

    In javafx  mouse events are only received by the top most node. You can use  Node: setMouseTransparent(boolean).
    Mouse events on node with mouseTransparent set to true will be ignored and captured by the topmost node below.

  • How to fire an event?

    Hello guys! I came across a big problem this morning, please help me!
    I'm thinking about defining an event, which is supposed to extend AWTEvent, so as to help communicating between two beans. However, when I have almost started, I find I completely have no idea about how to dispatch an event, though I have used Listeners many times!
    I'll be very grateful if you'll kindly give me some hints. Thank you!

    Dispatching an event is basically just a method call.
    All the listeners implement some listener interface, right? And those interfaces invariably define a method that takes an event object and has no return value (i.e., it's void).
    So basically you create that event object and call then call the method on those listeners.

  • HT1229 How do you transfer photos to external backup and keep the photos in events with event name or with description name. Each time I have tried to transfer them they only transfer with a jpg number so you don't know what photos are what.

    How do you transfer photos to external backup and keep the photos in events with event name or with description name. Each time I have tried to transfer them they only transfer with a jpg number so you don't know what photos are what. When you have several thousand photos it is difficult to determined what is what.
    Why does iPhoto have the ability to put photos in events and to give them descriptions if it doesn't transfer this info with the photo. I want to back my photos up to an external drive.

    The simplest way to achieve what you want is to back up the iPhoto Library. That will get everything.
    You sem to be exporting from iPhoto to the Finder. The Finder does not have the same organisation capabilities as iPhoto. If you're going to do that you need to understand some of the differences between the two.
    Event Name will become  Folder Name.
    'Description Name' I guess is the Title you give the Photo
    Jpeg Number is the File Name assigned by your camera.
    So: File -> Export
    Set your Kind to Jpeg
    Select your preferred Quality
    Check the Boxes at 'Titles and Descriptions' and Location Information
    Under FIlename select 'Use Title'
    Click on Export. In the Next Window choose a New Folder as your export destination and then Name that as you prefer
    Regards
    TD

  • How can I multi-find and replace relative paths to external topics?

    I am using RH7 and publishing to a company server share. External topics are saved on the same server share and linked on my local drive to create a relative link. How can I do a multi-find and replace on the relative links to change the path to the external docs? The paths do not show up in the Topics List because they are relative, not absolute. Although changing all of the many paths manually would be job security, I would like an easier fix. Thanks for any help.

    Hello again
    Likely your best bet at this point is to use a good Multi-File Find and Replace utility.
    While RoboHelp has one included, it often fails. So we typically recommend something like FAR (Find And Replace) or BKReplace.
    Click here to visit the FAR site
    Click here to visit the page for BKReplace
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to dispatch events from custom AS3 classes to MXML

    Hello,
    I introduce some custom classes inside my SCRIPT tag in MXML.
    These classes should dispatch custom Events (or any events for that
    matter) and the listeners should be defined inside the SCRIPT tag.
    In the custom class I have:
    quote:
    dispatchEvent(new Event("customEvent"));
    And inside the script tag:
    quote:
    addEventListener("customEvent", testListener);
    quote:
    public function testListener(evt:Event):void{
    Alert("Event fired successfully.");
    However, this event is not handled in the listener (the alert
    is not shown). What could be wrong?

    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="init();">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    private function init():void
    addEventListener("customEvent", testListener);
    dispatchEvent(new Event("customEvent"));
    private function testListener(evt:Event):void{
    Alert.show("Event fired successfully.");
    Do like this
    Alert is the Class Object. This is not the Function.

  • Passing events from externally-loaded SWFs

    Hi,
    We have an externally-loaded swf that acts as a kind-of-a slide show.  After a user selects a particular subject from a mxml-based "menu" application, they push "buttons" in the SWF to go through a presentation, then on the last frame of the swf, I'd like to unload the swf and replace it with another "mxml" application.  How can this be done?  I have not tried to pass/capture events "up" from an externally-loaded swf before.
    Thanks,
    Doug

    Do you own those SWFs?  If so, they should dispatch an event from a known
    place like a SlideShowManager or something like that.
    Other folks "cheat" and bubble events or dispatch off of the systemManager
    and/or top-level application.

  • How do i import to a external hard drive

    Hi in I movie how to i import to a external hard drive from my video camera as i find it takes to much room on my imac. thanks

    Hello there foxcub 6,
    It sounds like you want to be able to import your video to an external drive rather than your internal drive to save space.
    First, you'll need to create an iMovie library on your external hard drive. Take a look at the "Create a new library" section here: http://help.apple.com/imovie/mac/10.0/#mov3fa25bae7
    After you've created the library, you can import media directly to it, and copy existing projects and events to it as well. You can learn more about importing here: 
    http://help.apple.com/imovie/mac/10.0/#movbc953953e
    Step 6 outlines how to Import to a different library specifically:
    Do one of the following:
    To choose an existing event to contain the imported clips: Choose the event from the “Import to” pop-up menu at the top of the Import window.
    To create a new event to contain the imported clips: Choose New Event from the “Import to” pop-up menu, type a name for the new event, and press Return.
    To learn more about events, see Organize your events and projects.
    The Import To dropdown is at the top of the Import window that opens when you click File > Import.
    Thank you for using Apple Support Communities.
    Cheers,Sterling

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • How to catch click event on BAR or a BAR GRAPH???

    Hello
    I want to implemnt following things,
    1. there is Bar Graph containing 10 Bars.
    2. So i want to navigate to 10 diff. pages on click of each bar.
    So how to catch click event on BAR or a BAR GRAPH.????

    Hi,
    You can set Destination URI on a graph. The URL can be specifically associated to a particular data point plotted in the graph.
    Detail for the same is provided in OAF developer guide under 'Charts and Graphs' topic.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get ItemRenderer Events

    Hallo, i have a little problem. In my application i am using a List and build his elements with an itemRenderer. In this itemRenderer i have on each line, 1 label and 1 button. When i push on the button i want to dispatch that event in my main application.. How can i create a communication between myApplication and itemRenderer ??
    Thx for all
    Max

    Hi Max,
    Dispatch the event by setting the bubbles property of the event object to true so that you can listen for that event in the main application.
    In your itemRenderer dispatch an event as shown..
    <!-- Itemrenderer -->
    this.dispatchEvent(new Event("rendererBtnClicked", true));
    <mx:Application creationComplete="init()">
    private function init():void
       this.addEventListener("rendererBtnClicked", btnClickHandler);
    private function btnClickHandler(event:MouseEvent):void
              //Write your logic here
    </mx:Application> 
    If you want to pass data along with the event then create a Custom Event Class so that you can pass data along with the event Object.
    Thanks,
    Bhasker
    Message was edited by: BhaskerChari

Maybe you are looking for