What is the simplest way to invoke an ODI scenario from a webpage?
Hi folks
I have a requirement where I want number of people to be able to run certain ODI scenarios when they wish.
Now I don't wish to roll out ODI Operator to these users.
I'd like to create a simple web page, with a few links/buttons that will run ODI scenarios.
Now I understand I can set up a Web application server (eg Weblogic), deploy Axis2 to this and invoke scenarios as web services etc. But this is prohibitively expensive from a licensing point of view. (And open source app server is not an option).
I do have an apache server where I can host a simple web page. Is there a way I can get this to invoke scenarios? Or some other simple way I haven't considered?
Thanks for looking
ODI Web Services. You can broadcast your scenarios as web services. Here are some good reading.
http://www.rittmanmead.com/2008/02/delving-in-to-odis-web-services-support/
http://blogs.oracle.com/dataintegration/entry/best_practices_building_data_services_with_odi-ee
http://john-goodwin.blogspot.com/2009/04/odi-series-web-services.html
http://john-goodwin.blogspot.com/2009/04/odi-series-web-services-part-2.html
http://john-goodwin.blogspot.com/2009/05/odi-series-web-services-part-3.html
http://john-goodwin.blogspot.com/2009/05/odi-series-web-services-part-4.html
Similar Messages
-
What is the simplest way to get a xml-file from 10g R2 -database ?
Hi,
I'm new in xml, there are so many tools to work with xml:
what is the simplest way to get a xml-file from 10g R2 -database ?
I have : 10g R2 and a xsd.file to describe the xml-structure
thank you
NorbertThere is no automatic way to generate XML documents from an arbitary set of relational tables using the information contained in an XML Schema. Typically the easiest way to generate XML from relational data is to use the SQL/XML operators (XMLElement, XMLAGG, XMLAttribtues, XMLForest). There are many examples of using these operators in the forums You can validate the generated XML against the XML Schema by registering the XML Schema with XML DB and then using the XMLType.SchemaValidate() method
-
Hey there,
My specific task is to bring forward the "Swatches" window. I want to initiate this from my plugin code (C++). However, I may want to execute other menu items in the future, so understanding the simplest, most straightforward general mechanism would be great.
I've pieced together a sequence that could work using the Menu and Interface suites, but it seems more complicated than it should be and requires knowledge of the localized name of the menu item (incomplete and uncompiled sample code below). Is there a better way to do this?
// Get the menu item handle by walking all items to find the swatches item
long numMenuItems = 0;
sAIMenu->CountMenuItems( &numMenuItems );
AIMenuItemHandle menuItemHandle;
ai::UnicodeString localizedItemName;
for ( long menuItemIndex = 0; menuItemIndex < numMenuItems; ++menuItemIndex )
sAIMenu->GetNthMenuItem( menuItemIndex, &menuItemHandle );
sAIMenu->GetItemText( menuItemHandle, localizedItemName );
if ( localizedItemName == “Swatches” )
break;
AIBoolean bchecked =false;
sAIMenu->IsItemChecked( menuItemHandle,
&bchecked );
if ( !bchecked )
// Find the plugin responsible for adding and responding to the menu item
SPPluginRef swatchPlugin;
sAIMenu->GetMenuItemPlugin( menuItemHandle, &swatchPlugin );
// Construct and send a message to the plugin instructing it to execute as if the menu item were invoke by the user
AIMenuMessage message;
sSPInterface->SetupMessageData( swatchPlugin, &message.d );
message.menuItem = menuItemHandle;
SPErr result;
sSPInterface->SendMessage( swatchPlugin, kAIMenuCaller, kSelectorAIGoMenuItem, &message, &result );
sSPInterface->EmptyMessageData( swatchPlugin, &message.d );
Glen.That's a clever solution to a problem I'd never considered (but can see how others might need it) I can't think of a better way to invoke it though than what you're doing except maybe with some minor improvements. If you know the menu group, you can use AIMenuSuite::GetMenuGroupRange() to jump to that group in the overall list. Also, since menuitems seem extremely unlikely to change, you can probably cache the handle.
Beyond that, the usual suggestion I'd make it is to at least explore actions. Try recording an action and see if it even picks up when you display the Swatches panel. I'm guessing it doesn't record stuff like that, but who knows? -
I just want my phone photos to go to my desktop, but I don't want the desktop photos to go to the phone. What is the easiest setup?
ThxThey won't.
Make sure you are signed into iCloud with Photo Stream enabled on both OS X & iOS.
OS X: System Preferences > iCloud > check Photos > Options > check My Photo Stream (Shared too if you choose) > OK
iOS: Settings > iCloud > Photos > My Photo Stream - on (Shared too if you choose)
In iPhoto > Preferences > iCloud > check My Photo Stream (and Photo Sharing if you choose) then check Automatic Import. Leave Automatic Upload unchecked. -
What's the simplest way to export a single frame from an animated gif as gif?
i have an animated gif and wish to save a single frame as a non-animated gif.
in the past i've been achieving this by deleting all the frames i don't wish to export and deleting them before exerting, this seems very clumsy though so i figure there's a more sensible solution in there somewhere, but where?Thanks, Bill! Actually version 9 looks a little clearer than that, as it has two bold clear white paddles to mark the edge of the work area.
I was a little frustrated at first, because whatever I did, it still took a year and exported the entire video.
Then:
I caught sight of this teeny tiny box waiting for a tick from me, which said:
Share Work area Bar Only
We have lift-off
Thanks again. So much quicker than all that deleting ahnd hoping you don't accidentally say "yes" when prompted to save changes! -
What is the simplest way to make a movie from BufferedImages?
I have a 3d rendered animation from which I can grab BufferedImages of each frame. What is the simplest way I can create a movie from these images?
I've seen the JpegImagesToMovie.java file and not only is it suprisingly overcomplicated, it requires me to change the code so that I can get images from memory rather than from files.
Is there some simple way of creating a movie which requires a few statements? I'm also prepared to use QuickTime for Java. I don't care about the format, since I can just use any video converter to convert it to my desired video format.I recently came up with a simplified JpegImagesToMovie program. It generates QuickTime movies with a single video track output as a file. Input is a series of jpegs (currently as a list of file names, but easily modified to a take any form of jpeg data.) Since the compression used by the movie is JPEG, if you have an uncompressed image buffer, you'll need to convert that into jpeg data bytes with some quality setting. (Since its a movie file, go with something low if you have a lot of similar images.) This will even run without a full install of jmf--no native code is called (as far as I could tell..)
Here is the source code, sorry about the formatting!
import java.awt.Dimension;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.net.URL;
import java.util.Vector;
import javax.media.Buffer;
import javax.media.Format;
import javax.media.MediaLocator;
import javax.media.format.VideoFormat;
import javax.media.protocol.ContentDescriptor;
import javax.media.protocol.FileTypeDescriptor;
import com.sun.media.multiplexer.video.QuicktimeMux;
* This program takes a list of JPEG image files and converts them into a
* QuickTime movie.
* This was based on Sun's JMF Sample Code JpegImagesToMovie.java 1.3 01/03/13
* This code is an attempt to reduce the complexity to demonstrate a very basic
* JPEG file list to movie generator. It does not use a Manager or Processor
* class, so it doesn't need to implement any event listening classes. One
* advantage of this simplified class is that you can just link it with the
* jvm.jar file. (you might also need to track down the com.ms.security library
* stubs, use google. You'll need PermissionID.java and PolicyEngine.java.)
* I tried to get it to generate AVI files without success.
* These output files are could use further compression.
* A Vector of jpeg image paths was one way to do this--the appropriate
* methods can be overwritten to grab images from another source
* --zip file, http, etc.
* - Brad Lowe; Custom7; NuSpectra; 2/10/2005
* The existing Copyright from Sun follows.
* Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear facility.
* Licensee represents and warrants that it will not use or redistribute the
* Software for such purposes.
public class SimpleMovie
Vector images; // jpeg image file path list
VideoFormat format; // format of movie to be created..
// Sample code.
public static void main(String args[])
try
// change imageDir to the location of a directory
// of images to convert to a movie;
String imageDir = "images";
File d = new File(imageDir);
SimpleMovie imageToMovie = new SimpleMovie();
// change width, height, and framerate!
// Excercise: Read width and height of first image and use that.
imageToMovie.init(320, 240, 10.0f);
imageToMovie.setFiles(d);
File dest = new File("simple.mov");
imageToMovie.createMovie(dest);
System.err.println("Created movie " + dest.getAbsolutePath() + " "
+ dest.length() + " bytes.");
} catch (Exception e)
System.out.println(e.toString());
e.printStackTrace();
// return jpeg image bytes of image zIndex (zero-based index)
public byte[] getImageBytes(int zIndex) throws IOException
if (images == null)
return null;
if (zIndex >= images.size())
return null;
String imageFile = (String) images.elementAt(zIndex);
// Open a random access file for the next image.
RandomAccessFile raFile = new RandomAccessFile(imageFile, "r");
byte data[] = new byte[(int) raFile.length()];
raFile.readFully(data);
raFile.close();
return data;
// Call this before converting a movie;
// Use movie width, height;
public void init(int width, int height, float frameRate)
format = new VideoFormat(VideoFormat.JPEG,
new Dimension(width, height), Format.NOT_SPECIFIED,
Format.byteArray, frameRate);
// Set up the files to process
public void setFiles(Vector inFiles)
images = inFiles;
// point converter to jpeg directory. Only does one level,
// but could recurse, but then sorting would be interesting..
public void setFiles(File dir) throws Exception
if (dir.isDirectory())
if (images == null)
images = new Vector();
String l[] = dir.list();
for (int x = 0; x < l.length; x++)
if (l[x].toLowerCase().endsWith(".jpg"))
File f = new File(dir, l[x]);
images.addElement(f.getAbsolutePath());
// Crank out the movie file.
public void createMovie(File out) throws Exception
if (format == null)
throw new Exception("Call init() first.");
String name = out.getAbsolutePath();
QuicktimeMux mux = null; // AVI not working, otherwise would use
// BasicMux
if (out.getPath().endsWith(".mov"))
mux = new QuicktimeMux();
mux.setContentDescriptor(new ContentDescriptor(
FileTypeDescriptor.QUICKTIME));
} else
throw new Exception(
"bad movie file extension. Only .mov supported.");
// create dest file media locator.
// This sample assumes writing a QT movie to a file.
MediaLocator ml = new MediaLocator(new URL("file:"
+ out.getAbsolutePath()));
com.sun.media.datasink.file.Handler dataSink = new com.sun.media.datasink.file.Handler();
dataSink.setSource(mux.getDataOutput()); // associate file with mux
dataSink.setOutputLocator(ml);
dataSink.open();
dataSink.start();
// video only in this sample.
mux.setNumTracks(1);
// JPEGFormat was the only kind I got working.
mux.setInputFormat(format, 0);
mux.open();
// Each jpeg goes in a Buffer.
// When done, buffer must contain EOM flag (and zero length data?).
Buffer buffer = new Buffer();
for (int x = 0;; x++)
read(x, buffer); // read in next file. x is zero index
mux.doProcess(buffer, 0);
if (buffer.isEOM())
break;
mux.close();
// close it up
dataSink.close();
// Read jpeg image into Buffer
// id is zero based index of file to get.
// Always starts at zero and increments by 1
// Buffer is a jmf structure
public void read(int id, Buffer buf) throws IOException
byte b[] = getImageBytes(id);
if (b == null)
System.err.println("Done reading all images.");
// We are done. Set EndOfMedia.
buf.setEOM(true);
buf.setOffset(0);
buf.setLength(0);
} else
buf.setData(b);
buf.setOffset(0);
buf.setLength(b.length);
buf.setFormat(format);
buf.setFlags(buf.getFlags() | Buffer.FLAG_KEY_FRAME);
} -
What is the simplest way to get video from mini DV tapes into computer
My computer has no firewire connection. What is the simplest way to get the video from my camera (JVC GR-D340EK) ?
Mikeathome
Thanks for the reply.
The reason that I asked if this was a one time thing or not was related to my thoughts about asking you to look at the relative costs of have the DV data capture firewire done professional or by a friend versus going through looking for slots on your computer for a firewire card or purchasing a computer that still comes with a firewire port.
We will be watching for further developments.
Thanks.
ATR -
What is the simplest way to create slide show
What is the simplest way to create a slide show ? (Premiere Elements 12)
saploe
What computer operating system is your Premiere Elements 12 running on? Premiere Elements 12 Mac does not have a Slideshow option in its Elements Organizer 12. So, that situation would not yield the two choices of creating the slideshow in the Elements Organizer and taking it into Premiere Elements OR doing the whole project solely in Premiere Elements.
What is going into this slideshow....photos (how many, original pixel dimensions), videos (formats and duration), etc?
What is a description of your computer resources?
How do you intent to export this slideshow...
a. burn to DVD-VIDEO standard or widescreen on DVD disc
b. burn to AVCHD format on DVD disc
c. burn to Blu-ray disc format on Blu-ray disc
d. to file saved to the computer hard drive?
We will customize a reply based on the information that you supply.
Thanks.
ATR -
What is the simplest way to remove duplicates on both iMac and iPad2?
What is the simplest way to remove duplicate photos from both iMac & iPad2?
The implication here is that your music is only on the iPod, for if it is in iTunes, you need only do the restore. So you are really asking how you move the music from your iPod back into iTunes, so that when you restore it will go back to the iPod. Take a look at Para. 8 in this summary post I worked up.
-
what is the simplest way to transfer my music in iTune from my old computer to the new plz.
Move or copy the ENTIRE iTunes folder from the old computer to the new computer.
-
What is the best way to transfer my iphoto library from current imac to my new imac. Both imacs have iphoto 9.2.1
os on old imac is 10.6.8. os on new imac is 10.7.2. I want the albums and events to stay intact. I have 4500 photos and 79 videos. 14.9 gb. looking for some advice here. Thanks so much.Connect the two Macs together (network, firewire target mode, etc) and drag the iPhoto library intact as a single entity from the old Mac to the pictures folder of the new Mac - launch iPhoto on the new mac and it will open the library and convert it as needed and you will be ready move forward.
LN -
What are the different ways to back up your photos from iphoto using a MacBook Pro which does not have a disk drive?
Note - that no internet backup service has been proven to be safe and effective for backing up the iPhoto library - unless you personally have backup uyp an iPhoto library and restored it sucussfuly form one it should not be recommended - a large number of people have lost their photos trying it
LN -
What is the easiest way to export all tables data from Oracle to MS SQL Server?
Hello MS,
I would like to export all tables from Oracle 11.2 to MS SQL Server 2012 R1.
Using the tool "Microsoft SQL Server Migration Assistant v6.0 for Oracle" did not work for me because there are too many warnings and errors regarding the schema creation (MS cannot know it because they are not the schema designer). My idea is
to leave/skip the schema creation to the application designer/supplier and instead concentrate on the Oracle data export and MS SQL data import.
What is the easiest way to export all tables data from Oracle to MS SQL Server quickly?
Is it:
- the „MS SQL Import and Export Data“ Tool
- the “MS SQL Integration Services” Tool
- not Oracle dump *.dmp format because it is a propritery binary format
- flat file *.csv (delimited format)
Thanks!Hi lingodingo,
If you want to directly export all tables from Oracle database to SQL Server, I suggest you use SQL Server Import and Export Wizard. Because you just need to follow the wizard with GUI, this is the easiest way.
If you want to make some modification for the tables‘ data before loading to SQL Server, I suggest you use SQL Server Integration Services package. For more details, please refer to the following similar thread:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/38b2bed2-9d4e-48d4-a33f-1d9eed1c062d/flat-file-to-sql-server?forum=sqldatamining
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
What is the best way to create a database schema from XML
What is the best way to create a database schema from XML?
i have a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
Taking my C# furtherHi Saythj,
When mentioning "a database schema from XML", do you mean the
XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
Create an XML Schema Collection basing on your complex XML, you can find
many generating tools online to do that.
Create a Table with the above created schema typed XML column as below.
CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support -
What is the best way to call a pageflow action from JavaScript?
What is the best way to call a pageflow action from JavaScript?
Thanks,
JohnJohn,
How would I do this from a grid??? Unfortunately there are no JavaScript attributes
on any of the grid tags that I can see.
Thanks,
John
"John H" <[email protected]> wrote:
>
Thanks John!
"John Rohrlich" <[email protected]> wrote:
John,
If you want to put up a confirm dialog before calling an action from
an
anchor it is done as follows.
Here is an example from code of mine that deletes a customer order,if
the
user confirms the delete. I pass the order id as a parameter.
- john
Here is the JavaScript -
function confirmDelete() {
if(confirm('Continue with order delete?'))
return true;
else
return false;
Here is a sample anchor tag -
<netui:anchor action="requestToDeleteOrder" onClick="return
confirmDelete(); return false;">
Delete
<netui:parameter name="orderId" value="{container.item.orderId}"/>
</netui:anchor>
"John H" <[email protected]> wrote in message
news:402138f5$[email protected]..
Thanks for the replies. I figured it was going to require buildingmy own
url
to call the action. I had hoped there was an easier way to do it.Rich,
the
reason I want to do this is because I want to call the JavaScript
function
confirm()
when a user clicks on a link (in a repeater/grid) to drop a record,I only
want
to call the drop action if the user confirms the drop. Maybe thereis a
better
way to do what I am trying to do??? I really appreciate any help
you
guys
can
give me on this, I am pretty new to this sort of stuff.
Thanks,
John
"Rich Kucera" <[email protected]> wrote:
"John H" <[email protected]> wrote:
What is the best way to call a pageflow action from JavaScript?
Thanks,
JohnTry figuring out the URL to the pageflow action, create a hidden
form
in the
page, then use JS to submit the form. Why would you want to though,
isn't
the server going to want to send you to the next page?
Maybe you are looking for
-
My Grandson has a latest generation touch. Up to this time the only way he downloaded apps was directly to the device via wifi. We just recently installed itunes on their home computer and wanted to be able to sync purchases. When we plugged the i
-
Visual Studio 2005 deploy Crystal Report to Windows Server 2008 64-bit
I've read a lot of posts here regarding deploying on a 64-bit server, but I'm still confused. We use Visual Studio 2005 to develop on a Windows XP machine. We use the built-in version of Crystal that comes with VS2005. We want to deploy the runtime
-
PP CS6 crashes when opening - Please help!
When I attempt to open PP CS6 it displays the initial launch screen and then says "Adobe Premiere Pro has stopped working." Before posting this question I tried: 1) uninstalling and reinstalling PP CS6 2) uninstalling and reinstalling Creative Cloud
-
Here is the code: package ui.components; import java.awt.Color; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.
-
Are all 4 RAM slots USER-UPGRADABLE in 27", 2.8MHz, i7 iMac?
I haven't dug into my iMac yet but am wondering if all 4 RAM slots are user-upgradable... before I fork out the money for more RAM. Currently I have 8GB (4x2GB). I thought the 8GB would be enough for the graphic designing I do (was managing with my p