Tomcat: Advanced usage of OracleDataSource

Basic configuration of OracleDataSource in Tomcat (5.5) works fine. But how do I configure sophisticated connection attributes like oracle.jdbc.ReadTimeout ??
actual definition (context.xml):
<Resource
name="jdbc/myds"
auth="Container"
scope="Shareable"
type="oracle.jdbc.pool.OracleDataSource"
driverclassname="oracle.jdbc.driver.OracleDriver"
factory="oracle.jdbc.pool.OracleDataSourceFactory"
url="jdbc:oracle:thin:@172.20.109.174:1521:mydb"
user="myuser"
password="mypwd"
connectionCachingEnabled="true"
connectionCacheName="MyCache"
connectionCacheProperties="{MaxLimit=10, MinLimit=0, InitialLimit=0, ValidateConnection=true, ConnectionWaitTimeout=60}"
/>
Thanks,
Michael

Thanks for your reply.
Assignment to "connectionProperties" doesn't work.
At least ((OracleDataSource)datasource).getConnectionProperties() is empty and
((OracleConnection)datasource.getConnection()).getProperties() does not contain oracle.net.ReadTimeout.
But in the end you are right. All I want to do is to catch a timeout in case of listener isn't available. In case of firewall issues JDBC requests are hanging too long. SQLPlus comes back within reasonable time.
Regards,
Michael

Similar Messages

  • Advanced usage of TestStand Deployment Utility

    I would like to automate the build process for my test stand systems.
    Is there a way to call and build a .tsd automatically from labview or command line?
    Alternatively is there a way to call post actions after a successfully completed build (i.e.. Zip and move files etc etc)
    Any help or pointers would be greatly appreciated.
    Chris
    Solved!
    Go to Solution.

    I don't think you can automatically create a tsd.
    But once you have a tsd file, you can automate the deployment process by cmd line such as "DeploymentUtility.exe path" -build "tsd_file_path"
    After deployment, you can check DeploymentUtility.log in your cfg folder to figure out whether the build is successful or not
    Others such as zip or move files are very basic, you can do it using any script language
    CmtGetCurrentThreadID()
    Chenny Zhenyu Wang
    Certified LabVIEW Architect
    Certified TestStand Architect

  • Usage of to_date & to_char

    pls. give advanced usage of to_date & to_char

    pls. give advanced usage of to_date & to_charTO_DATE
    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/functions137a.htm
    TO_CHAR
    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/functions134a.htm#1009326
    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/functions133a.htm#1003490
    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/functions135a.htm#79332

  • Using Tomcat in Eclipse?

    Hi,
    Can you tell me how to use Tomcat using Eclipse?
    Whether we have to plug-in Tomcat in Eclipse?
    I'm using Eclipse3.1.1 Version.
    Thanks,
    Hari

    you can use "com.sysdeo.eclipse.tomcat_3.1.0" plugin. Just download the zip file and expand it in plugin folder of eclipse. I am using it on ecipse 3.1.2 it works fine.
    By the way you need to set certain parameters in Eclispe.
    GO to windows-preferences-java
    Installed JREs - add the path of your j2sdk1.4.(eg.c:j2sdk1.4.2_11)
    then Go to windows--preferences--tomcat-
    advanced - fill your tomcat base
    JVMSettings - JRE drop down box select the j2sdk you added
    JVMSettings - classpath - add tools.jar from your j2sdk lib folder
    JVMSettings - Boot ClassPath - add rt.jar from your jre lib folder
    SourcePath
    Select your java project you are working with
    Then click ok.
    Try to run eclipse in clear mode.
    Please let me know if this worked. I also did the same procedure and It is working fine.
    Meena

  • LocalConnection Advanced use question

    Does anybody know if it is actually possible to have two
    flash movies talk to each other when one is in an iframe at a
    different domain and one is in the page containing the iframe?
    I spent quite a bit of time yesterday going through varoius
    permutaions on naming the connections. The closest I got to
    anythign was when I got my sender movie in Flash to successfully
    talk to the reciever movie in the browser, that was accomplished
    having an underscore in front fo the connection name in sender and
    reciever. But when the reciever swf is in a page containing an
    iframe with the sender swf nothing appears to happen.
    Since I got flash player (and an executable version of the
    sender) to commicate with the browser based reciever I figure this
    should be possible. But i can't seem to figure out what I'm missing
    in the browser based versions.
    The intent of this exercise is to allow technology I am
    helping to delop to be included in a page using an iframe while
    providing feedback to listener movie in the site the iframe is
    embedded in. From there we would provide an api for interacting
    with the listener movie so that sites wishing to embed our
    technology could handle certain events. I realize of course that
    interframe communication between frames at different domains is a
    violation of the same domain rule at the heart of most browser
    security. So, I wouldn't be surprised if it isn't possible. And
    yet, I could communicate between flash player and the listener so I
    still wonder at the possibility.
    Does anybody know if what I'm attempting is even possible?
    And if so, any clues as to what may be the problem? If anybody
    chooses to help with the problem or innovate a work around I would
    be happy to share the source files I've been playing with, which
    are simple bare bones swfs.

    "> One more question along this topic of advanced usage
    > of LocalConnections ... is there a reccomended method
    > of dealing with multiple windows being open with the
    > same reciever movie so that the sender movies aren't all
    > sending back to the originally opened movie?
    What about sending an arbitrary id as one of the parameters
    with your
    message? All movies listen, but when a message comes, each
    movie checks to
    see if the id param matches a correlating id of its own. This
    could be a
    variable stored in the root of each listening movie. (Am I
    movie "A"? Yes?
    Okay, I'll follow these instructions.)"
    The problem with the arbitrary id is that I have to send it
    somewhere, and I need to know the name of the connection to send it
    to, but each connection name must be unique. That is why if you
    open a new window messaging goes to the first window, the
    connection command in the second window will fail because the name
    will aready be taken in window one. And the other movies won't know
    that and will all send to the named connection which is still in
    window one.
    The connect function will fail if a connection already
    exist.s So, on the one hand all I have to have is a loop that keeps
    trying to connect until it finds a free connection. The problem I
    am thinking about is having two movies in the same window, one in
    the page displayed, and one in an iframe, as I set up on that demo
    page. I'll want the one in the iframe to communicate with the one
    in the outer page for validation purposes. If all there is is one
    window then that's fine. But if sombody were to hit Ctrl+N in IE
    they would get a new browser window with the same page. The problem
    is how to make it so that the two movies in each window know to
    only communicate with each other in only that window?
    My thought is that I can use the incremental connection id
    technique in each movie and figure that if the increment is
    firstMovie_2 in one movie then it should communicate with
    otherMovie_2. What I'm worried about in this scenario though is
    what happens if the user is caffienated and hits Ctrl+N five times?
    Will the two movies increment correctly for each browser window? Or
    will there end up a couple windows with a firstMovie_3 and
    secondMovie_2 because things didn't load in a controlled sort of
    way?
    I think the incremental technique would be fine for if a
    window closed because that would free the connection id and the
    loop would always start at 0, so if you had five windows opened and
    closed the first one and opened a new one, the new window would use
    the ids with the _0 increment.
    Anyway, its helping me to write this stuff out. I'm going to
    implement the incremental id thing and I'll report my findings.
    As to looking deep into the technotes and docs. That
    http://www.adobe.com/devnet/flash/articles/fplayer8_security_05.html
    article was great for the table it has in the middle of it which
    outlines what is needed for the various ways you try to connect
    movies.
    My only other reccomendation is the help docs and Excedrin
    since it has both Acetometaphin AND caffeine and both are useful
    for trudging through the fine points of the flash docs ;).

  • How can I use my Airport to block a particular IP or MAC?

    I have a MacBook Pro running OS 10.9.5 connected via WiFi to an 4th generation AirPort Time Capsule.  I think that this is also an an AirPort Extreme, but I am not sure.  Anyway, here is the problem: I want to block access to my local WiFi network from two or three unidentified users.  Thanks to Who's On My WiFi, I have an IP and a MAC address for each.  If I remember correctly, this was possible in the old days (circa 2008) by using some of the more advanced settings in AirPort Utility.  I opened Airport Utility today and it appears to have been simplified to the point where you can't do much with it these days.  Is there a way to accomplish what I want to do that is reasonably simple?  I am not a power user.

    I opened Airport Utility today and it appears to have been simplified to the point where you can't do much with it these days.
    Yes, welcome to the Fisher Price toy box utility.. where nothing in the way of advanced usage is offered.
    Is there a way to accomplish what I want to do that is reasonably simple?
    You can put time controls onto the offending addresses.
    But if the hackers know anything at all they know how to access the MAC address of the computer and change it.. so the effectiveness of this is limited.
    Change the current setup and password.. You must use WPA2 Personal and I recommend you use a pure alphanumeric password, mix case and numbers of 20 characters or more for your situation.. do not give that password to anyone.. protect the admin password of the TC itself equally well but with a different password. And protect the physical access to the TC from anyone in your home.. because the fact is all security on the TC is an illusion if the TC has open access.
    See how to find passwords here.
    i forgot my password for my router, how can I change them.
    So anyone can discover your passwords without your knowledge and leave no trace on your system.
    If you make no progress.. I suggest replacement of the TC as the main router of your network.. you need something with controls.. and even better controls that allow you to block people.
    The favourite one now is older Netgear WNDR3800 . .you might need to buy from ebay although a few new ones are still around.. alternatively the WNDRMACv2 is simply the same hardware in a white box.. instead of black.
    Load gargoyle firmware onto it.. sorry if I even point to where you can find this info my post will be deleted.. I can say it.. just cannot help further.. so use google.. there are lots of posts and let me assure you this get combo.
    You can continue to use TC at what it does best.. a dumb wireless AP and location for TM backups.

  • Pass value from report on skillbuilder modal page

    I am using the skillbuilder modal dialog. I have a report that displays in the modal. I want to pass a value from the report back to the page that called the modal and then close the modal. I have tried several different things, but I have not been successful. Any ideas?

    Not sure if you have completely read the instructions.pdf that comes with the plugin. The "Events" section (Auto Close event) under "Advanced Usage" in the pdf may help you.
    Anyways, I have not tried this solution.

  • How can I use my IPAD to stream Musik to two Air Port Clients in a network at the same time?

    I want to stream my musik via I PAD to more than one Air Port Clients at the same time. Via MAC it is possible to select "more speaker". In the I PAD I can only select Station 1 or Station 2.

    I opened Airport Utility today and it appears to have been simplified to the point where you can't do much with it these days.
    Yes, welcome to the Fisher Price toy box utility.. where nothing in the way of advanced usage is offered.
    Is there a way to accomplish what I want to do that is reasonably simple?
    You can put time controls onto the offending addresses.
    But if the hackers know anything at all they know how to access the MAC address of the computer and change it.. so the effectiveness of this is limited.
    Change the current setup and password.. You must use WPA2 Personal and I recommend you use a pure alphanumeric password, mix case and numbers of 20 characters or more for your situation.. do not give that password to anyone.. protect the admin password of the TC itself equally well but with a different password. And protect the physical access to the TC from anyone in your home.. because the fact is all security on the TC is an illusion if the TC has open access.
    See how to find passwords here.
    i forgot my password for my router, how can I change them.
    So anyone can discover your passwords without your knowledge and leave no trace on your system.
    If you make no progress.. I suggest replacement of the TC as the main router of your network.. you need something with controls.. and even better controls that allow you to block people.
    The favourite one now is older Netgear WNDR3800 . .you might need to buy from ebay although a few new ones are still around.. alternatively the WNDRMACv2 is simply the same hardware in a white box.. instead of black.
    Load gargoyle firmware onto it.. sorry if I even point to where you can find this info my post will be deleted.. I can say it.. just cannot help further.. so use google.. there are lots of posts and let me assure you this get combo.
    You can continue to use TC at what it does best.. a dumb wireless AP and location for TM backups.

  • How can I use Mac Mail to send a delayed mail?

    I am trying to send a delayed email, meaning the email is not sent immediately
    when the send button is pressed but at a pre-determined time.
    I have looked through Google, tried different third party scripts available, including
    Mail Scripts 2.10.3 by Andreas Amann, but none is supported under Mac OS X Lion.
    I believe Mac Mail itself does not support this feature (to my disappointment),
    but I read about using iCal and Automator to do my intended purpose.
    However, I am not familiar with script-writing. If someone can provide me a
    step-by-step procedure OR give me another way to do my intended purpose,
    it will be highly appreciated.

    I opened Airport Utility today and it appears to have been simplified to the point where you can't do much with it these days.
    Yes, welcome to the Fisher Price toy box utility.. where nothing in the way of advanced usage is offered.
    Is there a way to accomplish what I want to do that is reasonably simple?
    You can put time controls onto the offending addresses.
    But if the hackers know anything at all they know how to access the MAC address of the computer and change it.. so the effectiveness of this is limited.
    Change the current setup and password.. You must use WPA2 Personal and I recommend you use a pure alphanumeric password, mix case and numbers of 20 characters or more for your situation.. do not give that password to anyone.. protect the admin password of the TC itself equally well but with a different password. And protect the physical access to the TC from anyone in your home.. because the fact is all security on the TC is an illusion if the TC has open access.
    See how to find passwords here.
    i forgot my password for my router, how can I change them.
    So anyone can discover your passwords without your knowledge and leave no trace on your system.
    If you make no progress.. I suggest replacement of the TC as the main router of your network.. you need something with controls.. and even better controls that allow you to block people.
    The favourite one now is older Netgear WNDR3800 . .you might need to buy from ebay although a few new ones are still around.. alternatively the WNDRMACv2 is simply the same hardware in a white box.. instead of black.
    Load gargoyle firmware onto it.. sorry if I even point to where you can find this info my post will be deleted.. I can say it.. just cannot help further.. so use google.. there are lots of posts and let me assure you this get combo.
    You can continue to use TC at what it does best.. a dumb wireless AP and location for TM backups.

  • Error encountered while doing Migration from WLS 8.1 to WLS 10.0

    Hello All ,
    We are trying to do a WLS migrate(8.1 to 10.0) for a java/j2ee based application. We did not face any issues while compling application code (using jdk 1.5 & weblogic.jar of WLS 10.0) but while running the ant build script , we encountered an error while executing below part
    Line: -----
    1 <java classname="weblogic.appc" fork="true" maxmemory="${appc.java.maxmemory}" failonerror="true">
    2 <classpath>
    3 <pathelement path="${project.classpath}"/>
    4 </classpath>
    5
    6 <jvmarg line="${appc.java.options} -Djava.io.tmpdir=${appc.tmp.dir}"/>
    7
    8 <arg line="-compiler ${appc.compiler} -output ${_appc.output}
    9 -classpath ${_appc.classpath}
    10 ${bmwslc.param.options}
    11 ${appc.additional.options}
    12 ${_appc.input}" />
    13 </java>
    Line: -----
    Following is the error , which we encountered
    Line: -----
    # [java] Usage: java weblogic.appc [options] <ear, jar, war or rar file or directory>
    # [java] where options include:
    # [java] -help Print the standard usage message.
    # [java] -version Print version information.
    # [java] -output <file> Specifies an alternate output archive or
    # [java] directory. If not set, output will be
    # [java] placed in the source archive or directory.
    # [java] -plan <file> Specifies an optional deployment plan.
    # [java] -forceGeneration Force generation of EJB and JSP classes.
    # [java] Without this flag the classes may not be
    # [java] regenerated if it is determined to be
    # [java] unnecessary.
    # [java] -quiet Turns off output except for errors
    # [java] -lineNumbers Add JSP line numbers to generated class
    # [java] files to aid in debugging.
    # [java] -library <file> Comma-separated list of libraries. Each
    # [java] library may optionally set its name and
    # [java] versions, if not already set in its
    # [java] manifest, using the following syntax: <file>
    # [java] [@name=<string>@libspecver=<version>          
    # [java] @libimplver=<version|string>]
    # [java] -librarydir <dir> Registers all files in specified directory
    # [java] as libraries.
    # [java] -writeInferredDescriptors Write out the descriptors with inferred
    # [java] information including annotations.
    # [java] -keepgenerated Keep the generated .java files.
    # [java] -verbose Compile with verbose output.
    # [java] -classpath <path> Classpath to use.
    # [java] -source <source> Source version.
    # [java] -target <target> Target version.
    # [java] -advanced Print advanced usage options.
    # [java] <May 18, 2010 12:36:19 PM CEST> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    # [java] [J2EE:160128]ERROR: Incorrect appc command-line. Too many arguments were given. The command-line only takes a single argument, the source file, in addition to the supported options.
    Line: -----
    All the arguments looks correct to me while debugging . here is the summary of echo statements
    ${appc.additional.options} =""
    ${bmwslc.param.options} ="-forceGeneration"
    ${_appc.input}="test_ear-generic.ear"
    I am dumb struck at this point
    Please suggest any other thoughts , which you have in mind .
    Thanks in advance !
    Regards
    Shobit

    Probably too late for an answer but I try,
    We are not able to build our J2EE 1.4 application with weblo 10, we have to build them with weblo 8 which contains the xdoclet. then we deploy it in WL10. then sometimes we have to fix some build constraints that WL10 doesn't allow anymore.

  • Axis SOAP Adapter - Setting MIME headers for attachements (Handlers?)

    Hello,
    I need to know if/how it is possible to set the individual MIME headers of the parts making up a multipart/related SOAP message using only standard Axis Handlers e.g. "com.sap.aii.axis.xi.XI30DynamicConfigurationHandler" (as described in the Axis FAQ in Note 1039369).
    I know I can insert transport headers  using "com.sap.aii.axis.xi.XI30DynamicConfigurationHandler", but I can't see a way of setting a MIME header for, say, the first part (i.e. the SOAP part) or the second part (e.g. an attachement). Is this possible without writing your own Axis handler? The Axis FAQ, in "Advanced usage question 31" implies that you can set MIME Headers but only shows an example of setting the transport header.
    I am using the SOAP Adapter to send a message comprising and XML message (in the SOAP body) and a PDF document (as an attachement). The external company this is being sent to requires that we have specific values for the "Content-Id" MIME header in each part of the multipart/related document. This is why I need to understand if we can do this without writing our own Axis Handler.
    Incidentally, I have tried to write a custom Axis Handler but couldn't get PI to find it after deployment. I did this by inserting my JAR file in the "com.sap.aii.adapter.lib.sda" (as per Notes 1039369 / 1138877) and then using JSPM. After deployment, though, when I tried to start the SOAP Adapter I got the following error in the RWB: "failed to initialize: org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException: com.hp.gerryaxis.GerryAxis..." (my class was called "GerryAxis" and I placed this in package "com.hp.gerryaxis"). I'm not an experienced Java programmer (my background is in ABAP), so if anyone can suggest whey I'm getting this error, I'd be very grateful (for example, could my choice of package be causing the problem?).
    Thanks for your help.

    I went ahead and wrote a simple bespoke Axis Handler. By invoking this from the standard "HandlerBean" in the module processor of my communication channel, I was able to overwrite and set new MIME headers in the Attachment Parts of my SOAP Message. I was also able to change the contents of the SOAP Envelope; for example, I found I could easily delete the SOAP Header. However, I've encountered a problem when I try and update the MIME headers of the SOAP Part i.e. the Part of the multipart/related message containing the SOAP Envelope.
    Does anyone know why I can't seem to change the MIME headers of the SOAP Part?
    The Axis API calls I used were as follows:
    (1) To update the MIME headers of attachements in my SOAP message:
    (a) Message = MessageContext.getCurrentMessage()
    (b) Iterator = Message.getAttachments()
    (c) AttachmentPart = Iterator.getNext()
    (d) AttachmentPart.setMimeHeader(name, value)
    This works.
    (2) To update the MIME headers of the SOAP (root) Part:
    (a) Message = MessageContext.getCurrentMessage()
    (b) SOAPPart = Message.getSOAPPart()
    (c) SOAPPart.setMimeHeader(name, value)
    This DOESN'Twork - the MIME headers of the SOAP Part never change.
    (3) To update the SOAP Envelope (delete the SOAP Header):
    (a) Message = MessageContext.getCurrentMessage()
    (b) SOAPPart = Message.getSOAPPart()
    (c) SOAPEnvelope = SOAPPart.getEnvelope()
    (d) SOAPHeader = SOAPEnvelope.getHeader()
    (e) SOAPHeader.removeContents()
    This works.
    I just don't understand why the call to SOAPPart.setMimeHeader() doens't work when I try and insert new MIME headers to the SOAP Part (e.g. "Content-Name") or when I try and change existing MIME headers there (e.g. "Content-ID"). I don't get any errors.
    The code of my handler is:
    @(#)GerryAxis.java       
    Set MIME headers in the SOAP and specified attachment part of a message
    package com.hp.handlers;
    import org.apache.axis.handlers.BasicHandler;
    import org.apache.axis.AxisFault;
    import org.apache.axis.attachments.AttachmentPart;
    import org.apache.axis.Message;
    import org.apache.axis.MessageContext;
    import java.util.Iterator;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    The <code>GerryAxis</code> handler class sets MIME headers.
    <p>
    This handler accepts the following parameters:
    <ul>
    <li><b>name</b>: Name of header
    <li><b>value</b>: Value for header
    <li><b>attachment</b>: Attachment number
    </ul>
    public class GerryAxis extends BasicHandler {
      /* (non-Javadoc)
    @see org.apache.axis.Handler#invoke(org.apache.axis.MessageContext)
      public void invoke(MessageContext msgContext) throws AxisFault {
        int i=0;
        boolean found = false;
        AttachmentPart ap = null;
        javax.xml.soap.SOAPPart sp = null;
        StringBuffer debug = new StringBuffer();
        try {
          // The MIME header change is controlled from the parameters "name", "value", "attachment" which  are
          // set in the module processor as parameters.
          String name  = (String)getOption("name");
          String value = (String)getOption("value");
          String attachment  = (String)getOption("attachment");
          Message msg = msgContext.getCurrentMessage();
          // Get the SOAP Part (the part holding the SOAP Envelope
          sp = msg.getSOAPPart();
          if (sp == null)
              debug.append("getSOAPPart returned <null> / ");
          // Set a MIME header in the SOAP Part - THIS DOES NOT WORK - WHY?     
          sp.setMimeHeader(name,value);
          // Remove the SOAP Header for the Envelope - this works fine
          SOAPEnvelope se = sp.getEnvelope();
          SOAPHeader sh = se.getHeader();
          sh.removeContents();
          // For debugging - writes some debuggin information to a "DEBUG" MIME header in the first Attachement Part
          debug.append("name = " + name +" / ");
          debug.append("value = " + value +" / ");
          debug.append("attachment = " + attachment + " / ");
          debug.append("getMimeHeader for SOAPPart returned " + sp.getMimeHeader(name)[0] + " / ");
          debug.append("getContentId for SOAPPart returned " + sp.getContentId() + " / ");
          // Update the specified attachement's MIME header - this works fine
          Iterator it = msg.getAttachments();
          while (it.hasNext()) {
            i++;
            ap = (AttachmentPart) it.next();
            if (i == new Integer(attachment).intValue()) {
              found = true;
              break;
          if (found) {
            ap.removeMimeHeader(name);
            ap.setMimeHeader("DEBUG",debug.toString());
            ap.setMimeHeader(name,value);
          msg.saveChanges();
        catch (Exception e) {
          throw AxisFault.makeFault(e);
    Thanks
    Edited by: Gerry Deighan on Oct 3, 2010 10:27 PM

  • SOAP Axis adapter_Encryption via Client Certificate not working

    Dear Experts,
    Could anyone please share the steps to enable encryption via client certificate in SOAP AXIS receiver adapter.
    I am able to do the same using normal SOAP adapter but with AXIS framework the steps are not working.
    I have come across few sdn links to configure axis framework for authentication using wsse security standard but this seems to be different as it requires user and password whereas with certificates we are not given any user/password.
    Please provide some valuable inputs.
    Thanks.

    Hi Shikha,
    see the -
    Advanced Usage Questions
        8. How can I configure a channel to use the encryption and ....
    of the FAQ attached to the note -
    1039369 - FAQ XI Axis Adapter
    Regards
    Kenny

  • Programmatic ADF Business Component Work

    Is there any documentation on advanced usages of ADF Business Components at the programmatic level? Oracle supplies a lot of documentation (i.e ADF Developer's Guide for Forms/4GL Developers) regarding the programmatic use of business components at the individual component level (i.e. a single entity object, view object, etc). But I cannot seem to locate any good resources for aiding in the programmatic use and development of already defined business components. I have gone through Part II "Building Your Business Services" and Part IV "Advanced Topics" of the Dev Guide trying to develop an understanding, but I find there is just too much content to sift through to collate the information that I think I need (if it is even present in the Dev Guides to begin with).
    I am at the point where I know how to define, customize and extend my business components. My problem is now that I need to USE the business components to create methods and processes as required by my project. To be specific, I essentially have to write a process that uses a specific ViewObject and the ViewObjects linked to it (through ViewLinks) to redefine the parent's PK, copy it and it's originally associated child rows

    Programmatic manipulation of components are covered in:
    5.6 Working Programmatically with View Object Query Results
    6.8 Working Programmatically with Entity Objects and Associations
    7.8 Working Programmatically with Entity-Based View Objects
    The application module class has generated getter methods to access any view object intstance in the data model.
    See section "8.3.2 What Happens When You Generate a Custom Class for an Application Module"
    View object rows have view link attributes you can use to access child collections:
    See section "5.10.4.2 How to Access a Detail Collection Using the View Link Accessor"

  • Logging Standards and ADF Application Log File on Standalone WLS

    Hi Experts,
    I am using JDev - 11.1.1.5.0 and WLS - 10.3
    Is ADF Logger the standard logger to be used in an ADF Application? If Yes, how to configure it?
    During development I simply used "System.out.println" for log messages and I was able to see the log messages in the Integrated WLS Console in JDeveloper. Now, I am moving to deployment on Standalone WLS. Please let me know how to configure the logger to log these messages to some log file to be accessed from standalone WLS.
    Thanks
    Rathnam

    Start with this 5 part series http://blogs.oracle.com/groundside/entry/adventures_in_adf_logging_part
    http://blogs.oracle.com/groundside/entry/adventures_in_adf_logging_part1
    http://blogs.oracle.com/groundside/entry/adventures_in_adf_logging_part2
    http://blogs.oracle.com/groundside/entry/adventures_in_adf_logging_part3
    http://blogs.oracle.com/groundside/entry/adventures_in_adf_logging_part4
    For the UI
    http://blogs.oracle.com/jdevotnharvest/entry/using_adf_logger_with_groovy
    and For some more advanced usage
    http://tompeez.wordpress.com/2011/09/23/adflogger-using-a-custom-formatter-class-to-print-log-messages/
    Timo

  • Axis receiver - WS-SECURITY problem

    Hi all,
    we need consume 3th party web service through AXIS adapter. This communication must be secured by certificate. We have imported certificate into keystore. Therefore there are needed WS-addressing and WS-security for SOAP request. We need use UsernameToken Timestamp and next sign following element in SOAP envelope: s:Body, o:UsernameToken, u:Timestamp, a:Action, a:ReplyTo, a:MessageID, a:To. Now we are able add UsernameToken, Timestamp and action addresing by adding modules in AXIS adapter. But we have problem sign needed elements.
    Now we have following SOAP request
    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
      <soapenv:Header>
        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="true">
          <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-24">
            <wsu:Created>2010-12-23T16:27:30.889Z</wsu:Created>
            <wsu:Expires>2010-12-23T16:32:30.889Z</wsu:Expires>
          </wsu:Timestamp>
          <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-23">
            <wsse:Username>user</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Apassword</wsse:Password>
          </wsse:UsernameToken>
        </wsse:Security>
        <wsa:MessageID soapenv:mustUnderstand="false">uuid:8a0e7b40-0eb1-11e0-97ac-8e95546643d1</wsa:MessageID>
        <wsa:To soapenv:mustUnderstand="false">http://www.test.iszo.sk/interfaces/MeasuredValues/Service.svc</wsa:To>
        <wsa:Action soapenv:mustUnderstand="false">http://sfera.sk/ws/xmtrade/iszo/measuredvalues/services/2008/11/01/MeasuredValuesContract/Upload</wsa:Action>
        <wsa:From xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing" soapenv:mustUnderstand="false">
          <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
      </soapenv:Header>
      <soapenv:Body>
    But we need also add Security token to SOAP request to sign needed elements (body, UsernameToken, Timestamp, etc.) as follow:
    <soap:Envelope xmlns:ns="http://sfera.sk/ws/xmtrade/iszo/measuredvalues/services/2008/11/01" xmlns:ns1="http://sfera.sk/ws/xmtrade/iszo/common/types/espv1r1/2008/11/01" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
      <soap:Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
          <wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-17206535">MIIEgDCCA .... FJSC+w==</wsse:BinarySecurityToken>
          <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-12725597">
            <ds:SignedInfo>
              <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
              <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
              <ds:Reference URI="#UsernameToken-23996530">
                <ds:Transforms>
                  <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                </ds:Transforms>
                <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                <ds:DigestValue>TFzBLZTL5JrDmMJFc2FyJZnVJ3Q=</ds:DigestValue>
              </ds:Reference>
              <ds:Reference URI="#Timestamp-12575106">
                <ds:Transforms>
                  <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                </ds:Transforms>
                <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                <ds:DigestValue>7/RY2vugAOvUkBK8PH8zELTUCPI=</ds:DigestValue>
              </ds:Reference>
              <ds:Reference URI="#id-21926836">
                <ds:Transforms>
    Have anybody some idea or example to resolution this issue? Thanks a lot for your answers.
    Regards, Zolo

    Hello Zolo, I hope you are doing wellu2026
    Iu2019m sending you some info that might help you with this matter.
    1)
    Please check:
    Advanced usage questions
    1.     How can I enable the WS-Security features?
    Of note below:
    1039369 - FAQ XI Axis Adapter
    2)
    Please test the SSL connection with "https://<servername>:<SSL port>".
    If SSL is configured correctly, then the SAP J2EE Engineu2019s start page appears in your Web browser.
    There shouldnu2019t be any "Security Alert" or warnings related with security.
    3)
    Please check the links below to gather further info in how to set up this scenario with certificates.
    (The below links are for 7.1 systems, if you are on 7.0, just change /saphelp_nwpi71/ by /saphelp_nw70/).
    Axis Framework in the SOAP adapter
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/45/a4f8bbdfdc0d36e10000000a114a6b/frameset.htm
    Message-Level Security
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/a8/882a40ce93185de1000000
    0a1550b0/frameset.htm
    Security Configuration at Message Level
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/ea/c91141e109ef6fe1000000
    0a1550b0/frameset.htm
    HTTPS Configuration for Messaging
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/e8/1f1041a0f6f16fe1000000
    0a1550b0/frameset.htm
    4) go to:
    http://host:port/XIAxisAdapter/MessageServlet
    The page will display the versions of the deployed components, whether the required libraries are also deployed and if Axis adapter was successfully deployed in the system.
    For more specific scenarios, e.g., WS-Security, WS-ReliableMessaging, it is also necessary to have the relevant optional components deployed. The page should show status OK when all the required components are available and otherwise status Error.
    Cheers,
    Jorge Eidelwein

Maybe you are looking for

  • Error code: 8393f01e25 when I try to sync outlook ...

    Hi, Everytime I try to sync my outlook calender and tasks I get this error message telling me I have not enough memory. Granted I am using a Nokia 6300 but surely if you introduce software it should work with all Nokia devices - Any ideas? Cheers Ern

  • Removing Sevices from General Information in MSS

    Hi All, I am very new to EP, i want to remove some links like PCR,Photo and etc from General Information in MSS. How we can remove thse links? please need help in this regard. Thanks, Ramesh

  • Code insight problem when updating classes / jars

    I have a problem with JDeveloper 9.0.3.2 build 1145.... I create a class with some methods and deploy it to a jar. I create another class in a different project and import the class from the original project. The code insight works fine. I now add a

  • How can I use my email with a password?

    Can anyone help me? How can I use a password to open my email so nobody else can read it?

  • SetDataSource Creating a Database Connection

    Hi,  I have a VS2010 C# application calling SetDataSource to point my report to a dataset in my application.  We've noticed recently each time a report is run a connection to the database is created but isn't closed when the report is closed and disp