Intercepting FTP events in XDB

Hi,
I would like to use the FTP capabilities to upload, download and change files on my XML database. The real complexity comes in though, when I try to implement versioning in the XML DB. I am looking for a simple and elegant solution that does not require huge adjustments to the database or any hardcore development.
What I would like to do is, when dragging a file into a specific folder, do the following:
1. If the file is a new file then: add it, makeversion it and add it's resource id to a table.
2. If the file exists then: check it out, update it, check it in and add it's resource id to a table.
I have tried playing around with the triggers that watch the resource and path views but they do not seem to fire when using FTP. I have also tried creating new triggers that watch the XDB$RESOURCE table but it also does not fire.
Is there any way of capturing the FTP events and runnning scripts to control the way the event executes?

Hi Marco,
The XFILES demo which you pointed me to is EXCELLENT!
Unfortunately, this does not help me as I am using 10g.
A crucial package DBMS_XEVENT is missing from 10g and I have been unable to find any related information for this version.
It seems that I can't acheive what I need to without building and deploying a small application to the server.
If anyone has managed to do this using 10g, your input would be highly appreciated.
Thanks for your help Marco... cheers!

Similar Messages

  • How to intercept all events sent to subcomponents of a JFrame

    Hello.
    The title says everything, i think.
    I need to make a gui where there would be a user validity timeout if no action is done during a certain period. (then, a modal dialog would show up, asking for a login/pass).
    I could do that by modifying each and every swing components to have some date of last use" data, and a thread in the window, bla bla bla... but this is too heavy and crappy to me.
    What i would like to do is intercept all events, note the date, and send them normally to who they were sent to originally.
    Has anyone an idea?

    okay, i've succeeded...
    here is the source, in case some ever encounter the problem:
    public class TimeoutGlassPane extends javax.swing.JComponent
         java.awt.Component     here=this;
         /** Creates a new instance of TimeoutGlassPane */
         public TimeoutGlassPane()
              addMouseListener(new javax.swing.event.MouseInputAdapter()
                   public void mouseClicked(java.awt.event.MouseEvent e)
                        dispatch(e);
                   public void mousePressed(java.awt.event.MouseEvent e)
                        dispatch(e);
                   public void mouseReleased(java.awt.event.MouseEvent e)
                        dispatch(e);
                   void dispatch(java.awt.event.MouseEvent e)
                        java.awt.Component component = javax.swing.SwingUtilities.getDeepestComponentAt(((javax.swing.JRootPane)getParent()).getLayeredPane(),e.getX(), e.getY());
                        java.awt.event.MouseEvent mouseEvent=javax.swing.SwingUtilities.convertMouseEvent((java.awt.Component)(e.getSource()), e, component);
                        component.dispatchEvent(mouseEvent);
         protected void paintComponent(java.awt.Graphics g)

  • Intercepting Windows event messages

    Is there an easy way to Intercept Windows event messages without having to write a dll to do it?
    The command that I looking to get is:
    WM_SYSCOMMAND
    I have a touch screen appliaction and I am tring to keep it from processing events when it is recovering from "sleep" mode. I need the screen to be on and no screen saver.
    Tim
    Johnson Controls
    Holland Michigan
    Solved!
    Go to Solution.

    This has probably already been handled by this request: http://forums.ni.com/t5/LabVIEW/Upconvert-VI-Requests/m-p/1402560#M546297

  • How to intercept touchscreen events

    Hi,Everyone
    I can use RegisterRawInputDevices, Monitor global Touch events, but is there any way you can intercept it?
    I try to write a touch screen gestures Software , used to control the desktop environment does not support touch software.
    Anything that can Intercept method,please let me know.
    thanks.
    Another: When you touch the screen, the mouse cursor will move, how to Ban it?

    看你英语不是很好,我就直接用中文说了吧,拦截可以用RegisterPointerInputTarget这个API,可以拦截所有touch消息,但是拦截后原来的消息就没办法传递下去,这就只能用InjectTouchInput模拟输出,但是这个模拟又很蛋疼,只能模拟第二次输入,会造成很多问题。。。总之你慢慢用这两个API折腾吧。。

  • OVS - intercept listener event

    Hi All,
    Is there any way to intercept the click event on the OVS of an Input-Field?
    I am not intersted in applying the OVS++ scenario, instead I wish to run my own code.
    Aviad

    Aviad,
    When you follow the steps for OVS, in the process you map view context to OVS custom controller. And during runtime, since this attribute is mapped to OVS context, you get the input help button for the input field.
    I dont think you'll get that if you dont use OVS at all.
    And the event (when you click on that input help) is handled by an internally (hidden from the developer) implementation of WDValueServices or some other class.
    So, AFAIK, the short answer is no.
    Sorry I couldnt be of more help.
    Regards,
    Rajit

  • Intercepting key events

    I've searched the board already for this topic but didn't find an answer.
    My problem is the following: I have a JTextField which adds a KeyAdapter. The KeyAdapter overrides KeyPressed()
    I want to check when a user enters a character to see its a char and not an int. I'm already able to check this with the KeyAdapter, but when a key is an int, I don't want it displayed in the JTextField but that's what I don't know how to do. I tried e.consume() but that doesn't work. Can anybody help me please?

    Use a keyTyped listener instead, then event.consume() will happen before the character gets placed in the text component.. Plus, if I hold the key down, only ONE key pressed event happens, so the first one could go thru your check, but all the rest will just go in the text component regardless:
    Your event really is being consumed, it's just the order of events in the different listener methods. Comment out the different key listener methods and see for yourself:
    import javax.swing.*;
    public class Test extends JFrame{
        public static void main(String[] args){
            new Test().setVisible(true);
        public Test(){
         getContentPane().setLayout(null);
         setSize(615,414);
         setVisible(false);
            JTextArea JTextArea1 = new JTextArea();
         getContentPane().add(JTextArea1);
         JTextArea1.setBounds(110,165,280,70);
         SymKey aSymKey = new SymKey();
         JTextArea1.addKeyListener(aSymKey);
        class SymKey extends java.awt.event.KeyAdapter{
         //public void keyPressed(java.awt.event.KeyEvent event){
            //    event.consume();
         //public void keyReleased(java.awt.event.KeyEvent event){
            //    event.consume();
         public void keyTyped(java.awt.event.KeyEvent event){
                event.consume();
    }

  • How to intercept a dataTips 'show' event (list control)?

    Hi people,
    I'm using  a list control with showDataTips property set to true, so as dataTips are automatically displayed when the text is too long for the row. The point is that I need to preserve this condition (i.e. I don't want dataTips to be displayed when the row entirely contains the text) but my goal is to delegate the datatips 'show' event to another control. However I cannot figure out how to intercept that event. As any UIComponent the list control dispatches a toolTipShow event but this doesn't regard dataTips
    I suppose I could just disable showDataTips and implement my own logics using the itemRollOver event. But, in that case, how to check whether the text is too long for the row?
    Thanks for any help,
    @+
    Marc

    You'd be better off posting this in the developer forums : https://devforums.apple.com/index.jspa

  • Event handling in LOV

    Hi There,
    We have a use-case where we need intercept the event of af:inputComboboxListOfValues component.
    I have table, which has three columns, Name, Description and Label.
    I have a LOV on Name column.
    When user change the value of Name column by selecting an value from dropdown, I need to do business validation, I show user the "Yes/No" popup with warning message, and base on the user's choice, either proceed with the change or stop the change.
    My problem is that I am unable to find a appropriate event to show the popup.
    I know there are several events in the af:inputComboboxListOfValues component, launchPopupEvent, returnPopupEvent and valueChangeEvent.
    1. If I show popup on launchPopupEvent, after the user click "Yes/No" button on the popup, the page will be refreshed and dropdwon doesn't show the item list.
    2. returnPopupEvent and valueChangeEvent event will be handled by framework in one request, there is no chance for user's interaction.
    I am not familiar with ADF event handling machenism, can anyone help me?
    Thanks in advance.
    Thunder
    Edited by: 984466 on 2013-3-7 下午4:59
    Edited by: 984466 on 2013-3-8 上午12:51

    Hi,
    first of all, never post questions regarding internal JDeveloper builds (11.1.1.7 is not released to public) on this public forum. You are from Oracle and therefore have internal channels for this (note that using internal builds the problem could be with the build and not necessarily the code alone).
    To your question:
    I don't understand why
    +"2. returnPopupEvent and valueChangeEvent event will be handled by framework in one request, there is no chance for user's interaction."+
    doesn't work. If you set the "name" column component to autosubmit="true" then the listener fires as soon as you move out of the field and you can raise the alert. The current row in the binding points to the row you changed the name for and as such the value can be unset (the value change listener shows you the before and after value)
    Frank

  • How to intercept posts on EventQueue to change for instance focusOwner?

    Hi all,
    I am subclassing EventQueue to intercept the event processing mechanism only to find out how focus events reach the KeyboardFocusManager. I can only see the dispatchEvent that obviously reaches dispatchEvent on KeyboardFocusManager. But I can't see who posts this type of events. I only see that InvocationEvent instances passing that are mainly related with repainting. But nothing that smells a bit like focus processing. Can anyone tell me who posts changes in the focus system (methods like Component.requestFocus, but I don't see where exactly). Or how I can see posts of that type on EventQueue.
    Many thanks,
    Marcel

    What are you calling the "Control Panel?"  If you are referring to the bottom row of apps on your home screen, you can move the apps by holding your finger on any app until they all jiggle.  Then with your finger move the apps around to suit your needs.
    If you are referring to the actual control center when you swipe up from the bottom of the screen, you can not alter anything in that.

  • Possible to receive event on disabled frame?

    I have an application that have many JFrame popups. After 15 minutes, the app will automatically lock all windows calling their setEnabled(false). A Lock window is displayed let user to relogin.
    When user click on any of open frame, I would like to display Locked frame by user's cursor. However, the inactive windows are not receiving any mouse event.
    Anyone have good idea on how to intercept mouse event on disabled JFrame?
    Thanks.

    817011 wrote:
    I have an application that have many JFrame popups. .. That is where you start to go wrong. Have just one <tt>JFrame</tt> & show other information as <tt>JDialogs</tt> or alternately include it in the main <tt>JFrame</tt> using a <tt>CardLayout</tt>, <tt>JTabbedPane</tt>, <tt>JDektopPane/JInternalFrame</tt> or similar.
    ..After 15 minutes, the app will automatically lock all windows calling their setEnabled(false). A Lock window is displayed let user to relogin.Put the login GUI into a modal <tt>JDialog</tt> and provide the <tt>JFrame</tt> as the parent.
    The user will not be able to access the <tt>JFrame</tt> until the <tt>JDialog</tt> is dismissed.

  • Prevent default behavior of events

    How can I prevent the default behavior of events?
    I know this concept from JavaScript or ActionScript where you could prevent the default behavior of an event by calling e.preventDefault().
    How can I achieve this in JavaFX?
    E.g. I have a KeyEvent on a TextArea and want to catch the Enter key and prevent it from positioning the cursor in the new line.
    I tried consume(), but it seems, it is the equivalent to e.stopPropagation().

    TextArea has a bug about mouse event handling: http://javafx-jira.kenai.com/browse/RT-17902, whereby the scrollpane enclosing the editable text eats events and so the events are not exposed to API users, not sure if this will also effect the key processing to the TextArea you are trying to perform. If the issue in 17902 is also causing the TextArea to not respond correctly to user defined key event processing, you can add an extra comment to that Jira to note it.
    Information on event handling can be found here: Re: Understanding Mouse Event Bubbling
    If TextArea event handling was working correctly, you should probably be able to do what you want by adding an EventFilter on the TextArea and consuming the event you want to capture. Doing this in an EventFilter so you can intercept the event in the capturing phase is preferable to trying to do it in an EventHandler during the bubbling phase. If try to consume the event in an EventHandler, it may not work because the event may already have been handled by the target node or the target node's children.

  • Stopping WindowClosing Event

    HI, I have a question about stopping WindowClosing Event from continuing to WindowClosed Event.
    I have a JFrame implementing WindowListener - and I'd like to stop frame from closing by intercepting WindowClosing Event (so it never reaches WindowClosed Event).
    Is there anyone who know how to do it?
    Thank you in advance.

    Once you set the default close operation as follows:
    setDefaultCloseOperation( DO_NOTHING_ON_CLOSE );
    You must explicitly close the window yourself. Something like:
    addWindowListener( new WindowAdapter()
         public void windowClosing(WindowEvent e)
              String message = "Do you want to close the window?";
              int result = JOptionPane.showConfirmDialog(parent, message, "Close Window", JOptionPane.YES_NO_OPTION);
              if (result == JOptionPane.YES_OPTION)
                   window.dispose();
    });

  • Detecting non-standard ftp usage (!= tcp 21) using IDSM2 5.0 & CN-MARS v3.4

    Hello,
    We recently installed our IDSMs and a MARS box to monitor our core traffic. I'm trying to set up a MARS "User Inspection Rule" to notify me when there is FTP traffic on a port other than port 21. Is there an easy way to do this?
    I don't see any IPS sigs that will trigger on normal FTP events(e.g. open data connection success, STOR and RETR request, etc.) I'm sure someone out there has already set up something like this before? Any help is appreciated.
    Ryan

    Take a look at sig 3171 to get a feel for how a custom signature might look, then create your own. To be honest, I've not done a lot of custom sigs...but looking on every port for ftp-like behavior seems like it might put quite a burden on your sensor.

  • How to track tab changed event

    hi friends ,
    i have created a JTabbePane and added few tabs like, addd tab, delete tab, modify tab.... etc
    how do i track the evnt when user select different tab . i have to perform few tasks when the tab selectio changes.. so how do i do that
    pls do help , thnks

    when you need to intercept an event look to methods
    add....Listener normally you find out what you need.
    Sometimes you have to look at
    getModel().add....Listeneryes , i tried what you said and it showed me all the listeners for that component , thanks once again for your valuable suggestion

  • Detecting keyboard events outside the application

    is it possible to click a key when the air app is out of focus, and will trigger an event in air?

    You may want to check the security documentation on that one.  I don't know of many non-OS apps that can intercept keyboard events without focus.  Keystroke sniffers on the other hand ....

Maybe you are looking for

  • Ipod Restore help. PLEASE. I'M DESPERATE

    Okay so I have an 80 gb IPod classic. Not sure what generation it is, but I've had it for about 6 years. It has all my music on it, some that I cannot get back unfortunately. I cannot remember the last time (if ever) that I voluntarily backed up the

  • Where is the subtitle option in iTunes 12.0.1

    Where is subtitle option in iTunes 12.0.1?

  • My iMac 10.9.1 3.06 Ghz Intel core 2 duo ejects DVD-Rs in iDVD without burning

    My iMac 21.5" from late 2009, while in iDVD, I go to burn on a -R DL and after about 20 seconds it ejects the disk and says to Insert a Recordable DVD.  I've been able to record to DL before (I don't know how many OS updates ago).  Any suggestions? 

  • Cal. Year/Quarter Values in Text

    Hi All, I have a report which displays Net Sales in Yearly Quarters wise Ex: 20131     20132     20133     20134 Query has included Cal. Year/Quarter infoobject, I've done setting to display as 'Text'  for Cal. Year/Quarter object properties in Bex.

  • Convert & compare date

    Hi, I have a date1 format in mm/dd/y and another date2 format in MMM dd yyyy. how do I convert date2 to mm/dd/yy ; so that I can do a comparsion of the 2 dates. thanks