ICX session sharing between EBS and ADF. Navigate from EBS page by page of ADF custom application. but every time I get the session as a GUEST, even if I give valid credentils to enter into EBS.

Hello

I am integrating EBS and ADF through sharing of session ICX. Navigate from EBS page by page of ADF custom application. but whenever I get session as GUEST (VALID_GUEST), even if I give credentials valid at the EBS system. I should get a valid session that I have connected with a valid user. As it it a VALID_GUEST that the status of cookie icx, back (he got newspapers/debug) and I am.  Comparing with status cookie VALID icx, so every time system opens the Apps login page.  I used fndext.jar to do this. Please help me on this. I'm not sure it's a problem with DB/EBS EBS system, or the code of the adf. My code spruce is given below.

import java.io.IOException;

import java.sql.Connection;

import java.sql.SQLException;

Import javax.faces.application.FacesMessage;

Import javax.faces.context.FacesContext;

to import javax.servlet.http.HttpServletRequest;

to import javax.servlet.http.HttpServletResponse;

Import oracle.adf.controller.v2.lifecycle.Lifecycle;

Import oracle.adf.controller.v2.lifecycle.PagePhaseEvent;

Import oracle.adf.controller.v2.lifecycle.PagePhaseListener;

Import oracle.apps.fnd.ext.common.AppsRequestWrapper;

Import oracle.apps.fnd.ext.common.CookieStatus;

Import oracle.apps.fnd.ext.common.EBiz;

Import oracle.apps.fnd.ext.common.Session;

/ public class MyCustomPhaseListner implements PagePhaseListener {}

public MyCustomPhaseListner() {}

Super();

}

AppsRequestWrapper wrappedRequest = null;

HttpServletRequest request = null;

HttpServletResponse response = null;

String currentUser store = null;

String currentUserId = null;

{} public void afterPhase (PagePhaseEvent pagePhaseEvent)

If (pagePhaseEvent.getPhaseId () == Lifecycle.PREPARE_RENDER_ID) {}

System.out.println ("in phase");

If (wrappedRequest! = null & &)

wrappedRequest.getConnection ()! = null) {}

try {}

If (! wrappedRequest.getConnection () .isClosed ())

wrappedRequest.getConnection (m:System.NET.Sockets.Socket.close ());

} catch (SQLException e) {}

}

}

}

}

{} public void beforePhase (PagePhaseEvent pagePhaseEvent)

If (pagePhaseEvent.getPhaseId () == Lifecycle.INIT_CONTEXT_ID) {}

Channel agent = null;

System.out.println ("forward Phase");

FacesContext fctx = FacesContext.getCurrentInstance ();

request =

(HttpServletRequest) fctx.getExternalContext () .getRequest ();

answer =

(HttpServletResponse) fctx.getExternalContext () m:System.NET.FtpWebRequest.GetResponse ();

CookieStatus icxCookieStatus = null;

try {}

Connection EBSconn = ConnectionProvider.getConnection ();

EBiz instance = EBizUtil.getEBizInstance ();

wrappedRequest =

new AppsRequestWrapper (request, response, EBSconn,

(instance);

A session = wrappedRequest.getAppsSession (true);

tried with "a session = wrappedRequest.getAppsSession ();" / / do not return not of any session

icxCookieStatus =

session.getCurrentState () .getIcxCookieStatus ();

Agent = wrappedRequest.getEbizInstance () .getAppsServletAgent ();

If (! icxCookieStatus.equals (CookieStatus.VALID)) {}

response.sendRedirect (agent + "AppsLocalLogin.jsp");

return;

}

currentUser = session.getUserName ();

currentUserId = session.getUserId ();

} catch (Exception ob) {}

ob.printStackTrace ();

}

FacesMessage message =

new FacesMessage ("Session is:" + icxCookieStatus + "" +)

currentUser + "" + currentUserId);

fctx.addMessage (null, message);

}

}

}

Have you checked

https://blogs.Oracle.com/jruiz/entry/adf_and_oracle_e_business

https://blogs.Oracle.com/jruiz/entry/adf_and_oracle_e_business2

http://www.Oracle.com/technetwork/tutorials/EBS-SDK-ADF-1887167.PDF

https://www.YouTube.com/watch?v=9wGv7yxRgVU

Timo

Tags: Java

Similar Questions

Maybe you are looking for

  • At startup, the Apple iMac logo flashes red after update to Mac OS Sierra

    After upgrading to Mac OS Sierra, my 2015 iMac 21.5 retina has a flashing red Apple logo, then a brief splash screen flickering when starting. Once started, the computer seems fine, with no obvious debris. I don't know why the logo flashes red and th

  • Re: remote control on XP SP3

    On my A200-1PD, after installation of XP SP3, remote control doesn't work.How about you?

  • Unexpected calls from the Germany

    Yesterday, I started to receive calls from the Germany. People say that they missed call on their phone, that's why they are callimg me back. I checked the call history and I did not call these numbers. Is it possible that there is a double reality o

  • HP Pavilion g6: password? lost

    We cannot connect to laptop to my son, he says please enter the Administrators or the power on password, to which my son don't remember, after three try, we get a system off message (67022185). can you help us please. Sam.

  • Bad battery installed in U410

    I started my U410 in Ubuntu and checked the battery capacity. The theoretical ability showed 46 Wh, instead of the 59 Wh on the hardware maintenance manual... can anyone else confirm?