Session between 2 projects is null

Dear All;
I have 2 different projects, 1 that handles login and security, and the other which handles data returned
the data returned depends on session veriables that should be returned from the first application
i have a created a link on the first application to the second application, and on pagepre-render
selected to get the attribute from the session, only it is always being returned as null,
2 different proejcts, deployed sepratly can not share browser sessions?
the following is the code added, on page -prerender
public void onPagePreRender() {
if(!isPostback()){
ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
HttpSession session = (HttpSession)ectx.getSession(false);
System.out.println(session.getAttribute("worksectionid"));
FacesContext fctx = FacesContext.getCurrentInstance();
Application fapp = fctx.getApplication();
JUFormBinding formBinding = (JUFormBinding)fapp.createValueBinding("#{bindings}").getValue(fctx);
DCIteratorBinding dcBinding1 = (DCIteratorBinding)formBinding.get("SdcView1Iterator");
ViewObject vo = dcBinding1.getViewObject();
vo.setNamedWhereClauseParam("worksec", session.getAttribute("worksectionid"));
vo.executeQuery();
regards
halim

Halim,
You are correct; two separately-deployed J2EE apps are, well, separate apps, and thus do not share the session.
John

Similar Messages

  • Porting logic sessions between studios

    Hi,
    I work with Logic Pro 7 at my home studio along with the studio at my workplace. I'm trying to figure out how to take session files back and forth between the two without having issues of missing audio instrument files, etc.
    btw, both studios have the same software plug-ins (Kontakt 3, Vokator, Spectrasonics Atmosphere, etc.).
    One issue I have is that when I "consolidate" a Logic project into one folder, it doesn't save 3rd party plugin settings in the folder (it only saves Logic-related plugs like EXS24).
    Does anyone work in this type of situation?
    Do you have any suggestions to make porting Logic sessions between two locations easier?
    -Michael

    I believe the "Save as project" function is the best thing for that situation. Like you said, it won't automatically save 3rd party plugin settings, but you can always save a 3rd party plugin (in the plugin window), and then copy the file from (from user/library/app support/logic/plugin settings) into your project folder. It would be nice if "Save as Project" included that, but it's still pretty useful for consolidating elements of your project.

  • Page navigation and send parameters between different projects (ADF Faces)

    Hi,
    I am using ADF Faces 11g and have an application which has multiple web projects, I want to navigate between different projects' pages and send form values as parameters. How can i do that?
    Thanks
    Edited by: user12227999 on 16.Şub.2010 01:43

    You'll need to use JavaScript to alter the action url on the form element to achieve that, but it's going to be complex and I'm not too positive on the resulting stability in a 11g environment that often need to send XHR to the server. What's your exact use case? It looks like a bad design to me. Normal external call would be using URL parameters, which is consistent to RESTful strategies. What you want to do is a POST to an external application from another which is quite horrible imho, how will you handle session management? Piping the response from the server could be another option.
    Regards,
    ~ Simon

  • How to share the same session between JNLP Application and browser session

    How to share the same session between JNLP Application and browser session using BasicService.showDocument(url) method? It appears whenever i launch any URL from within a JNLP application using BasicService.showDocument(url) , it creates new instance of browser and session even after i used cooke handlers to restore JSESSIONID and Ltpa token etc.
    public static int showDocument(String urlToOpen)
    BasicService obj = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
    obj.showDocument(urlToOpen);
    }

    Try using Reflection

  • Stock transfer between 2 projects of different plants.

    Hi All,
    We have two plants and each plant as multiple projects. Some time it is required to transfer stock between two project which are of different plants. Currently we are using MOVEMENT TYPE 415Q , where stock transfer is done using 4 steps. Our client is insisting to do it in SINGLE step.
    Please advice whether it is possible.
    Thanks,
    Vengal Rao.

    Thanks Venkat,
    For the quick reply, but here I think using 415Q in MB1B  it has more than one step, and our projects are in different plants, I mean both project are of different plants.
    Please clarify.
    Vengal Rao.

  • How to share Sessions between 2 Weblogic ?

    Hello,
    I've some problems in setting on Weblogic. Suppose there are 2
    Weblogic Servers, WebA and WebB. A New Session will be created if user
    go to the page in WebB from WebA. Is there any methods to share the
    Session between them ? I turned on the following properties in
    Weblogic.properties already.
    weblogic.httpd.session.persistence=true
    weblogic.httpd.session.persistentStoreType=jdbc
    weblogic.httpd.session.persistentStorePool=demoPool
    weblogic.httpd.session.persistentStoreShared=true
    But a new entry will be created as long as user go to the page at WebB
    from WebA.
    In fact, I want to use the Session entry created by WebA.
    Thx
    Lim

    You need to make sure that session tracking is enabled,
    either via cookies or url rewriting. Otherwise, the incoming
    request won't be able to tell the server which session it belongs to.
    Jason
    "Cheung" <[email protected]> wrote in message news:[email protected]..
    Hello,
    I've some problems in setting on Weblogic. Suppose there are 2
    Weblogic Servers, WebA and WebB. A New Session will be created if user
    go to the page in WebB from WebA. Is there any methods to share the
    Session between them ? I turned on the following properties in
    Weblogic.properties already.
    weblogic.httpd.session.persistence=true
    weblogic.httpd.session.persistentStoreType=jdbc
    weblogic.httpd.session.persistentStorePool=demoPool
    weblogic.httpd.session.persistentStoreShared=true
    But a new entry will be created as long as user go to the page at WebB
    from WebA.
    In fact, I want to use the Session entry created by WebA.
    Thx
    Lim

  • Keep alive a session between 2 BAPI calls

    Hi -
    I am calling several BAPIs to maintain data. I am calling from an outside system as I published the BAPIs as Web Services.
    I would like that the session between 2 BAPI calls is kept, so I don't miss some session info between call #1 and call #2.
    Anyone knows a way of keeping alive a session between 2 BAPI calls?
    Thanks !

    Try this..
    <b>ARFC with Resource Management (Parallel Remote Function Call)</b>
    CALL FUNCTION 'MYFUNC'
    STARTING NEW TASK 'T1'
    DESTINATION IN GROUP 'PRFC'
    EXPORTING ...
    TABLES ...
    EXCEPTIONS ...
    communication_failure = 100
    system_failure = 101
    resource_failure = 200.
    IF sy-subrc= 102.
    wait and retry...
    ENDIF.
    <b>Define ‘PRFC’via RZ12</b>
    Amandeep

  • Block Goods Issue base on Projects if null

    i have this requirement in SP
    Scenario.
    i want to block Goods Issue base on the ff. requirement
    1. if Project is Null it will block adding the Goods Issue if U_Department and U_Section is empty
    2. if Project is not Null i will allow adding the Goods Issue even the U_Department and U_section is null
    base on this requirement i made an SP but it doesn't work.
    --      Make Department Mandatory in Goods Issue
    IF (@object_type = '60') and (@transaction_type IN (N'A', N'U'))
    BEGIN
         IF EXISTS (SELECT T0.Docentry from OIGE T0 Inner Join IGE1 T1 ON T0.Docentry=T1.Docentry where
         T1.DocEntry = @list_of_cols_val_tab_del and (T1.Project is not null and T0.U_DEPT is null or T0.U_DEPT ='' ) )
         BEGIN
              Select @error = 10, @error_message = N'Department Must be filled-up!'
         END
    END
    --      Make Section Mandatory in Goods Issue
    IF (@object_type = '60') and (@transaction_type IN (N'A', N'U'))
    BEGIN
         IF EXISTS (SELECT T0.Docentry from OIGE T0 Inner Join IGE1 T1 ON T0.Docentry=T1.Docentry where
         T1.DocEntry = @list_of_cols_val_tab_del and (T1.Project is not null and T0.U_SECT is null or T0.U_SECT =''))
         BEGIN
              SET @error = 10
              SET @error_message = N'Section Must be filled-up!'
         END
    END
    What seems to be wrong w/ my Code?
    Best Regards...
    Fidel

    hi Avelino Fidel try this try this final query ,it will work
    IF (@object_type = '60') and (@transaction_type IN (N'A', N'U'))
    BEGIN
    IF EXISTS (SELECT distinct  T0.Docentry from OIGE T0 Inner Join IGE1 T1 ON T0.Docentry=T1.Docentry where
    T1.DocEntry = @list_of_cols_val_tab_del and (isnull(T1.Project,'') = '')  or  (isnull(T0.U_DEPT,'') = '' ) )
    BEGIN
    Select @error = 10, @error_message = N'Department Must be filled-up!'
    END
    END
    Edited by: Prasanna s on Aug 29, 2009 10:20 AM

  • Difference between Oracle Projects (EBS) and Oracle Primavera

    What is the difference between Oracle Projects (EBS) or Oracle Primavera? what is Oracle’s direction on Project portfolio management solution.
    TIA

    BluShadow wrote:
    3360 wrote:
    Yes it is. The Oracle database wasn't initially designed to be ANSI compliant. As you correctly state the ANSI standards weren't around when it was initially designed, so the statement is perfectly correct. ;)Ok, in one sense it may be correct but it is a completely misleading statement. Not sure why you think it's misleading.Because there was no ANSI standard, so making it sound like a design choice The Oracle database wasn't initially designed to be ANSI compliant. would suggest to most readers that there was a standard to be compliant to.
    Like saying Ford originally did not design their cars to incorporate safety features such as ABS, seat belts and air bags.
    The OP asked "why oracle is having different syntaxes for joins than ANSI syntaxes ?" and the answer is that Oracle wasn't initially designed with ANSI compliance, so it has it's old non-ANSI syntax,As shown above, the old syntax was ANSI compliant at the time and to call it non-ANSI is either incorrect or misleading dependent on your point of view.
    and since ANSI syntax became the standard it now supports that. And since ANSI switched to a new standard, Oracle had to implement the new standard as well as the previous ANSI standard would be more accurate in my opinion.
    Nothing misleading as far as I'm aware in that.I find the whole discussion about ANSI and Oracle's supposed non-compliance, reads like it was Oracle's choice to deviate from the standards, when it was ANSI's bullheaded decisions to pointlessly change standards that left Oracle and other vendors out of compliance, and that was a decision made solely by ANSI.
    This is probably the reason ANSI no longer produces SQL standards, the endless syntax fiddling would eventually have made forward left under outer joins a reality.
    {message:id=1785128}

  • Session between multiple Webservice calls from PI7.0

    Hello XI SDNers,
    I am unable to overcome my Webservice session problem using SOAP (Axis) adapter. My scenario is as follows:
    I am calling a external Webservice deployed in Axis webservice engine from PI7.0, during my first call:  I call synchronous "Login" webservice and I became the response "User is Logged in"
    during my second synchronous call "GetItem", the webservice returns "The user doesn't have valid session". The two synchronous calls are executed from same scenario one after another!
    I lost my session after the "Login". Is there any way in PI 7.0 to maintain the session?
    Note: I tried the same scenario using XML SPY SOAP client, it is working!!!  it is maintaining the session between multiple webservice calls.
    Is there any suggestions to overcome this problem?
    Thanks and regards,
    Satish.

    Hi Satish,
       We are working on the same sort of scenarios, where we have to call more than one webservice in a sequential fashion using the same session id details.
        What we did was we built new xsds adding session details node using the webserive request and response xsds. And we are maintaining a sessions table which contains session id and  status fields in PI. So we send webservice request with the session id details. We wrote an UDF to get the session details from PI and set the status field as busy so that no other request uses the same session details.
       Webserive response again contains the sessions details which can be used for the next webservice request.
      Finally after all the calls set back the status to Active in PI table.
    Webservice Calls From a User Defined Function
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    Hope this helps.
    Thanks,
    Vijaya.

  • Hyperlinks between RH projects linked with FM books

    HI, I want to link multiple framemaker books to robohelp and use each book as a child project in a master project. However, there are multiple hyperlinks between the framemaker books. I have created individual RH projects, and linked a single book to each project.  I generated them all into a master project (as usual), but the hyperlinks between the projects (that worked fine between the PDFs generated from the original Framemaker books) are broken in the output. I check the html of the hyperlinks in RH, and while the text is recognized as a hyperlink, the href tag is missing.
    Note: All links with target and destination in the same book / project work fine.
    I could create a single book containing all these books, and then link this book to FM, and this would probably avoid the issue, but it wouldn't be a good solution as I would then have  workflow / source control issues.  Also, I would obviously prefer not to have to manually repair the links in RH, due to time contstraints.
    Any suggestions?

    How long a path length are you looking at for the linked FM documents? It turns out that RH is very sensitive to the length of the paths that make up the cross-references in FM when turning them into hyperlinks in RH.

  • Jam session between iPad and Mac

    Is it possible to start a jam session between an iPad (or iphone) and Mac?

    Agreed, it must be in development because surely the good folks at Apple have the vision (or at least the common sense) to know this should've happened a long time ago. I'm sure there's a VERY good reason why creating a session between the Mac's GarageBand and the iOS GarageBand is not yet possible and that it must happen soon, right?

  • Relation between the Project defination and the PO

    Hi ,
    Where I can find the relation between the Project defination and Purchase order in CJ20 transaction or in Tables.

    Project definition: A project definition identifies the key characteristics of the overall project. For example, a project definition includes the project profile and organizational details (controlling area, company code, etc.).
    All project definitions must include a settlement rule. A settlement rule contains a G/L account that receives the accrued actuals. In some situations, a settlement rule uses multiple G/L accounts. For example, one G/L account is used for settlement for the first half of a year, but in the second half, a different G/L account is used. However, the settlement rule does not allow for multiple receivers to be active at the same time.
    Regards,
    kushagra Sharma

  • Difference between Community Projects & Projects at Collab 4.0?

    Could anyone tell me what's the difference between "Community Projects" vs "Projects" at Collaboration 4.0?

    In addition to what George has said, Adobe Reader X version 10.0.3 is only for Mac platforms. For windows platforms, latest version is 10.0.1 only. So if you are using Windows, you should not see any updates to Reader X (10.0.1) as of now.
    Also you can see all the Reader features at http://www.adobe.com/products/reader/features.html
    From the feature dropdown, select "New features" to see what features are added to Reader X.
    For Reader 9, the latest version is 9.4.4
    Also in future you can visit the link http://www.adobe.com/downloads/updates/ which will guide you about the latest update available for your product. You may even download these installers from above link to apply patch manually.
    Thanks,
    Karan

  • Sharing sessions between web applications (WAR files)

    I am using weblogic 6.1. The opinion I have read indicates that
              sessions cannot be shared between WAR files. That is, I cannot put an
              attribute on the session from a servlet/JSP in one WAR file and read
              it out from the other. The only justification I've seen is "security".
              Now, I find this rather difficult to accept for several reasons:
              1. I cannot fathom what kind of "security" would prevent me from
              sharing the session between two web applications that I wrote myself.
              Let's say I want to write a system that I divide up, for
              modularity/separate deployment purposes, into 5 different WAR files.
              Why should I not be able to just sign on once and pass that logon
              information in the session from one to the other? (I know, I can use
              cookies or URL rewriting - but that doesn't seem to be to be a good
              solution. And if you can share information through cookies, why not
              through sessions?) What about other user information like currently
              selected language?
              2. Several app servers (iPlanet and I have heard two others) allow you
              to share sessions between WARs. Why not weblogic?
              Thanks for any information you can give me. I have not been able to
              find anything in weblogic documentation about this. If I am
              misunderstanding the server capabilities, please enlighten me.
              Thanks,
              <>< gary
              

    http://www.weblogic.com/docs51/classdocs/webappguide.html
              --kumar allamraju
              Grant Lewis wrote:
              > I'm currently evaluating weblogic and I can't find any references in
              > their documentation set stating they support web applications or war
              > files. They explicitly state in their docs the Servlet 2.2 specification
              > has been supported since version 4.5. I'm evaluating version 5.1. Can
              > anybody clear up the confusion for me.
              >
              > Grant
              

Maybe you are looking for