Datasource from Portal (Java Applet)

Oracle Application server 10.1.2 and Portal 10.1.4, DB 10.2.0.1.0.
We are familiar with using either properties file or data_source.xml to store the DB connection information. We are deploying .ear file and implementing as a portlet in Oracle Portal. We like NOT to hard code the datasource info (in properties file or data_source.xml) and hoping to use the one from Portal/SSO. Or at least make it more secured than saving in an XML file.
Any thoughts are well appreciated.
Thank You

Oracle Application server 10.1.2 and Portal 10.1.4, DB 10.2.0.1.0.
We are familiar with using either properties file or data_source.xml to store the DB connection information. We are deploying .ear file and implementing as a portlet in Oracle Portal. We like NOT to hard code the datasource info (in properties file or data_source.xml) and hoping to use the one from Portal/SSO. Or at least make it more secured than saving in an XML file.
Any thoughts are well appreciated.
Thank You

Similar Messages

  • Manipulating JDBC Datasources from a java application or servlet

    How can i manipulate - add, delete, update - JDBC Datasources from a java applcation or servlet?

    Maybe we can help, if you explain a little more.
    What do you mean with:
    How can i manipulate - add, delete, update - JDBC
    Datasources from a java applcation or servlet?Do you want to
    * create databases
    * change a database's properties
    * create or change tables
    * create or change the rows in tables
    Each of these would be - more or less - possible, but on its own way.
    Or do you maybe want to configure ODBC Datasources (DSNs) for use with the JDBC-ODBC-Bridge?
    Thats all I can guess from what you told us. Tell more!

  • What's the easiest way to save info from a java applet to use it later?

    How can a java applet take info from a user (text, binary, picture, or some other form), and save it (like on my computer), then bring it up when another user views the same applet?

    flounder
    "Did you try it?
    Do you have a file called Stuff.txt?
    Does the file contain "Testing outstream"?"
    Yes I compiled and ran the code as a Java applet, nothing happened. I was expecting a write error becase java applets are not inally allowed to write to a file. Yes I have file a Stuff.txt in the same directory as the program. No, nothing happened to the file, it stays blank.
    paulcw
    "And if you tested it, how did you test it?
    (Hint: the code you've shown doesn't need to extend Applet.) "
    If it does not extend applet then I get a class cast exception when I try to compile it as an applet.

  • Can I save as pdf when printing from a Java applet on a webpage in Safari?

    I am trying to use a webpage that is running a Java applet. A dialog comes up that asks me, "Do you want to run this application?" The dialog also says, "This application will run with limited access that is intended to protect your computer and personal information." I select "Run". The applet generates an image I want to print.  There is a "Print" button on the applet.  I select "Print". A Security Warning dialog comes up that says, "The applet has requested access to the printer. Do you want to allow this action?" I select "OK".  The Print dialog comes up.  I choose the PDF button in the lower left corner. I choose "Save as PDF...". A second Print dialog comes up.  I input a title in the Save As box.  I choose Desktop in the Where box.  I do not change anything else and select the "Save" button. A dialog appears that says, "Print Error while printing." There is an icon with paper, a pencil, a ruler and a paintbrush on the dialog. 
    Is this an issue with Apple and Java security?  Does "run with limited access" mean I can't print and save as PDF? Should I upgrade to Mavericks?  It seems like others have not been happy with Mavericks and have had problems saving as PDF with Mavericks. How do I let Apple know about this error?  The error dialog is useless. 
    I am on a Mac running OS X 10.8.5 and Safari 6.1.2.  My Java version is 7 update 51.
    What other information can I provide to help solve the problem (if it can be solved)?
    Thank you for your help!

    Correction I would like to save as PDF/A-1b
    for archiving.
    http://www.adobe.com/enterprise/standards/pdfa/

  • How do you call a JavaScript function from a Java applet

    I have an Applet that needs to run on the following platforms: Internet Explorer (Windows-NT, Windows -2000), Netscape (Windows-NT, Windows-2000, Sun(Solaris), RedHat(Linux), HP(11.0), IBM(AIX)).
    The Applet needs to call a JavaScript function that is included on the HTML page that contains the applet. In JRE-1.3.1 I used the AppletContext.showDocument(url,"_self" ) where the url is "javascript:MyScript('param1')". This works just fine. I tried using showDocument without the second parameter and all the other choices for the second parameter and none of them worked (nothing happened).
    I tried the same code with JRE version 1.4-beta. It seems that version 1.4-beta no longer supports a URL that starts with "javascript" in the AppletContext.showDocument(url,"_self" ) method. The error is:
    netscape.javascript.JSException: call does not support self.open
    at sun.plugin.javascript.navig.Window.call(Unknown Source)
    at sun.plugin.ActivatorAppletContext.showDocument(Unknown Source)
    I tried to catch the JSException but I cannot seem to.
    I then tried a completely different approach. I then grabbed the JSObject for the page and tried to call my javascript function (MyScript) directly:
    JSObject theObj = JSObject.getWindow(this);
    Object paramArray[] = new Object[1];
    paramArray[0] = Param1;
    theObj.call("MyScript", paramArray);
    This worked fine on Netscape[Windows-NT, Windows-2000]. HP throws a JSException on getWindow() and Solaris just hangs. I did not even try IE.
    What is the recommended approach here?

    you can try this, it worked for me:
    JSObject win = JSObject.getWindow(this);
    win.eval(function_call);
    I have other ways also, so if this doesn't work, let me know.

  • Response From My Java Applet

    Hello
    Can any one help me clear this situation
    I used this code to send data to from my card
    o_apdu.setOutgoing();
    o_apdu.setOutgoingLength( (short) 40 );
    o_apdu.sendBytesLong( userdata, (short)0, (short)40 );
    but when i send the command from my POS, i get response :
    CLS=0x00
    INS=0x61
    P1=0x00
    P2=0x00
    LC=0x00
    Le=0x28
    Lr=0x28
    The response is as following
    <<61 36
    i want the card returns the 40 bytes directly like that XX ..... XX 90 00
    note that when i send GET RESPONSE command the card returns 6D 00 (Instruction not supported)
    Also why it reurns 0x36 in 61 36 while the number of bytes are 40 (0x28)?
    thanks

    You don't have the last version.
    Nowadays odd INS values are allowed, but by design, 6x and 9x cannot be accepted by T=0.
    ISO7816-3:2006 tells:
    10.3.2 Command header
    The header consists of five bytes denoted CLA, INS, P1, P2 and P3. The values of CLA, INS, P1 and P2 shall be as specified in ISO/IEC 7816-4.
    - CLA denotes a class of commands. The value 'FF' is invalid (reserved for PPSS, see 6.3.1 and 9.2).
    NOTE ISO/IEC 7816-4 enforces 'FF' as invalid value of CLA.
    - INS denotes an instruction code. The values '6X' and '9X' are invalid.
    - P1 P2 denotes an instruction parameter, e.g., a reference completing the instruction code.
    - P3 encodes the number of data bytes denoted D1 to Dn to be transferred during the command.
    - In an outgoing data transfer command, P3='00' introduces a 256-byte data transfer from the card.
    - In an incoming data transfer command, P3='00' introduces no data transfer.
    This information was also present in the 1997 edition.
    ISO7816-4:2005 does not mandate more details, it says:
    5.1.2 Instruction byte
    INS indicates the command to process. Due to specifications in ISO/IEC 7816-3, the values '6X' and '9X' are invalid.
    The list of INS values that follows is related to class = 0, but there is no technical restrictions for other combinations.
    These details are indicated about odd INS codes:
    In the interindustry class, bit 1 of INS indicates a data field format as follows.
    -- If bit 1 is set to 0 (even INS code), then no indication is provided.
    -- If bit 1 is set to 1 (odd INS code), then BER-TLV encoding (see 5.2.2) shall apply as follows.
    -- In unchained commands with SW1 not set to '61', data fields, if any, shall be encoded in BER-TLV.
    -- Command chaining and / or the use of SW1 set to '61' allow the transmission of data strings too long for a single command. Such a process may split data objects in data fields consecutively sent as a sequence in one direction, i.e., while sending no data field in the opposite direction. When chaining commands and / or using SW1 set to '61', the concatenation of all the consecutive data fields in the same direction in the same sequence shall be encoded in BER-TLV.
    The coding for CLA is complicated but does not interfere with APDU exchange affairs, this is all application level.

  • Launching An Application From Java applet?

    is it possible to run an executable from a java applet (the executable could be in the local machine)? if it is not possible is there any other alternatives (like scripts)?

    Yes, it is possible but it violates the applet security rules. So you have to sign the applet for this to be allowed.

  • Help Needed urgently - MKTCALENDAR button removal from java applet

    Hi Experts ,
    We have a requirement to remove buttons from the markeing calendar/projects applet .
    In Marketing->Search->Marketing Calendar , when we click on search button , result is displayed in the result view . This is a java applet and has a toolbar with buttons like new,save,copy etc,fields with drop down and also the result list below it.
    We have the option to prevent the button functionalities by controlling authorization to SAP objects.But my requirement is to completely hide these buttons from getting displayed in the applet view.
    Can anyone help me regarding how to remove the buttons from the java applet  .
    Appreciate the help a lot.
    Thanks
    Swapna.

    hii,
    checkout my add from, HTH
    [http://forums.sun.com/thread.jspa?threadID=5419921&messageID=10885709#10885709]
    ... kopik

  • Unix script call from java applet

    In perl you can use the system command to call a unix command like mv or ls. How do run a unix command from a java applet?

    normaly java applets are not allowed to execute any code. But there is a possibility to ask the user to be allowed to..
    in Netscpae you can use the following:
    import netscape.security.PrivilegeManager;
    then somewhere in the class...
    PrivilegeManager.enablePrivilege( "UniversalExecAccess" );
    then the user can press 'grant' or 'deni'. If he pressed grant, you can do the following:
    Process process = Runtime.getRuntime().exec( "command" );
    //where command is what ever command you like to execute
    hope that helps.
    lexip

  • Calling perl from java applets

    I have problems in executing PERL from a JAVA applet and Swing interface.
    I'm working under Windows 98.
    My aim is the following:
    When I click on the "Analizza" button,
    I want to execute a PERL program and automatically
    close the DOS window after completion. If there
    is an error, this error should be displayed in DOS.
    I wrote this piece of code
    public void actionPerformed(ActionEvent eventoUtente){
         String comandoPulsante = eventoUtente.getActionCommand();
              if (comandoPulsante == "Analizza"){
              Runtime rt = Runtime.getRuntime();
              try{
              Process pr= rt.exec("cmd -c c:\\command /c perl C:\\_webasco\\contatutto2.pl");
              catch(java.io.IOException ioEx)
              System.out.println("IOEx:"+ioEx.getMessage());
    I tried also with a Windows executable, ie I replaced the line
         Process pr= rt.exec("cmd -c c:\\command /c perl C:\\_webasco\\contatutto2.pl");
    with
         Process pr= rt.exec("command /c c:\\windows\notepad.exe");
    but in both cases nothing happens within the applet.
    What am I doing wrong????
    Any suggestions is warmly welcomed.
    Thank you
    Marina

    I know nothing about Perl, but the line
    if (comandoPulsante == "Analizza"){
    compares references not values and will always return false. Try:
    if (comandoPulsante.equals("Analizza")) {

  • Java applet security

    hello all, i was just wondering if there is any secure way to send information from a java applet to a server, for example a number for storage in a database? I would like to create a very simple game which send the high score back to the server without any possibility of that information being falsified.
    Thanks for any advice received.
    Dori

    Not really. You'd have to trust the users PC, which you can't.
    You can make it harder to submit wrong values, but you can't make it impossible.

  • Using JRUN Datasource from CF

    I am running CF 6.1 on top of JRUN4. I've also have some java
    code that is packaged in a jar and available for invocation from
    CF. I would like to use a JRUN datasource from that Java code. Is
    this possible?

    Hmmm ... I have a datasource on the "default" JRUN server
    instanced called: "DAwactlg"
    JDBC Data Sources
    Actions Data Source Name Database Driver
    Edit Verify Delete DAwactlg macromedia.jdbc.MacromediaDriver
    I also have a different ColdFusion data source in the
    ColdFusion app running in the "default" server.
    Connected Data Sources
    Actions Data Source Name Driver Status
    W09ORD Oracle
    The JRUN configured DSN called "DAwactlg" is not showing in
    the CF Admin.
    Thoughts?

  • Java applet detecting system states

    I am currently working on a chat room applet to keep all of our emplyees connected during the day for user support and general communication; however, we have been having an issue with people not going idle lately. The solution we have settled on is trying to detect if the user's computer has been locked (a much more habitual thing to do) from the java applet that they access the system from (all of our users are accessing the applet from a windows machine). I cannot for the life of me figure out how to do this. Is this even possible in an applet or would it have to be an actual application?
    thanks in advance for the help!

    It's probably possible if you sign the applet code, but it's messy. You need to use JNI to access the system status which requires that an appropriate DLL is in place on the client machine. A signed applet can install one.
    But you quickly get to the point where it might make more sense to use a stand-alone program, which you could place on a shared directory.

  • Thanksgiving Challenge - ListenUp Java Applet integration

    For those that like a Challenge... I came across this Java
    Applet that appears to be quite powerful to add recording and
    playing of voice audio files to a website:
    http://www.javasonics.com/downloads/
    I have not been successful in writing the coldfusion code yet
    that will read the information that is passed from this Java Applet
    with respect to sound file (wav), file name, and other fields that
    are in the form when created.
    This is the format of the use of the Applet that I would like
    to get working on the site:
    http://www.javasonics.com/listenup/examples/use_text_fields.html
    I look forward to anyone that can get this code working and
    how you did it with ColdFusion.
    Thanks,
    Tom
    [email protected]

    When I run their PHP version that works on a Linux System and
    the Java Applet debugger on this is the result from the time the
    file is handed off from the Java Applet to the PHP Code.
    Can anyone tell if the file is actually being written to the
    server then PHP is reading it from the server or is it just being
    written to memory and PHP is reading a variable or memory block for
    this data?
    ListenUp: 49.081, sendRecordedMessage(message_12345.wav)
    ListenUp: 49.091, sendRecordedMessage: upload
    message_12345.wav
    ListenUp: 49.101, start upload, freeMem = 3535456, totalMem =
    5640192
    ListenUp: 49.431, got compressed image, freeMem = 3453040,
    totalMem = 5640192
    ListenUp: 49.671, got MIME data, freeMem = 3387064, totalMem
    = 5640192
    ListenUp: 49.902, MultipartFormDataUploader: POST size =
    15733
    ListenUp: 49.902, parseStatusLine: HTTP/1.1 100 Continue, len
    21
    HTTP/1.1 200 OK
    Cache-Control: private
    Connection: close
    Date: Thu, 27 Nov 2008 18:38:07 GMT
    Content-Type: text/plain
    Server: Microsoft-IIS/6.0
    X-Powered-By: PHP/4.4.1
    X-Powered-By: ASP.NET
    <param name=userfile>
    raw_name = message_12345.wav
    name = message_12345.wav
    type = audio/wav
    size = 15420
    Upload dir = ../uploads
    duration = 2.6006349206349206
    SUCCESS - message_12345.wav uploaded.
    ListenUp: 50.332, DynamicMemoryBuffer: deleting array.
    ListenUp: 50.332, finished upload, freeMem = 3487480,
    totalMem = 5640192

  • Datasource from Java/Portal

    Oracle Application server 10.1.2 and Portal 10.1.4, DB 10.2.0.1.0.
    We are familiar with using either properties file or data_source.xml to store the DB connection information. We are deploying .ear file as a portlet in Oracle Portal. We like NOT to hard code the datasource info (in properties file or data_source.xml) and hoping to use the one from Portal/SSO. Or at least make it more secured than saving in an XML file.
    Any thoughts are well appreciated.
    Thank You

    I haven't studied your problem in detail and don't actually use Tomcat 6, but in earlier versions of Tomcat the handling of JNDI leaves a lot to be desired. If you search this forum for posts about Tomcat and JNDI, you will find some useful information.
    One thing I found was that you really need to use the context.xml file in your Meta-inf directory, putting the datasource anywhere else gets into one kind of trouble or another. I tried using server.xml, a context file for the application and the web-inf file.

Maybe you are looking for