Opaque to opaque mapping in ESB

I need to fetch a file with the FTP adapter, and pass it unchanged to another location through an FTP adapter. In other words, I am simply copying the input file to the output destination.
What is the most efficient way to do this? I assumed that I should indicate that both the input and output schemas are opaque. However, when I did this, with either no transformation, or with a straight-through transformation, no data arrives in the output file.
How can I do this simple copy?

I need to fetch a file with the FTP adapter, and pass it unchanged to another location through an FTP adapter. In other words, I am simply copying the input file to the output destination.
What is the most efficient way to do this? I assumed that I should indicate that both the input and output schemas are opaque. However, when I did this, with either no transformation, or with a straight-through transformation, no data arrives in the output file.
How can I do this simple copy?

Similar Messages

  • XSL mapping in ESB flow

    I created an ESB flow that uses a file adapter service to read a simple xml file in and map required data to a Soap service. I was forced to map all fields for the input to the soap service, either by "hard coding" values in the xsl or modifying the schema of the incoming file to include all fields and then add mappings. If I didn’t map something to all the fields, the flow would complain and not invoke the soap service. The error message would reference: expected field1 and found field2. All elements are defined as Nillable=true in the wsdl, so I’m not sure why we would be required to map to it. Even if the data being mapped is null, it requires the mapping exist.
    I just wanted to make sure there is not another setting that I’m missing somewhere or if this is expected behavior I’m not aware of.

    I guess I am expecting that if I don't map anything to the target within the XSL Mapper, it will create the empty tag similar to how the test application does in OAS or JDeveloper. For example: The payload created in ESB leaves the tag out completely if that field is not mapped. When testing a webservice, you have the capability of checking whether to include a field/node or not before invoking, if you uncheck not to include, the tag is still created, its simply empty. I would have expected similar behavior in ESB mapping. Below the fields effectiveDate and version are not mapped and in the JDev test they are unchecked, so are considered "not included".
    Here is the payload created from XSL Mapper in ESB:
    <ns1:addAddressBookElement xmlns:ns1="http://oracle.e1.sbf.JPR01000/types/">
    <ns1:entityTypeCode>E</ns1:entityTypeCode>
    <ns1:businessUnit>ESB137</ns1:businessUnit>
    <ns1:entityName>Test ESB Flow for Iteration3</ns1:entityName>
    <ns1:entityAddress>
    <ns1:address>
    <ns1:postalCode>80121</ns1:postalCode>
    <ns1:addressLine3/>
    <ns1:mailingName>ESB Test</ns1:mailingName>
    <ns1:countyCode/>
    <ns1:addressLine4/>
    <ns1:countryCode>US</ns1:countryCode>
    <ns1:addressLine2/>
    <ns1:stateCode>CO</ns1:stateCode>
    <ns1:city>Denver</ns1:city>
    <ns1:addressLine1>123 Main</ns1:addressLine1>
    </ns1:address>
    <ns1:entity>
    <ns1:entityLongId/>
    <ns1:entityTaxId/>
    <ns1:entityId>0</ns1:entityId>
    </ns1:entity>
    </ns1:entityAddress>
    <ns1:phones>
    <ns1:phoneNumberType>HOM</ns1:phoneNumberType>
    <ns1:phoneAreaCode>303</ns1:phoneAreaCode>
    <ns1:phoneNumber>333-333</ns1:phoneNumber>
    </ns1:phones>
    </ns1:addAddressBookElement>
    and here is the payload created from testing the WebService in JDev.
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://oracle.e1.sbf.JPR01000/types/">
    <ns1:addAddressBookElement>
    <ns1:entityTypeCode>E</ns1:entityTypeCode>
    <ns1:businessUnit>30</ns1:businessUnit>
    <ns1:effectiveDate xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:nil="true"/>
    <ns1:entityName>Test No Date</ns1:entityName>
    <ns1:entityAddress>
    <ns1:address>
    <ns1:postalCode>80121</ns1:postalCode>
    <ns1:addressLine3 xmlns:ns3="http://www.w3.org/2001/XMLSchema-instance" ns3:nil="true"/>
    <ns1:mailingName>Test no date</ns1:mailingName>
    <ns1:countyCode xmlns:ns4="http://www.w3.org/2001/XMLSchema-instance" ns4:nil="true"/>
    <ns1:addressLine4 xmlns:ns5="http://www.w3.org/2001/XMLSchema-instance" ns5:nil="true"/>
    <ns1:countryCode>US</ns1:countryCode>
    <ns1:addressLine2></ns1:addressLine2>
    <ns1:stateCode>CO</ns1:stateCode>
    <ns1:city>Denver</ns1:city>
    <ns1:addressLine1>121 Main</ns1:addressLine1>
    </ns1:address>
    <ns1:entity xmlns:ns6="http://www.w3.org/2001/XMLSchema-instance" ns6:nil="true"/>
    </ns1:entityAddress>
    <ns1:version xmlns:ns7="http://www.w3.org/2001/XMLSchema-instance" ns7:nil="true"/>
    <ns1:phones>
    <ns1:phoneNumberType>HOM</ns1:phoneNumberType>
    <ns1:phoneAreaCode>303</ns1:phoneAreaCode>
    <ns1:phoneNumber>334-5769</ns1:phoneNumber>
    </ns1:phones>
    </ns1:addAddressBookElement>
    </soap:Body>
    </soap:Envelope>

  • Dynamically provide Transformation Map to ESB

    Hi
    My requirement is to create a "black box" module which takes in
    1) custom mapping (XSL file)
    2) DB Key (bind value)
    3) DB Query
    Can we create a Generic ESB service which would take all these values and return the output xml after applying the transformation XML ?
    The whole module acts as a web service to extract the data from DB in custom format.
    My Queries are :
    --->can we build a Routing service with transformation Map file value provided dynamically ?
    --->Can we provide DB adapter Query and bind value dynamically in DB Adapter ?
    are there any other alternatives to explore ?
    Thanks in advance
    Pradeep

    I dont know the data needed at design time, only know it at runtime. Its HR related. Depending on customizing one infotype can have several sub-infotype. Today we got 5 sub-infotypes, next year maybe 8. I dont want to hardcode this.
    I know I can dynamically add nodes to the context. But I dont know whether dynamically added nodes can be mapped to the view controller context.
    As a workaround I could add those nodes to the view controller context only but the data represented by the nodes is read in the component controller and might be used in other views too.

  • Issue using cross dissolve in my 'top row' edit

    Hi, in the opening of my video I have an opaque map with footage of a swimming pool behind.
    To create this, I have used the swimming pool footage on my bottom row of the timeline and the map (a still image) on the top row. I am trying to add a cross dissolve to the end of the map footage so the transition between the map disappearing and the pool being shown in full is not so sharp.
    However, I cannot add a cross dissolve to the top row edit in the same way I can to the bottom row.
    I have recreated the problem below.
    1 - When adding to the top row, the cross dissolve highlights the whole clip.
    2 - when I drop the cross dissolve in, it appears at the start and end of the clip and creates a black box behind the clip on the timeline. When this box appears, I get a quicktime error when I try to share the film. I can then delete either of the cross dissolves, but I cannot delete the black box
    3 - when I add the cross dissolve to my bottom row, I have no such problems. The dissolve drops easily between two clips.
    This is not an issue with the length of my top row clips. I have tested and checked.
    This seems to be a bug when adding cross dissolve to a top row edit.
    Has anybody else experienced this? Any ideas why this happens?
    Thanks, Dan

    ledanjohnson wrote:
    Thanks for putting me right on the background box Luis.
    I re-rendered, but this hasn't fixed my problem.
    However I now think that the problem is with the map image. When I remove it, I can share my file.
    Two things to try:
    1) Don't rerender; turn off background rendering; delete render files once more and try
    2) You may be right that the problem may be with the map image. So: what format, and size is it?
    Does the export work if you replace it with some other image (but otherwise do the same edit you wanted)?
    If you want, send me the file by e-mail and I will try it here. (My address is in my profile)

  • How to eliminate inserting  Duplicate rows into database using JDBC Adapter

    File->Xi->JDBC
    In above Scenario if the file has two rows their values are identical, then how can we eliminated inserting  Duplicate rows into database using JDBC Adapter

    Database is a consumer of a SERVICE (SOA!!!!!!).
    Database plays a business system role here!!!!
    Mapping is part of an ESB service
    Adaptor is a technology adapted to ESB framework to support specific protocol.
    ESB accomplish ESB duties such as transformation, translation, routing. Routing use a protocol accepted by the consumer. In a JDBC consumer it is JDBC protocol and hence it a JDBC adaptor.
    There is clear separation on responsibilities among business system and ESB. ESB do not participate in business decision or try to get into business system data layer.
    So who ever are asking people to check duplicate check as part of mapping (an ESB service) may not understand integration practice.
    Please use an adaptor module which will execute the duplicate check with business system in a plug and play approach and separate that from ESB service so that people can build integration using AGILE approach.
    Thanks

  • How to convert XML data into binary data (opaque data)

    Hi,
    I am trying to develop a process that delivers files after reading data from a database.
    However, it is required not to deliver the data immediately. We want to perform some checks before the files get written.
    So the way we want to design this is,
    1. Read data from database (or any other input). The data is in XML format (this is a requirement, as in general, we have xml data)
    2. This data is written, opaquely, to a JMS queue that can store binary data, along with what is the filename of the file that would be written (filename is passed using JMS Headers)
    3. When required, another process reads the JMS queue's binary data, and dumps into a file
    The reason I want to use opaque data while inserting in the JMS queue is, that enables me to develop a single process in Step 3 that can write any file, irrespective of the format.
    My questions are
    1. How to convert the xml data to opaque data. In BPEL I may use a embedded java, but how about ESB. Any other way....?
    2. how to pass filename to the jms queue, when payload is opaque. Can I use a header attribute...custom attributes?
    3. Which jms message type is better for this kind of requirement - SYS.AQ$_JMS_BYTES_MESSAGE or SYS.AQ$_JMS_STREAM_MESSAGE

    Ana,
    We are doing the same thing--using one variable with the schema as the source of the .xsl and assigning the resulting html to another variable--the content body of the email, in our case. I just posted how we did it here: Re: Using XSLT to generate the email HTML body
    Let me know if this helps.

  • I keep getting message "mozila Firefox not responding." It takes minutes to down load a site - some times it just gets in a loop and never down loads. Then when I try to click on it again screen goes opaque and i get the same message.

    I 'm getting message "Mozila Firefox not responding." It takes minutes to down load a site - some times just gets in a loop and never down loads. The little circle at top just keeps going round in circles .
    Then when I try to click on the screen again the screen goes opaque and I get the same message re " Mozilla Firefox not responding" - and it is minutes before I can get back in to close down screen.
    I have downloaded Fire fox version 4 and this is still happening.

    See:
    * http://kb.mozillazine.org/Error_loading_websites

  • When I go click on a specific "Sent" message, all the lettering on the screen fades to an opaque, an hourglass icon appears, & nothing happens.

    When I open the window for all my "sent" messages and click on a specific message, nothning happens. Instead, the lettering on the list of "sent" messages fades to an opaque, and an hourglass iconn appears. When this happens, I can't even close out Thunderbird to start up again. Sometimes if I wait up to a minute or so, the message will appear. Usually, I control/alt/delete, and start all over again. This has only started happening in the past few weeks. During this same time, another problem has appeared. I use google and Youtube to watch a lot of old TV shows. Now, the Yahoo search appears, and the results include many items I don't wish to see. FYI, I use e-mail a lot, receiving and sending up to a dozen messages a day.

    re'' During this same time, another problem has appeared. I use google and Youtube to watch a lot of old TV shows. Now, the Yahoo search appears,''
    I presume you are refering to the Thunderbird search facility that allows you to 'Search google for', but now it says 'search Yahoo for'.
    When you enter something and select 'search Yahoo for' you will see a list of icons on the left side, currently the yahoo icon is selected and at the bottom the heart icon is also red.
    You can select any of those icons to change to another search engine.
    select the google icon, then at the bottom on the left, look for the heart icon, it will appear white with black outline. Click on the heart icon to change it to red. This will set google as default.
    Now close the search and retry, this time it should say 'Search google for'.

  • Is it possible to have an Opaque Border

    Is it possible to have a transparent border? I'm asking because I'm putting a component into one of Hans Mullers wizzzy MultiSplitPanes which in turn is opaque because It's used inside a TabbedPane (XP colours these with a white background gradient .i.e. not dialog grey).
    The tree with scrollpane weren't quite centered so a slapped an empty border on it with insets to make it look square, but the border - even empty ones appear opaque when used inside a transparent component?! Anyone seen this before?
    nb.I'd guess it would be possible to nest the scrollpane inside yet another transparent panel with a gridbag insets of (2,2,3,2).. but that seems even more of a pain just to shuffle up one pixel.
    This should illustrate the problem, you shouldnt see any grey around the tree:
    import javax.swing.*;
    import javax.swing.border.EmptyBorder;
    import java.awt.*;
    public class BorderShouldNotBeSeen {
        public static void main(String[] args) {
            JFrame frame = new JFrame();
            JPanel panel = new JPanel();
            frame.getContentPane().add(panel);
            // make it really obvious, should see red right up to the darker scrollpane/tree border
            frame.getContentPane().setBackground(Color.RED);
            panel.setOpaque(false);
            // just BorderFactory.createEmptyBorder() didnt cut it.. so then I used..
            class MyBorder extends EmptyBorder {
                public MyBorder(Insets insets) {
                    super(insets);
                public boolean isBorderOpaque() {
                    // ..guess what it still looks opaque!
                    return false;
            JScrollPane treePane = new JScrollPane(new JTree());
            treePane.setBorder(BorderFactory.createCompoundBorder(
                    new MyBorder(new Insets(10, 10, 11, 10)), treePane.getBorder()));
            panel.add(treePane);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setVisible(true);
    }- Richard

    Wow, yes that fixes it - obvious when you think about it, the borders were just increasing the insets on the component. Just didn't see it.. Thanks.

  • How do I get my pages template content to show up correctly? It just shows up in opaque pink!

    When I select my template to use in pages, the images and fill in text does not show up at all - just opaque images. Please help! Thank you!

    @fruhulda:
    Thank you for your follow up.
    I tried using an existing Pages template. The Pages version is 3.0 ('98) and my MacOs system is 10.6.8. Any pointers you could offer would be most appreciated.
    Thanks!

  • An Image JPanel, A semi-transparent JPanel, and non-opaque components

    This is a more intelligent re-asking of the question I posed here: http://forum.java.sun.com/thread.jspa?threadID=579298&tstart=50.
    I have a class called ImagePane, which is basically a JPanel with an image background. The code is much like the ImagePanel posted by camickr, discussed in this topic: http://forum.java.sun.com/thread.jspa?forumID=57&threadID=316074 (except mine only draws the image, it does not tile or scale it).
    On top of my ImagePane, I can place another component, TransparentContainer. This again extends JPanel, only a color is specified in the constructor, and it is drawn at about 70% opacity. This component is meant to help increase the readability of text components that blend with the background image, without blocking out the background image completely.
    This works very well, until I need to add a component, like, say, a non-opaque JRadioButton in a ButtonGroup. When you select a new JRadioButton at runtime, the semi-transparent JPanel fills with a combination of a completely opaque color (the one specifies to the TransparentContainer) and garbage from the non-opaque component being redrawn.
    I have noticed that the UI is restored to being non-messed up if you place another application window on top of it and then move it. So apparently, one solution is to redraw the entire UI, or just the part that has the JRadioButton on it, every time the radio button is clicked. However, this seems unnecessarily complicated. It seems to me that I am missing something in my TransparentContainer's paintComponent() method. Does anyone have any ideas?
    Here is my TransparentContainer code, if it will help:
    import java.awt.AlphaComposite;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import javax.swing.JPanel;
    public final class TransparentContainer extends JPanel
         /* Private Fields: For use only by this class.
          *  These fields hold information needed by more
          *  than one method of this class.
         private boolean fullTransparencyEnabled;
         private Color baseColor;
         private Color outerBorderColor;
         private Color innerBorderColor;
         private int obw;
         private int ibw;
         private int cbw;
         /* -- START OF METHODS -- */
         /* public TransparentContainer(Color color, boolean fullTrans)
          *   Initiallizes the transparent container object
          *   with 'color' as its base color.
         public TransparentContainer(Color color, boolean fullTrans)
              fullTransparencyEnabled = fullTrans;
              baseColor = color;
              Color borders[] = findBorderColors();
              outerBorderColor = borders[0];
              innerBorderColor = borders[1];
              obw = 3;
              ibw = 1;
              cbw = obw + ibw;
         /* private Color[] findBorderColors(Color base)
          *   Calculates the colors for the outer and inner
          *   borders of the object based on the base color.
         private Color[] findBorderColors()
              Color borders[] = new Color[2];
              int colorData[] = new int[9];
              colorData[0] = getBaseColor().getRed();
              colorData[1] = getBaseColor().getGreen();
              colorData[2] = getBaseColor().getBlue();
              colorData[3] = colorData[0] - 50;          // outerBorder red
              colorData[4] = colorData[1] - 45;          // outerBorder green
              colorData[5] = colorData[2] - 35;          // outerBorder blue
              colorData[6] = colorData[0] + 30;          // innerBorder red
              colorData[7] = colorData[1] + 30;          // innerBorder green
              colorData[8] = colorData[2] + 20;          // innerBorder blue
              /* Make sure the new color data is not out of bounds: */
              for (int i = 3; i < colorData.length; i++)
                   if (colorData[i] > 255)
                        colorData[i] = 255;
                   else if (colorData[i] < 0)
                        colorData[i] = 0;
              borders[0] = new Color(colorData[3], colorData[4], colorData[5]);
              borders[1] = new Color(colorData[6], colorData[7], colorData[8]);
              return borders;
         /* public Color getBaseColor()
          *   Returns the baseColor of this object.
         public Color getBaseColor()
              return baseColor;
         /* public Color getOuterColor()
          *   Returns the outerBorderColor of this object.
         public Color getOuterColor()
              return outerBorderColor;
         /* public Color getInnerColor()
          *   Returns the innerBorderColor of this object.
         public Color getInnerColor()
              return innerBorderColor;
         /* public boolean getFullTransEnabled()
          *   Returns whether or not this object will render
          *   with all of its transparency effects.
         public boolean getFullTransEnabled()
              return fullTransparencyEnabled;
         /* protected void paintComponent(Graphics g)
          *   Paints the component with the borders and colors
          *   that were set up in above methods.
         protected void paintComponent(Graphics g)
              Graphics2D g2d = (Graphics2D) g;
              AlphaComposite alphaComp;
              g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
              g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
              g2d.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION,
                                            RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
              g2d.setColor(getBaseColor());
              /* Draw the main body of the component */
              if (getFullTransEnabled())
                   alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f);
                   g2d.setComposite(alphaComp);
              else
                   alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f);
                   g2d.setComposite(alphaComp);
              g2d.fillRect(cbw, cbw, super.getWidth() - 2 * cbw, super.getHeight() - 2 * cbw);
              alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f);
              g2d.setComposite(alphaComp);
              /* Draw the inner border: */
              g2d.setColor(getInnerColor());
              g2d.fillRect(obw, obw, ibw, super.getHeight() - obw * 2); // left border
              g2d.fillRect(obw, obw, super.getWidth() - obw, ibw); // top border
              g2d.fillRect(super.getWidth() - cbw, obw, ibw, super.getHeight() - obw * 2); // right border
              g2d.fillRect(obw, super.getHeight() - cbw, super.getWidth() - obw * 2, ibw); // bottom border
              /* Draw the outer border: */
              g2d.setColor(getOuterColor());
              g2d.fillRect(0, 0, obw, super.getHeight()); // left border
              g2d.fillRect(0, 0, super.getWidth() + obw, obw); // top border
              g2d.fillRect(super.getWidth() - obw, 0, obw, super.getHeight()); // right border
              g2d.fillRect(0, super.getHeight() - obw, super.getWidth(), obw); // bottom border
              alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f);
              g2d.setComposite(alphaComp);
              g2d.dispose();
    }

    I added the main method to your TransparentContainer class ...
         public static void main(String[] args) {
              JFrame f = new JFrame("test transparent container");
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              TransparentContainer tc = new TransparentContainer(Color.RED, true);
              JLabel label = new JLabel("Hello, World!");
              tc.add(label);
              f.getContentPane().add(tc);
              f.setSize(800, 600);
              f.setVisible(true);
         }...using the code you posted the label was not shown. I modified your paintComponent(Graphics g) method and I did this (see the areas in bold):
         /* protected void paintComponent(Graphics g)
          *   Paints the component with the borders and colors
          *   that were set up in above methods.
         protected void paintComponent(Graphics g)
              // Call super so components added to this panel are visible
              super.paintComponent(g);
              Graphics2D g2d = (Graphics2D) g;
              AlphaComposite alphaComp;
              g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
              g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
              g2d.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION,
                                            RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
              g2d.setColor(getBaseColor());
              /* Draw the main body of the component */
              if (getFullTransEnabled())
                   alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f);
                   g2d.setComposite(alphaComp);
              else
                   alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f);
                   g2d.setComposite(alphaComp);
              g2d.fillRect(cbw, cbw, super.getWidth() - 2 * cbw, super.getHeight() - 2 * cbw);
              alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f);
              g2d.setComposite(alphaComp);
              /* Draw the inner border: */
              g2d.setColor(getInnerColor());
              g2d.fillRect(obw, obw, ibw, super.getHeight() - obw * 2); // left border
              g2d.fillRect(obw, obw, super.getWidth() - obw, ibw); // top border
              g2d.fillRect(super.getWidth() - cbw, obw, ibw, super.getHeight() - obw * 2); // right border
              g2d.fillRect(obw, super.getHeight() - cbw, super.getWidth() - obw * 2, ibw); // bottom border
              /* Draw the outer border: */
              g2d.setColor(getOuterColor());
              g2d.fillRect(0, 0, obw, super.getHeight()); // left border
              g2d.fillRect(0, 0, super.getWidth() + obw, obw); // top border
              g2d.fillRect(super.getWidth() - obw, 0, obw, super.getHeight()); // right border
              g2d.fillRect(0, super.getHeight() - obw, super.getWidth(), obw); // bottom border
              alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f);
              g2d.setComposite(alphaComp);
              // Do not dispose the graphics
              // g2d.dispose();          
         }...seems to work fine now. Perhaps you should also add methods or additional constructors so the user can easily change the transparency level...and add some javadoc comments to your constructors ...at a first glance I did not know what fullTrans was
    public TransparentContainer(Color color, boolean fullTrans)good luck!!

  • Non-opaque colours

    Greetings,
    This question is a bit of a sequel to this other thread. The last couple of days
    I've been trying to find visual 'pleasing' way to show an 'alert' or 'alarm'
    status for some real time processes. With the help of Camickr I started
    off using a glass pane that simply draws a non-opaque red colour in
    front of an entire JInternalFrame. I noticed a terrible, unacceptable
    slowdown w.r.t. the drawing of those real time processes.
    I experimented a bit more and I came to the conclusion that everything
    done using non-opaque colours is unusable if you want to have anything
    drawn fast (~100 times per second). It simply isn't fast enough. All I do
    is redraw a couple of JPanels with those glass panes in front of them.
    Using opaque colours or other tricks to show an 'alarm' status are fast
    enough.More than fast enough, i.e. I've got plenty of time to show an
    abundance of other information. It's just those non-opaque colours that
    are a show stopper.
    Has anyone else noticed this behaviour (MS Windows and Linux)?
    Has anyone else found a workaround to speed things up considerably?
    kind regards,
    Jos

    I don't use the javax.swing.Timer but I do usequite a few threads:
    I've tried to compare the difference between using a
    Swing Timer and and Thread for animation and I didn't
    notice any difference in animation speed. (I just
    prefered a Timer because I think its easier to
    understand and control the timing of events.Yes I do use TImers, the java.util.Timer class and I schedule them with
    the tasks that need to be run. Quite a lot of those tasks have nothing to
    do with Swing, just the display stuff which can be en/disabled by the user.
    I use quite a lot of those java.util.Timer objects because the device I'm
    monitoring is quite a complex device with up to eight "sub devices".
    The device itself can be monitored quite slowly: a thermometer, three
    A/D colour components, a voltage value, eight bits of digital input and
    a digital counter value. Those "sub devices" produce digital colour values:
    either sRGB or Lab values as well as an "alarm status" values. Those
    sub devices must be sampled quite often. My old view handled everything
    quite well but I want the view to be more appealing to the users. Hence
    this topic.
    However, I have compared using a single Timer to animate 6
    components at once, vs 6 Timers to animate a single component
    each. A single Timer is almost twice as fast at repainting the
    components animation as measured by the time it takes the
    components to travel its vertical distance.I keep your remark in mind. Maybe I can "bundle" some of those "monitoring"
    tasks using a single timer. The problem is that I monitor that device using
    a serial line where everything has to be sequenced. I don't want any
    congestion on that part (which has nothing to do with Swing so it renders
    this thread (sic) totally off topic ;-)
    [ snipped some code ]
    So I guess I'm suggesting that you try to merge your multiple Threads
    into a single Thread.I read you; the trouble is (see above) that those 'pulling from the device',
    'pushing into the controller' thingies are totally independent events/tasks.
    As the new view runs now, it is slowing down the entire machinery.
    I never realized (I'm not a Swing guru) that all those visuals take up so
    much time.
    thanks a bunch for your reply and
    kind regards,
    Jos
    ps. I'll play with your code and see what I can learn from it.

  • Painting on a layer but the paint is not opaque..it is pale and transparent.  How can I get paint to be more intense and opaque to cover part of the picture?  I have a MAC and updated Photoshop CC.

    Why is any paint color I choose with paint brush not opaque while painting on a layer?  I want to cover or paint part of a picture on the first layer.  Using MAC and latest Photoshop CC

    Reset the Paint Tool as shown in the screenshot:
    If you are painting on a Layer, check the Opacity and Blend mode in the Layers Panel.  Blend Mode: Normal  Opacity and Fill: 100%
    Gene

  • Error while Deploying Opaque view

    Hi,
    I have created an opaque view by selecting the New Physical table...option by right clicking on the database schema. I have written a statement by selecting the Table type as SELECT in the Physical Table dialog box as follows,
    CREATE VIEW <view name> AS <select statement> where my select statement is like this "select * from emp".
    When i'm trying to deploy the view i'm getting the following error:-
    Details: [nQSError: 17001] Oracle Error code: 928, message: ORA-00928: missing SELECT keyword
    at OCI call OCIStmtExecute.
    [nQSError: 17011] SQL statement execution failed.
    Can i know where i'm doing the mistake. Your help is greatly appreciated.
    Thanks,
    Kumar.

    Hi,
    The problem caused because i used the syntax,
    CREATE VIEW <view name> AS <select statement>
    but we need to use only the select statement in the initialization block.

  • Reading Opaque data from jms queue  and decoded  in java embedding

    Hi ,
    Objective:Fetch text message from queue and print it from java embedding in BPEL
    I am fetching text message from a jms queue using JMS adapter in BPEL.Then converting the opaque data(Base64 binary)to string using java embedding.My build got successful but I am getting runtime error at the time of deployment.
    I have added fabric-runtime.jar file into SCA-INF\lib folder as well as project library directory.
    <extensionActivity>
    <bpelx:exec name="Java_Embedding1" version="1.5" language="java">
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>
    <![CDATA[//Write your java code below e.g.        
         System.out.println("Hello, World");       
    //   String input = ((Element)getVariableData("Receive1_Consume_Message_InputVariable")).getTextContent();              
      // String inputName = (String)getVariableData("input");     
      String input = (String)getVariableData("Receive1_Consume_Message_InputVariable");            
    //Receive1_Consume_Message_InputVariable.opaque          
          System.out.println("input:"+input);          
          addAuditTrailEntry(input);           
          Base64Decoder Decoder = new Base64Decoder();             
         try {            
          String decoded = Base64Decoder.decode(input);            
          setVariableData("Variable_opaque_decoded",decoded);            
          addAuditTrailEntry(decoded);           
    catch(UnsupportedEncodingException uee)
    uee.printStackTrace();
    }]]>
    </bpelx:exec>
    </extensionActivity>
    Error:
    Error deploying archive sca_JMSToDBInsert_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    HTTP error code returned [500]
    Error message from server:
    There was an error deploying the composite on AdminServer: Error occurred during deployment of component: BPELProcess1 to service engine: implementation.bpel, for composite: JMSToDBInsert: ORABPEL-05250
    Error deploying BPEL suitcase.
    error while attempting to deploy the BPEL component file "C:\Oracle\Middleware\user_projects\domains\soa_domain\servers\AdminServer\dc\soa_0fb06e23-bac3-4753-aae9-0fc4b54b4dd1"; the exception reported is: java.lang.RuntimeException: failed to compile execlets of BPELProcess1
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    Check server log for more details.
    Error deploying archive sca_JMSToDBInsert_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    #### Deployment incomplete. ####
    Error deploying archive file:/C:/SOA Suite/SOA_POC/Client2JMSapps/Client2JMSapps/JMSToDBInsert/deploy/sca_JMSToDBInsert_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    Could you guys please help me regarding this?
    Thanks & Regards,
    Souvik
    Edited by: Souvik Pal on Apr 16, 2012 9:40 PM

    You probably want to try the SOA Suite forum for OSB questions.
    SOA Suite
    There is an excellent book also:
    http://jeffdavies.org/
    The documentation goes over the fundamentals, but the book will be better for step by step examples.

Maybe you are looking for