How to initialize data?

There is a legacy Java application that has to be migrated into portal. As a first step of this process the application has to be split into 3 portlets. All of them are going to be part of the same home page of community.
This legacy application has initialization process that supposed to be executed when user login into the portal and render home page for community. As result of initialization process some data (Java objects) will be stored in remote http session. All portlets belong the same WAR file so there is no problem to share this data between all of them.
As I understand when portal render the page these portlets will be call asynchronous. So every portlet who needs this initialization data is responsible to check session and initialize them if these data are not there. Because the rest of the portlets also need this data it will introduce locking/unlocking mechanism for this http session object.
So my question is: does portal has any way to help solve this issue or this one is entire application responsibility?
Originally I was thinking that PEI may help somehow but it doesn't look like this.
Any ideas?
Thank you.
Edited by Bryazgin at 04/30/2007 9:04 AM

What is your question? You need them to go in order one at
a time?I guess my question was how to have initialization data in remote http session (shared over 3 different portlets) BEFORE portal begins render a page and actually make calls to remote server?
"Go in order" may be one of the solution, but I don't think Aqualogic supports this functionality, and there is no really needs for this because, imho, this approach kind of against of Aqualogic architecture.
"Delay" is pretty much the some as locking/unlocking in sense that implementation has to be done on application level (I don't see any options to introduce delay through portal Web Service UI).

Similar Messages

  • Initialize data before page is rendered

    How to initialize data into VO before the page is rendered such that data gets displayed in the page?

    Hi Shay,
    This information is very useful. I have couple of questions.
    1. There are two types of controllers
         a. subclass of PageController
         b. implementing PagePhaseListener
    Are there any guide lines on choosing the conroller?
    2. Currently I am editing Page Definition class and additing the controller ot it manually is there any way to add it using the tool?

  • How do I use a runbook Activity on an Incident and Runbook Initialize Data activity to sync and get the GUid from the Incident?

    I currently have a runbook running every hour to attach Incidents Templates to Problems. I would like to just add a runbook activity to the Incident Template to activate the runbook, and only link that Incident to the problem it needs to be attached to. 
    I don't know how to set-up my Initialize Data activity in my runbook to load the calling Incidents GUID though. 
    I'm very new to Orchestrator, so please be detailed in your directions.
    The way my runbook works now is, I make my incident templates have the PR # they are for in the Alt Contact Block. My runbook searched for that, and then loads the PR# it has there and creates the relationship between the two, and then deletes that PR# so
    it doesnt hit on the next search.
    I would like my activity that calls the runbook to pass the Incident GUID to the runbook, so my runbook only has to query the PR# included in the incident, and create the relationship that way.
    Thanks for any help you can provide.

    This might help:
    Working With Relationships in the SCSM Orchestrator Integration Pack
    Basically, you'll receive the ID of the runbook automation activity from Service Manager, which you can then use with the Get Object and Get Relationship to get the runbook activity object, then get the incident object related to it. I realize this is confusing,
    but there should be more info out there to search on as well. Hope that helps.
    Noah Stahl | Automys |
    Downloadable Microsoft automation examples and solutions

  • Excel 2007 = Refresh All = Error Message "Initialization Data Source Failed"

    Excel 2007 => Data Tab - Refresh All => Error Message "Initialization Data Source Failed
    2nd Error message:
    The following data ranged failed to refresh:  ExternalData1 - Continue to refresh all
    How do I resolve this? Trying to connect to Oracle DB environment 12C

    What will happen if you rebuild the PivotTable/Table ?
    Make sure the external database is available and the Oracle Provider for OLE DB is installed correctly.
    Wind Zhang
    TechNet Community Support

  • Performace tuning: how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Wei,
    Yes we can transfer the data by using
    SAP Memory OR ABAP Memory.
    Ex:  V_count TYPE i.
      V_count = 100.
    LOOP AT  itab.
    IF v_count EQ 25.
    Here For every batch job
      EXPORT data TO MEMORY ID 'ABC'
       Function module
        JOB_OPEN
       JOB_SUBMIT
       JOB_CLOSE.
      ENDIF.
    ENDLOOP .
    IN your 2nd program.
    INITIALIZATION.
    IMPORT data FROM MEMORY IF 'ABC'.
    FREE memory if .---When you free the memory you will get recent data.
    Don't forget to reward if useful.

  • Initialize Data Source errors

    Hello,
    We are running EP6 SP2 Patch34.  We have a custom DataSource xml file so that we can connect to 2 different MSAD Domains.
    This morning the account we use in one of the domains was set to expired so we were getting the following errors in the console logs
    <i><b>Warning         data source is not initialized</b></i>
    We have since fixed the issue with the ID, but we are still getting these errors in the logs.
    Does anyone know how to Initialize the datasource again without restarting the portal?
    Thanks,
    Keith
    Message was edited by: Keith Crossett

    Thank you for reminding me what I already knew but in my haste to post out a reply I had forgotten to consider looking at the provider properties.
    Today I did and the linked database still failed. The though occurred to me a little later to delete and recreate the linked db and bingo I had a working linked database to Oracle. Now I have three of them and the developer should be working with them now.
    This is the first time I ever had to change a provider property to get the provider to work. I would have thought that when the Oracle client install process registered the OLE provider with SQL Server 2005 it would be set with the proper defaults to work.
    Thanks again to everyone
    -- Mark D Powell --

  • H:inputText ; How To initialize value Property from back/bean method?

    Hello Guys at Sun Forums.
    I am a newbie at using JSF. and I'm having a bit of a Problem.
    I don't know how to initialize the value property of a h:inputText from a method inside a backing bean that returns a String data type.
    My Method inside the Backing bean is this:
    public String getLastDate()
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            Date DateCapt = null;
            String DateConv= null;
            try{
                Class.forName("com.sybase.jdbc2.jdbc.SybDrive").newInstance();
                con = DriverManager.getConnection("jdbc:sybase:Tds:localhost/BAN_PRO_SNP", "xxxx", "xxxx");
                if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT TOP 1 CONVERT(VARCHAR(10), fec_parametro, 103) fec_parametro FROM snp_sei_parametros" +
                    "     WHERE cod_parametro = 'FECHA'" +
                    "     ORDER BY fec_parametro DESC");
                    rs = stmt.getResultSet();
                    while (rs.next())
                                DateCapt = rs.getDate("fec_parametro");
                rs.close();  
                stmt.close(); 
            catch (Exception ex)
                        System.out.println("COULD NOT LOAD THE DRIVER!!!!");
                        System.out.println(ex);
                    DateConv = String.valueOf(DateCapt).toString();
        return DateConv;
    }As you can see the Method returns a String data type, and all I want to know is how put that returned String as the initial value of a h:inputText. when the jsf-jsp page loads.
    Please Help Me.

    You should be able to do
       <h:inputText value="#{bean.lastDate}"/>Where 'bean' is the managed bean name containing
    the method getLastDate().
    When the view is rendered, the getter (getLastDate())
    will be called to display whatever value is returned.

  • How create oracle data Warehouse

    hi master
    sir i am use oracle 9i how i creat data Warehouse
    and how use oracle portal for net
    please give me idea how i start and which woftware i use
    thank's
    aamir

    Do you want to craete a Data Warehouse database or you want to learn on how to design a Data Warehouse ?
    Creating a Data Warehouse database is no different than creating an OLTP database, the only thing in mind should be is that DW are mostly read-only, so you should set initialization parameters suiting DW .

  • How to initialize a field-symbols?

    I have field-symbols structure <wa1>, <wa2>.
    1. Supposed <wa1> has been assined value already, how can I copy content of <wa1> to <wa2>?
    2. How to initialize <wa2>?
    Thanks!

    Hi,
    Check this example..
    field-symbols: <fs1>, <fs2>.
    data: v_var1(10), v_var2(10).
    v_var1 = 'ABC'.
    v_var2 = 'DEF'.
    assign v_var1 to <fs1>.
    assign v_var2 to <fs2>.
    write: / 'BEFORE...'.
    write: / '<FS1> - ', <FS1>.
    write: / '<FS2> - ', <FS2>.
    <FS1> = <FS2>.
    write: / 'AFTER...'.
    write: / '<FS1> - ', <FS1>.
    write: / '<FS2> - ', <FS2>.
    CLEAR: <FS2>.
    write: / 'AFTER CLEAR...'.
    write: / '<FS1> - ', <FS1>.
    write: / '<FS2> - ', <FS2>.
    Thanks,
    Naren

  • Could not retrieve server initialization data

    This is in regard to recent issue reported under MS Project 2010 Proffesional edition. We were trying to connect MS Project 2010 Proffesional Client edition to MS Project 2010 server so that we can upload the project to resource center directly.
    Right information is added under info-> Accounts and post to that MS Project client reports the following error "Could not retrieve server initialization data". Please let me know how to get rid of this.
    Quick help is required!!
    Thanks
    Yash Bindlish

    - Confirm you created your Project Server account within the Project Client? This is done from the backstage by clicking File > Info tab. If you haven't completed
    this step, you cannot connect to Project Server.
    - Confirm when you open Project Professional 2010, did you register the account?
    To register the account
    FILE   >>> INFO 
    >>> "Manage Accounts"
    Also, make sure all the accounts do not have a default account. 
    This is to make sure the default "Computer" account is not being used.
    Also you can try with
     “Disable the loopback check”
    http://support.microsoft.com/default.aspx/kb/896861?p=1
    Thanks

  • How add my data in comboBox

    hi master
    sir this is my class give my right result in textarea
    bu i need my result in comboBox
    please give me idea how i add my result in combo box
    this line add data in taxarea
    allRowValues.append("ROW "+ rset.getString("title") + "\n");
    how i add in combo
    =========
    import javax.swing.JApplet;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.awt.BorderLayout;
    import javax.swing.JFrame;
    import javax.swing.UIManager;
    import javax.swing.JButton;
    import java.awt.Rectangle;
    import javax.swing.JTextArea;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.sql.*;
    import javax.swing.JLabel;
    import java.util.Properties;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class apcl extends JApplet {
    /** Initialization method that will be called after the applet is loaded
    * into the browser.
    private JComboBox Selector;
    private String [] ColorList;
    private JButton DbConnect = new JButton();
    private JTextArea empValues = new JTextArea();
    private Connection con;
    private JLabel jLabel1 = new JLabel();
    public apcl() {
    public void init() {
    try {
    jbInit();
    } catch(Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    this.getContentPane().setLayout(null);
    DbConnect.setText("Click to Connect to DB");
    DbConnect.setBounds(new Rectangle(90, 225, 175, 40));
    DbConnect.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    connectToDB(e);
    empValues.setBounds(new Rectangle(40, 50, 310, 150));
    jLabel1.setText("Emp Records :");
    jLabel1.setBounds(new Rectangle(45, 20, 155, 20));
    this.getContentPane().add(jLabel1, null);
    this.getContentPane().add(empValues, null);
    this.getContentPane().add(DbConnect, null);
    private void connectToDB(ActionEvent e) {
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:aamir","muhammad","mfa786");
    con = DriverManager.getConnection("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
    empValues.setText("...Connected to the Database.Fetching Values from DEPT Tables.....\n");
    fetchValues();
    } catch (SQLException ex) {
    System.out.println("Connection Error = " + ex.toString());
    public void fetchValues() {
    try {
    Statement stmt = con.createStatement();
    StringBuffer allRowValues = new StringBuffer();
    int counter = 1;
    ResultSet rset = stmt.executeQuery("SELECT accid,title FROM chartofacc");
    while (rset.next())
    //allRowValues.append("ROW " + counter + " ENAME = " + rset.getString(1) + " & ENO = " + rset.getString(2) + "\n");
    allRowValues.append("ROW "+ rset.getString("title") + "\n");
    counter++;
    empValues.setText(allRowValues.toString());
    rset.close();
    stmt.close();
    con.close();
    } catch (SQLException ex)
    System.out.println("Error While Fetching Values = " + ex.toString());
    ======
    please give me idea how i add data in combobox
    thank
    aamir

    Three times in the past I've asked you to use the "Code" formatting tags when posting code so the code is formatted and readable.
    Three strikes and your out. No code tags, no help.

  • How to populate data in table control  .

    hi all,
    i put matnr no. in screen no. 103
    validation is done at that screen only.
    now when i want to modify dat record
    when i put matnr no. at screen 103
    so how i will get all  data of dat number to table control screen.

    Hi Darshan,
       Here is a detailed description of how to update data in table controll.
      Updating data in table control
    The ABAP language provides two mechanisms for loading the table control with data from the internal table and then storing the altered rows of the table control back to the internal table.
    Method 1: Read the internal table into the Table Control in the screenu2019s flow logic.  Used when the names of the Table Control fields are based on fields of the internal table.
    Method 2: Read the internal table into the Table Control in the module pool code. Used when the names of the Table Control fields are based on fields of the database table.
    Method 1 (table control fields = itab fields)
    In the flow logic we can read an internal table using the LOOP statement. Define the reference to the relevant able control by specifying WITH CONTROL <ctrl>
    Determine which table entry is to be read by specifying CURSOR <ctrl>-CURRENT_LINE.
    After the read operation the field contents are placed in the header line of the internal table. If the fields in the table control have the same name as the internal they will be filled automatically. Otherwise we need to write a module to transfer the internal table fields to the screen fields.
    We must reflect any changes the user makes to the fields of the table control in the internal table otherwise they will not appear when the screen is redisplayed after PBO processing, (eg, after the user presses Enter or scrolls) However, this processing should be performed only if changes have actually been made to the screen fields of the table control (hence the use of the ON REQUEST)
    PROCESS BEFORE OUTPUT.
    LOOP AT ITAB_REG WITH CONTROL TCREG
    CURSOR TCREG-CURRENT_LINE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    LOOP AT ITAB_REG.
    MODULE MODIFY_ITAB_REG.
    ENDLOOP.
    MODULE MODIFY_ITAB_REG INPUT.
    MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
    ENDMODULE.
    Method 2 (table control fields = dict. fields)
    If using a LOOP statement without an internal table in the flow logic, we must read the data in a PBO module which is called each time the loop is processed.
    Since, in this case, the system cannot determine the number of internal table entries itself, we must use the EXIT FROM STEP-LOOP statement to ensure that no blank lines are displayed in the table control if there are no more corresponding entries in the internal table.
    PROCESS BEFORE OUTPUT.
    LOOP WITH CONTROL TCREG.
    MODULE READ_ITAB_REG.
    ENDLOOP.
    PROCESS AFTER INPUT.
    LOOP WITH CONTROL TCREG.
    CHAIN.
    FIELD: ITAB_REG-REG,
    ITAB_REG-DESC.
    MODULE MODIFY_ITAB_REG
    ON CHAIN-REQUEST.
    ENDCHAIN.
    ENDLOOP.
    MODULE READ_ITAB_REG OUTPUT.
    READ TABLE ITAB_REG INDEX TCREG-CURRENT_LINE.
    IF SY-SUBRC EQ 0.
    MOVE-CORRESPONDING ITAB_REREG TO TCREG.
    ELSE.
    EXIT FROM STEP-LOOP.
    ENDIF.
    ENDMODULE.
    MODULE MODIFY_ITAB_REG INPUT.
    MOVE-CORRESPONDING TCREG TO ITAB_REG.
    MODIFY ITAB_REG INDEX
    TCREG-CURRENT_LINE.
    ENDMODULE.
    Updating the internal table
    Method 1
    PROCESS AFTER INPUT.
    LOOP AT ITAB_REG.
    CHAIN.
    FIELD: ITAB_REG-REG,
    ITAB_REG-DESC.
    MODULE MODIFY_ITAB_REG ON CHAIN-REQUEST.
    ENDCHAIN.
    ENDLOOP.
    MODULE MODIFY_ITAB_REG INPUT.
    ITAB_REG-MARK = u2018Xu2019.
    MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
    ENDMODULE.
    Method 2
    PROCESS AFTER INPUT.
    LOOP WITH CONTROL TCREG.
    CHAIN.
    FIELD: TCREG-REG,
    TCREG-DESC.
    MODULE MODIFY_ITAB_REG ON CHAIN-REQUEST.
    ENDCHAIN.
    ENDLOOP.
    MODULE MODIFY_ITAB_REG INPUT.
    MOVE-CORRESPONDING TCREG TO ITAB_REG.
    ITAB_REG-MARK = u2018Xu2019.
    MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
    ENDMODULE.
    Updating the database
    MODULE USER_COMMAND_100.
    CASE OK_CODE.
    WHEN u2018SAVEu2019.
    LOOP AT ITAB-REG.
    CHECK ITAB_REG-MARK = u2018Xu2019.
    MOVE-CORRESPONDING ITAB_REG TO TCREG.
    UPDATE TCREG.
    ENDLOOP.
    WHEN u2026
    u2026
    ENDCASE.
    ENDMODULE.
    Hope this will solve your problem.
    Regards,
    Pavan.
    Edited by: PAVAN CHANDRASEKHAR GANTI on Aug 3, 2009 12:48 PM

  • How to populate data in PAY_PEOPLE_GROUPS table (People Group Flexfiled)

    Hello
    We are migrating the data from one oracle instance to another oracle instance which are in same version of Oralce Applications 11.5.10.2. As a part of migration can anybody let me know how to populate data in "People Group Key Flexfiled" (PAY_PEOPLE_GROUPS table), ideally I will create or update employee records from the source instance to destination instance, so while creating or updating the employee records in can pass people_group_id while calling to the assignment api but my question here is before passing group id to the api i should have the data populated in PAY_PEOPLE_GROUPS TABLE so that i can fetch the group id as per the combination and pass it in to the api.. please suggest...

    Thanks for your information! by any chance do you have any sample code which will create/update assignments with People Group Flexfield; when i check "hr_assignment_api.update_emp_asg_criteria" it only has parameter to pass people group id and not having segments parameters to pass individual segments.
    Also let me know the links if you have any for all HR API guide which will help me to develope the interfaces...
    My requirement is we have two instances in which in one instance we are treating as source for HR which will be used to master for all HR related activities and we are planning to develope an interface which will bring master instance in sync with dummy instance.

  • Open Hub: How-to doc "How to Extract data with Open Hub to a Logical File"

    Hi all,
    We are using open hub to download transaction files from infocubes to application server, and would like to have filename which is dynamic based period and year, i.e. period and year of the transaction data to be downloaded. 
    I understand we could use logical file for this purpose.  However we are not sure how to have the period and year to be dynamically derived in filename.
    I have read in sdn a number of posted messages on a similar topic and many have suggested a 'How-to' paper titled "How to Extract data with Open Hub to a Logical Filename".  However i could not seem to be able to get document from the link given. 
    Just wonder if anyone has the correct or latest link to the document, or would appreciate if you could share the document with all in sdn if you have a copy.
    Many thanks and best regards,
    Victoria

    Hi,
    After creating open hub press F1 in Application server file name text box from the help window there u Click on Maintain 'Client independent file names and file paths'  then u will be taken to the Implementation guide screen > click on Cross client maintanance of file name > create a logical file path by clicking on new entiries > after creating logical file path now go to Logical file name definition there give your Logical file , name , physical file (ur file name followed by month or year what ever is applicable (press f1 for more info)) , data format (ASC) , application area (BW) and logical path (choose from F4 selection which u have created first), now goto Assignment of  physical path to logical path > give syntax group >physical path is the path u gave at logical file name definition.
    however we have created a logical path file name to identify the file by sys date but ur requirement seems to be of dynamic date of tranaction data...may u can achieve this by creating a variable. U can see the help from F1 that would be of much help to u. All the above steps i have explained will help u create a dynamic logical file.
    hope this helps u to some extent.
    Regards

  • How to set data in rtf document?

    Hi friends,
    I have a rtf document can anyone suggest how to set data in cells of an rtf document?Is there any way?
    Thanks in advance..
    Regards ,
    Soumyanil

    Convert the resultSet from the db to a Object[][], let's call it result.
    Then create a JTable (jTable1).
    On the JTable you need to define the headers, and the data itself.
    You can get the headers from ResultSetMetaData. Convert these to an array again (headers).
    Now use these methods to create a model and set the model of the JTable.
    Model model =  new DefaultTableModel(result, headers);
    jTable1.setModel(model);That's about the basics.
    If you need more info, use at the tutorial at sun's homepage.
    How to use Tables:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

Maybe you are looking for

  • Calendar year per week

    Hi gurus, I have a report which is having a variable calendar year per week. when iam giving the variable inputs as for Eg: 52.2008 its showing me data in week column as WEEK 52 (DEC24-DEC31), but when iam giving the variable inputs as 1.2009 iam get

  • NAT table size understanding

    I was wondering if someone could explain the NAT table to me in this article LINK About NAT table size. I have a Rev E router. My other post is about a PSN network error and Im wondering what the heck 30,000 means? 30,000 connections, 30,000 KB's? Do

  • With Flash CC can I install it on both my PC and Mac?

    Title says it all. I vaguely remember reading that I could but now I can't find it anywhere. From what I remember it was ok to do this as long as the program wasn't being used simultaneously on both machines.

  • Import selected business area from an exported EUL file

    Hi, Iam using Oracle Business Intelligence Discoverer 10g Release 2 (10.1.2.1) , Is there a way to import selected business Area from an Exported EUL file into the Discoverer. Thanks, Krishna

  • What is BladeRunnerRegistration?

    Hello, Whilst monitoring my network bridge in terminal (I use it to monitor iCloud syncing) I noticed a bunch of error messages seemingly from Adobe products (I also use Creative Cloud) saying something like: [ERROR] AdobeAcrobat 6055.415 [2014-11-03