How to implement Startup class for OC4J

I'm in the process of converting my current J2EE application from weblogic 5.1 to OC4J.
I have startup class that would set application specific properties by reading property file. In addition, this class would also check for certain resource availability (like database) during weblogic startup. I could not find similar option in OC4J.
Any help to convert this startup class for OC4J would be highly appreciated.
Thanks
Sankaran.

Hi Sankaran,
Your eMail address suggests you work for Oracle. Do you? Can't someone
at Oracle help you?
I imagine that Oracle would have some kind of agreement with Ironflare
as well. Can't someone at Ironflare help you?
But remember, with application servers (as with RDBMSs), no two are the
same. Each one offers the same functionality, but using different methods
to achieve that functionality. I don't know how to do it, but I'm sure
you can check database availability when starting up OC4J -- just not
the same way you do it in Weblogic.
Good Luck,
Avi.

Similar Messages

  • How to implement Change pointers for Purchase order - ME22N - Custom Fields

    Hi Experts,
    Can you please tell me how to implement - Change Pointer for Custom fields in IDOC.
    I am working on IDOC - For purchase order - acknowledgements - in custom screen/tab in ME22N.
    Everything is working fine according to my requirement.
    All i need to know is the process of - Creating/Change - Change pointers for Custom fields.
    1.How to implement change pointers for custom fields.
    2.Can we maintain - Change Document - for custom fields at data element level?
    P.S. - I have browsed many previous - forums before posting a new discussion.
    please share your inputs...
    explaining how to create/implement - change pointers for custom fields will help me .
    Regards,
    Karthik Rali.

    Hi,
    To maintain Change Document for custom field:
    1. Check if "Change document" checkbox is set in data element.
    2. Find Change Document Object for transaction.
       You can use SQL trace - ST05.
       Look there for line with table CDHDR and statement insert values
       (for example for transaction KA02 Change Document Object is KSTAR)
    3. Regenerate update program for this Change Document Object in transaction SCDO
    Change documents for z-fields schould be generated.
    I am not sure about change pointers but they are configured somehow in BD61 and BD50.

  • How to implement Ajax toolkit for SharePoint2013?

    Hi All,
    How to implement Ajax toolkit for SharePoint2013?

    Hi Sam,
    Based on your description,
    I can suggest as follows:
    Use the “SharePoint AJAX 3.5 for 2010 and 2013”
    solution.
    Download URL:
    http://sharepointajax.codeplex.com/
    2.    
    Use the Ajax Control Toolkit with ASP.NET 4.5.
    Download correct version of Ajax Control Toolkit.
    http://ajaxcontroltoolkit.codeplex.com/releases/view/109918
    Add AjaxControlToolkit.dll reference to your project.
    Add Ajax Control Toolkit ScriptManager in master page.
    Register Ajax Control Toolkit namespaces in SharePoint package Designer.
    More information:
    http://timscyclingblog.wordpress.com/2013/03/22/ajaxcontroltoolkit-version-7-0123-with-net-4-5/
    http://sampathnarsingam.blogspot.in/2012/05/how-to-make-ajax-control-toolkit.html
    Please inform me freely if you have any questions.
    Thanks
    Qiao Wei
    TechNet Community Support
    Is it possible to use version AJAX
    Control Toolkit .NET 4.5 along with SharePoint 2013?
    As far as I know with SharePoint we can use only version AjaxControlToolkit(3.0.30930.0). Isnt it?

  • Please help me...how to implement a class DateAndTime.java

    I have a class named DateAndTime.java How should I implement a method which allows me to check if the date entered by user is valid or not?. Also when the hour continues to a next day, how should I implement a method for a nextDay()? Thank you
    class DateAndTime
         private int hour, minute, second, month, day, year;
         Constructor to initialize DateAndTime.
         Default DateAndTime 0:0:0 1/1/1
         public DateAndTime()
         {     month = 1;
              day =1;
              year =1;
         Constructor to set DateAndTime to specific values.
         Calls member function setDate and setTime to set variables.
         @param h hour of the DateAndTime
         @param m minute of the DateAndTime
         @param s second of the DateAndTime
         @param mo month of the DateAndTime
         @param d day of the DateAndTime
         @param y year of the DateAndTime
         public DateAndTime(int h, int m, int s, int mo, int d, int y)// CONSTRUCTOR
         {     if (isValidDate(mo, d, y))    //if date entered is valid, the date and time will be set
                   setDate(mo, d, y);
                   setTime(h, m, s);
              else
                   System.out.println("Invalid Date :" + mo + "/" + d + "/" + y);
                   setDate(1,1,1);
         Set the values of hour, minute, and second.
         @param h hour of the DateAndTime
         @param m minute of the DateAndTime
         @param s second of the DateAndTime
         public void setTime( int h, int m, int s ) //DEFINING SETTERS, SETTING time,hour,minute,and second,
         setHour( h );
         setMinute( m );
         setSecond( s );
         Set the hour if valid or to default 0.********************SET HOUR
         public void setHour( int h )
         {     hour = ( h >= 0 && h < 24 ) ? h : 0;     }
         Set the minute if valid or to default 0.******************SET MINUTE
         public void setMinute( int m )
         {     minute = ( m >= 0 && m < 60 ) ? m : 0;     }
         Set the hour if valid or to default 0. ******************SET SECOND
         public void setSecond( int s )
         {     second = ( s >= 0 && s < 60 ) ? s : 0;     }
         Set the values of month, day, and year.
         @param mo month of the DateAndTime
         @param d day of the DateAndTime
         @param y year of the DateAndTime
         public void setDate(int mo, int d, int y)//DEFINING SETTERS, SETTING DATE FOR month,day,and Year
              setMonth(mo);
              setDay(d,mo,y);
              setYear(y);
         Set the month if valid or to default 1. ****************SET MONTH
         public void setMonth(int mo)
         {     month = (mo >= 1 && mo <= 12)? mo : 1;  }
         Set the day if valid or to default 1. ****************SET DAY
         public void setDay(int d, int mo, int y) // ?????
         {     day = (isValidDate(mo,d,y))? d : 1;  }
         Set the year if valid or to default 1. ****************SET YEAR
         public void setYear(int y)
         {     year = (y >=1)? y : 1;     }
         Get the hour value.
         @return int
         public int getHour() {   return hour;  } //DEFINING GETTERS get hour, minute, second
         Get the minute value.
         @return int
         public int getMinute() {   return minute;  }
         Get the second value.
         @return int
         public int getSecond() {   return second;  }
         Get the month value.
         @return int
         public int getMonth() {   return month;  } //DEFINING GETTERS get month, day, and year
         Get the day value.
         @return int
         public int getDay() {   return day;  }
         Get the year value.
         @return int
         public int getYear() {   return year;  }
         Finds whether a given date is a valid date in A.D..
         @param mo month of the DateAndTime.
         @param d day of the DateAndTime.
         @param y year of the DateAndTime.
         @return boolean valid or not
         public static boolean isValidDate(int mo, int d, int y)
         //your code goes here
              return true;
         Print time DateAndTime in military format.
         public void printMilitary()
         System.out.println( month + "/" + day + "/" + year + "\t"
                   + ( hour < 10 ? "0" : "" ) + hour + ":"
         + ( minute < 10 ? "0" : "" ) + minute);
         Formats DateAndTime for printing.
         @return String
         public String toString()
         return ( month + "/" + day + "/" + year + "\t"
                   + (( hour == 0 || hour == 12 ) ? 12 : hour % 12)
         + ":" + ( minute < 10 ? "0" : "" ) + minute
         + ":" + ( second < 10 ? "0" : "" ) + second
         + ( hour < 12 ? " AM" : " PM" ));
         Increments DateAndTime by one second.
         Hint: calls nextDay() if tick() results in going in to next day.
         public void tick()
              //Your code goes here
    second++;
    if (second >59)
         second = 0;
         minute++;
    if (minute > 59)
         minute = 0;
              hour++;
              if(hour >23)
         //      hour = 0;
         nextDay();
         Increments DateAndTime by one day.
         public void nextDay()
              day++;
              //your code goes here
    }//end class

    See java.util.Calendar
    and java.util.GregorianCalendar
    You can do all types of date validation with those classes.

  • How to implement parent entity for core data

    Hi there.
    I am starting a document-based Core Data application (Cocoa) and developed the following data model;
    The 'invoice' entity is a parent entity of 'items', because ideally I would want there to be many items for each invoice. I guess my first point here is - is what I am trying to do going to be achieved using this method?
    If so, I have been trying several ways in Interface Builder to sort out how to implement this structure with cocoa bindings. I have made a Core Data app before, just with one entity. So this time, I have two separate instances of NSArrayController's connected to tables with relevant columns. I can add new 'invoice' entities fine, but I can't get corresponding 'items' to add.
    I tried setting the Managed Object Context of the 'item' NSArrayController to this;
    I thought this would resolve the issue, but I still have found no resolution to the problem.
    If anyone done something similar to this, I'd appreciate any help
    Thanks in advance,
    Ricky.

    Second, when you create a Core Data Document Based application, XCode generates the MyDocument class, derivating from NSPersistentDocument. This class is dedicated to maintain the Managed Object Model and the Managed Object Context of each document of your application.
    There is only one Context and generally one Model for each Document.
    In Interface Builder, the Managed Object Context must be bound to the managedObjectContext of the MyDocument instance: it's the File's owner of the myDocument.xib Nib file.
    It's not the case in your Nib File where the Managed Object Context is bound to the invoiceID of the Invoice Controller.
    It's difficult to help you without an overall knowledge of your application, perhaps could you create an InvoiceItem Controller and bind its Content Set to the relationship of your invoice.

  • How to implement content caching for jsp page ?

    Hello everyone,
    I am reading an article <Servlets and Jsp Best Practice>,at
    http://developer.java.sun.com/developer/technicalArticles/javaserverpages/servlets_jsp/#author, on one section it is saying :
    "Cache content: You should never dynamically regenerate content that doesn't
    change between requests. You can cache content on the client-side, proxy-
    side,or server-side. "
    Now I am working on a project. For every user, some of the content servlet generated will be the same for at least a week . I am thinking if I implement caching for these jsp pages, that would increase performace a lot.
    But I have no idea how to implement it either client-side or server-side, can someone give me a hint ?
    Thanks,
    Rachel

    You mean actually you are caching the response stream
    and the key to distinguish between different response
    streams are made of user's different request
    parameters. And the filter's function is to intercept
    the request to see if this request parameter's
    combination already exists in the Hashmap,then either
    use the cached response or forward to
    servlet.....really interesting...Do I get it right ?Yes that's it in a nutshell.
    >
    Then how do you build those response streams in
    advance ? You did it manually or have some mechanism
    to build it automatically ?
    The data gets cached the first time somebody visits the page.
    Find some examples on Filters, and take a look at the HttpServletResponseWrapper class. You need to cache response headers as well as the body. Another pitfall that you might run into is handling an If-modified-since header on the request. Don't cache the results of those requests.
    -Jonathan
    >
    Thanks again !
    Rachel

  • How to write a class for this?

    how do i write a different class for this? how do i implement the "a.add(b)"? it code is to test basic arithmetic operations.
              System.out.print ("Arithmetic: enter two integer numbers: ");
              Integer a = new Integer (Integer.parseInt(kbd.readLine()));
              Integer b = new Integer (Integer.parseInt(kbd.readLine()));
              System.out.println (a + "+" + b + "-" + b + "*" + a + "/" + a + "%" + b + " is: "                                    + a.add(b).sub(b).mul(a).div(a).rem(b));                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    public class arthOperation{
         add()
              sub()
         sub(){
              mul()
         mul(){
              div()
         div(){
              rem()
         rem(){
    is it write?

  • How to implement tool-tip for the list items for the Choice column in SharePoint 2013

    I had created a simple list with a "Choice" column, i have three entries in my drop-down, 
    First Entry
    Second Entry
    Third Entry.
    If i select any entries in drop-down and hour-over (Second Entry), a
    tool-tip need need to show. 
    Is it possible? If yes how to implement any help will be appreciated.

    Hi,
    We can use JavaScript to achieve it.
    The following code for your reference:
    <script type="text/javascript" src="/sites/DennisSite/Shared%20Documents/js/wz_tooltip.js"></script>
    <script type="text/javascript" src="/sites/DennisSite/Shared%20Documents/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript">
    $(function () {
    $("select[title='Choice']").change(function(){
    Tip($(this).val());
    $("select[title='Choice']").mouseout(function(){
    UnTip();
    </script>
    Download wz_tooltip.js:
    http://www.walterzorn.de/en/tooltip/tooltip_e.htm#download
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to implement SEARCH HELP for input field in WDA

    Hi All,
    I am doing a tool for my team. in this tool there are 4 input fields to show different processes. I implemented the 4 input fields and also bind the respective tables to these fields successfully. Actually I want to filter the data between 2 fields . Means the data in the 2nd input field should be based on the 1st input field. Means when I'll select for example 'CHI' (code for CHINA) in the 1st input field the 2nd field meant for country name should show all country name with value 'CHINA'. But the problem is that all values related to each field are in different table with no foreign key relationship and also some combinations are in single table..
    I have tried the import and export parameter method for search help but no luck till now.
    Can anyone please suggest me how to implement this scenario..
    Thanks in advance...
    sekhar

    Hi sekhar,
    Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
    Look at the below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    You need to use the component WDR_OVS.
    It has 3 phases
    In phase 1
         You will fetch the value from input field to F4 help dialog box.
    In phase 2
         You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
    In phase 3
         The selected value will be returned to the original screen.
    Regards
    Karthiheyan M

  • How to create object class for a z table

    Hi All,
    I have a z table and I want to register the changes of fields should be logged to CDHDR and CDPOS table.
    Is this possible?
    If yes how can I creat an object class for a z table. I have already checked the change document option in z data element.
    Please help.
    Regards,
    Jeetu
    Moderator message: standard functionality, please search for available information/documentation before asking.
    locked by: Thomas Zloch on Oct 6, 2010 6:16 PM

    Tcode SCDO. You'll need to create a change document for you Z table and then use the FM created to record the changed data.

  • How to implement password policy for a software in oracle (sql) forms & reports 6i ?

    Hi all , I have to implement password policy for an already existing software which was created 2 to 3 years before.
    What exactly i want to do is I must alert the user every month to change his/her password. I have no idea about it.
    Can anyone help me how to start with it? Or can you provide me the links where i can learn & implement in the software?
    Oracle Forms & Reports Builder 6i.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.
    Thank You.

    You can try this:
    Establishing Security Policies
    Using database policy, you can force user to change password with Oracle forms 6i.
    Regards

  • How to Implement Screen Exits for MK01...

    Hi All,
    I have to implement screen exits for Tcode MK01.
    There is a BADI namely VENDOR_ADD_DATA_CS for Mk01.
    Please guide me on how to implement a screen exit..
    If possible send me the steps to be followed.
    Regards,
    Vidya.

    Hi,
      Check this:
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    Have a look at this thread:
    your working with BADI Then do as follows....
    you follow the SPRO way and do everything they say.
    1.you make an own z program with your subscreens
    2.by VENDOR_ADD_DATA you put something like this to method CHECK_ADD_ON_ACTIVE:
    Aktivierung Zusatzfelder für ZDB
    if i_screen_group = 'Z1'.
    e_add_on_active = 'X'.
    endif.
    3.by VENDOR_ADD_DATA_CS you put something like this to get_taxi_screen
    CASE i_taxi_fcode.
    Premier
    WHEN 'Z1_SRCE1'.
    e_screen = '0100'.
    e_program = 'ZPM_SCREENEXIT_MK02'. " your own program
    e_headerscreen_layout = ' '.
    Deuxiem
    WHEN 'Z1_SRCE2'.
    e_screen = '0110'.
    e_program = 'ZPM_SCREENEXIT_MK02'.
    e_headerscreen_layout = ' '.
    ENDCASE.
    4. you make sure, that everything is active
    Regards
    Kiran
    Edited by: Kiran Sure(skk) on Apr 11, 2008 3:42 PM

  • How to implement  BADI's for the below issue

    Hi All,
    The URL is being populated correctly (without any spaces) to the follow on document (PR/PO) created in R/3 after implementing code corrections in BBP (replacing space by ‘=’ as shown below).
    When sending the PO to supplier portal, the outbound IDOC segment does not get populated properly. The text format ‘=’ is again converted to space in ECC 6.0 which was not the case with 4.5B.
    This is an upgrade issue as the function module used to format text ‘FORMAT_TEXTLINES’ is completely different in ECC 6.0. The entire code of this function module in 4.5B has been commented in ECC 6.0 and new code has been implemented which splits the text and inserts spaces while formatting as shown below.
    This issue can be resolved by implementing a customer exit or a BADI which gets called after standard SAP populates the IDOC. It requires implementing custom code to remove the unwanted spaces inserted by standard SAP for text id F07. Hence after SAP completes its processing to populate the IDOC, the text would be processed further to remove unwanted spaces before actually sending the IDOC out from SAP R/3.
    Thus this upgrade issue resolution requires R/3 development
    1.     BADI Definition:  ME_MMPUR_EINM, Method: PROCESS_TEXT
    This option is preferable.
    2.     User exit: EXIT_SAPLEINM_002
    I need your help on how to write this code in the form of BADI's.where we write and how to implement. ASAP
    thanks,
    Sridhar

    Hi All,
    The URL is being populated correctly (without any spaces) to the follow on document (PR/PO) created in R/3 after implementing code corrections in BBP (replacing space by ‘=’ as shown below).
    When sending the PO to supplier portal, the outbound IDOC segment does not get populated properly. The text format ‘=’ is again converted to space in ECC 6.0 which was not the case with 4.5B.
    This is an upgrade issue as the function module used to format text ‘FORMAT_TEXTLINES’ is completely different in ECC 6.0. The entire code of this function module in 4.5B has been commented in ECC 6.0 and new code has been implemented which splits the text and inserts spaces while formatting as shown below.
    This issue can be resolved by implementing a customer exit or a BADI which gets called after standard SAP populates the IDOC. It requires implementing custom code to remove the unwanted spaces inserted by standard SAP for text id F07. Hence after SAP completes its processing to populate the IDOC, the text would be processed further to remove unwanted spaces before actually sending the IDOC out from SAP R/3.
    Thus this upgrade issue resolution requires R/3 development
    1.     BADI Definition:  ME_MMPUR_EINM, Method: PROCESS_TEXT
    This option is preferable.
    2.     User exit: EXIT_SAPLEINM_002
    I need your help on how to write this code in the form of BADI's.where we write and how to implement. ASAP
    thanks,
    Sridhar

  • How to implement search engine for pdf file.

    Hi
    I am newbie to AIR technolgy .how  to implement search engine . when i enter the name of file in search box , it should fetch correspoding  the pdf file .
    Please help me out
    Thanks
    Mohan

    Hi sekhar,
    Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
    Look at the below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    You need to use the component WDR_OVS.
    It has 3 phases
    In phase 1
         You will fetch the value from input field to F4 help dialog box.
    In phase 2
         You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
    In phase 3
         The selected value will be returned to the original screen.
    Regards
    Karthiheyan M

  • How to implement 3tier architecture for HFM11.1.2.2

    Hello Guys,
    I want to implement 3tier architecture for HFM11.1.2.2 ie separating web part and apps part in two different servers. Please tutelage on how to achieve the same.

    Hi Kashi,
    Thanks for the pdf. Do you have any custom doc for the same. I want to implement only Hyperion Financial Management. I dont want FR or FDM. And moreover i want to segregate APP and Web part. When my client sends any request, it should first hit the web server first and then should redirect to the app server. I have implemeted HFM in single server but unable to find any help for implementing 3 tier.
    Regards,
    Suresh.

Maybe you are looking for

  • Problem in file to rfc scenario without using BPM concept

    hi ,   I have configured the file to rfc scenatio and in that i have created a synchronous message interface .i have even aaded modules to my sender adapter . I have one sender aggrement , 2 receiver aggrement , 1 interface determination , and 1 rece

  • READ_TEXT Not displaying correct data

    HI abapers, I am using the FM READ_TEXT  for reading change document long text , for some document it gives correct data but for some other doc it give some unrelated data , when i debug i found in IMPORT statement inside the FM gives this unrelated

  • Airport Express with D-Link router?

    I bought an Airport Express with the specific purpose of connecting an old 1999 iMac to the internet (D-Link wireless router) via the ethernet port. I also thought I could use it to connect other ethernet devices such as my HD-DVD player. I tried to

  • Upgrade content db (OCS) 10.1.2.4 to 10.2

    Hi, For the upgrade I guess a new content database is created, but can I not upgrade the existend content db from OCS to the content db 10.2? So I keep the data in it? I wanted to install contentdb 10.2 but fails because ocs 10.1.2 is in the database

  • Automated Phoneline Checking Catch 22

    Using BT Infinity Boardband and Telephone. Only problem cannot receive incomming calls. To any caller the phone just keeps ringing. Used internet based system to check line. It found no problem. I used test socket using a different phone and it still