Session Time Out capturing for legacy application running in portal
Hi Forums,
I am using portal URL iView to connect to legacy application. How to capture the session time of of that legacy application and show it in the portal. In portal I have already handled session time out which shows a javascript popup message. I want to call the same piece of code once session time out happens in the legacy application which is been accessed by portal through URL iview.
Many Thanks and Best Regards
Sudhir
Hi Sudhir,
The handling of the session timeout should be done by the application itself not the portal. From the portal you have no way of working out what the application is doing. My suggestion to you is that you need to modify the application to handle the scenario you describe not the portal.
BRgds,
Simon
Similar Messages
-
Session time out in ADF 11g application.
Hi,
I am working for the ST BPO Project. We have one ADF application that is migrated from 10g to 11g.And our application is deployed on the weblogic server.
we are facing some session time out issues in the application which is intermittent and whenever we leave the web page for some times, the session get timed out and page gets errored out.
We have set the session time out parameter in web.xml as well as for AM.
Session Management:
Following are the parameters which we have set already.
1. Web.xml
We have put the following session time out in web.xml:
<session-config>
<session-timeout>180</session-timeout>
</session-config>
2. bc4j.xcfg
We have set the timetolive property of AM as:
<AM-Pooling jbo.ampool.timetolive="10000000" jbo.pooltimetolive="10000000"/>
3. Also for the DB we have set the session time out to 180 mins.
But if we leave the page for say some times around 5-10 min, the session of the page expires and it throws error.
Also, as per our investigation : After some times the view id of the page gets expired and hence the issue comes. Also the behaviour is only on the weblogic server and we don't face any issues in the local set up.
Kindly help us in solving this problem. Also let me know if any further details is required.
Thanks
Namit.Hi,
suggest you also contact customer support on this issue. The version of your JDeveloper 11g release may matter as well
Frank -
SSO - session time out while navigating across applications
Hi,
Problem statement
Handling session time out while navigating across applications involving SSO
Current approach
Application 1
1. Create session1.
2. URL rewrite the sesssion ID1 into the link refering to App2.
Application 2
1. Create session2
2. Get the session Id of App1.
3. send the session ID of App1 in the header
4. Invalidate the session2
Application 1
Get the ID from request and invoke getSession.
I'm having a very large session timeout at App1.
Is there a better approach. Ex: Having global session which is shared across multiple
webapplications."madhav" <[email protected]> wrote:
>
Hi,
Problem statement
Handling session time out while navigating across applications involving
SSO
Current approach
Application 1
1. Create session1.
2. URL rewrite the sesssion ID1 into the link refering to App2.
Application 2
1. Create session2
2. Get the session Id of App1.
3. send the session ID of App1 in the header
4. Invalidate the session2
Application 1
Get the ID from request and invoke getSession.
I'm having a very large session timeout at App1.
Is there a better approach. Ex: Having global session which is shared
across multiple
webapplications.
I have similiar problems in my system. What do you do if the session 1 times out
during ongoing operations in App 2 ?
Thanks
Kejuan -
Session time out when working in application level
Hi
We are upgraded our PROD environment from 11.5.10.2 to R12.1.3
When end user working at application level then it is throughing the session time out error, end user is not idle state he active and working on application level
I have checked the profile ICX:Session Timeout it is 30
Thanks
ShaikHi;
Please see:
ICX:SESSION TIME OUT
Re: Inccreasing the timeout parameter for the Oracle R12 session
Also see:
How AutoConfig sets ICX: Session Timeout [ID 307149.1]
How To Manage Timeout at Responsibility Level [ID 412224.1]
Regard
Helios -
Session time out in a web application
Hi,
I am making a struts based web application. For session time out validation I have made an entry in the web.xml file as <session-config>
<session-timeout>1</session-timeout>
</session-config>
In case the user's session time out occurs then he should be directed back to the log in page.
Can any one tell me how to proceed in this case and what are the best practices.
thanksHi
I've tested it with OC4J and it works both ways.
I do think that you must have the
<session-config> tag present though for the setMax... method to
work, observe that this method is for seconds and not millisecond
regards
//Mike
Hi all,
I try to manage by my application the http session time-out.
Change it in a web.xml works fine , but if in my servlet i try
to change it using setMaxInactiveInterval(MILLISECOND) the result
is that the session became invalidate after few seconds instead
50 minutes ad example ....
Answer ????
thks
Carlo Mossa -
How to get Portal Session Time out values of CRM system
Hi,
I had a requirements to pass the Portal session Time out value to the External Configurator. How can I get that value. Is there any Function Module to get this value.
If you go to SMICM and select services, we see HTTP details. I need to get the Time out value what its showing there. How can I get that value. Is there any FM to get that value or Is there any existing code.
Please let me know if you need any further information.
Thanks.Hi
The session time out value for CRM WEBUI is controled by parameter RDISP/PLUGIN_AUTO_LOGOUT.
Its value is got by BSP.
Please check in SE80 BSP application CRMCMP_IC_FRAME view hideenview.htm.
If you want to know the session time out value for portal, I am afraid that you need to raise questions in EP's forum.
Best regards,
Maggie -
How to get Portal Session Time out values.
Hi,
I had a requirements to pass the Portal session Time out value to the External Configurator. How can I get that value. Is there any Function Module to get this value.Hi
The session time out value for CRM WEBUI is controled by parameter RDISP/PLUGIN_AUTO_LOGOUT.
Its value is got by BSP.
Please check in SE80 BSP application CRMCMP_IC_FRAME view hideenview.htm.
If you want to know the session time out value for portal, I am afraid that you need to raise questions in EP's forum.
Best regards,
Maggie -
SSO Partner Application and Session Time out
Hi ,
We have an application on forums.oracle.com which is implementing the Authentication scheme as SSO, that is working well, now we want to implement Session Time out if the user is idle for some time and ask him to login again after the session fails, I have tried to implement this feature as given by Scott in the thread session timeout , well the problem is since we dont have a login page here how do we set the cookies owa_cookie.send(
name => 'HTMLDB_IDLE_SESSION',
value => to_char(sysdate+(20/1440),'DD-MON-YYYY HH24:MI:SS'),
expires => null,
path => '/',
domain => null
and where is the current point to implement it.
Any help on this is greatly welcome.
Thanks in Advance.Naveen,
I don't remember how the solution works. But if you don't have a login page you can usually put code in the post-authentication process of your authentication scheme to do whatever the login page process would have done.
Scott -
Session Time Out For UNLOGGED IN USER During Search -pls help SIR!
Hi,
The problem lies in searchresultscontroller.java/searchcontroller.java file under search/web/handler of an application that supports educational note sharing.
The problem is that -
When I search with query strings in different fields(as you will find in the above mentioned java files)..the keywords in resourcedto and get some files as search results.
Then I click on one of the file from within the search result and visit the file.
Here if I m logged in as an user, and the session time out is set to 1 minute in the web.xml file of the web folder not the admin folder then when I hit the BACK TO SEARCH button it easily goes back to the previous search result page along with the queries string that I had input previously.
The problem is that when I m NOT LOGGED in as an user, and I've performed a search with queries and other dropdowns in the search panel, I get the search result page, I visit the file by clicking on one of them but when I hit the BACK TO SEARCH button I don't see the previous search result page from where I had navigated to view the file.
Please suggest on what changes shall I make in the code so that even if I m not logged in as an user, I get back to the search result page on hitting the BACK TO SEARCH button from the file view page.Sir I m herein pasting the code of the searchresultscontroller.java file, but please feel free to ask for anyother file whose code you might want to see.SEARCHRESULTSCONTROLLER.JAVA FILE CONTENT-
package com.mgh.sps.search.web.handler;
import java.util.Map;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.validation.BindException;
import org.springframework.validation.Errors;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import com.mgh.sps.search.business.facade.Search;
import com.mgh.sps.common.dto.ResourceDTO;
import com.mgh.sps.common.util.SessionAttributeKey;
import com.mgh.sps.common.util.SessionManager;
import com.mgh.sps.fileusage.web.constants.FileUsageWebConstants;
public class SearchResultsController extends SimpleFormController {
* SearchResults Controller
* @author Muralikrishna.s
* @Codedondate DD-MM-YY=26-07-07
* @Usecase/s associated =UC504
private static final Logger logger = Logger
.getLogger(SearchResultsController.class.getName());
private final static String REG_EXP = "^[A-Za-z0-9]*$";
private final static Pattern EMAIL_PATTERN_REG = Pattern.compile(REG_EXP);
* Spring framework method used to hold reference data
* @param request
* HttpServletRequest
* @param command
* Object
* @param arg2
* Errors
* @return Map
* @throws Exception
@Override
protected Map referenceData(HttpServletRequest request, Object command,
Errors errors) throws Exception {
logger.debug("SearchResultsController.referenceData() method entered:"
+ request + "," + command + "," + errors);
SessionManager.setSessionAttribute(SessionAttributeKey.tabIndex,
FileUsageWebConstants.TAB_SEARCH, request);
Search search = (Search) super.getWebApplicationContext().getBean(
"searchfacade");
ResourceDTO resourceDto = (ResourceDTO) command;
String[] allValues = new String[7];
if (null != (String[]) SessionManager.getSessionAttribute(
SessionAttributeKey.allValues, request)) {
allValues = (String[]) SessionManager.getSessionAttribute(
SessionAttributeKey.allValues, request);
resourceDto.setKeywords(allValues[0]);
resourceDto.setCountry(allValues[1]);
resourceDto.setUniversityName(allValues[2]);
resourceDto.setSubjectArea(allValues[3]);
resourceDto.setQualification(allValues[4]);
resourceDto.setYearLevel(allValues[5]);
resourceDto.setSpecificType(allValues[6]);
logger.debug("%%%%%%%%%%%%%%%%%qualification%%%%%%%%%%%%%%%"
+ resourceDto.getQualification());
String flag = (String) request.getParameter("id");
resourceDto.setFlag(flag);
logger.debug("SearchResultsController.referenceData() method exited:");
return search.retrieveReferenceData(resourceDto);
* Spring framework method used to hold OnSubmit
* @param request
* HttpServletRequest
* @param response
* HttpServletResponse
* @param command
* Object
* @param arg3
* BindException
* @return ModelAndView
* @throws Exception
@Override
protected ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response, Object command, BindException errors)
throws Exception {
SessionManager.cleanup(request);
logger.debug("SearchResultsController.onSubmit() method entered:"
+ request + "," + command + "," + response + "," + errors);
Search search = (Search) super.getWebApplicationContext().getBean(
"searchfacade");
Map dynamic = (Map) getServletContext().getAttribute("config");
ResourceDTO resourceDto = (ResourceDTO) command;
SessionManager.removeSessionAttribute(SessionAttributeKey.allValues,
request);
//changed by sreelatha on sep21
//resourceDto.setKeywords(request.getParameter("keywords"));
//String key = request.getParameter("keywords");
//logger.debug("&&&&&&&&&&&&& key &&&&&&&&&&&&" + key);
String keywords = (request.getParameter("keywords"));
if(null!=keywords) {
keywords = keywords.trim();
resourceDto.setKeywords(keywords);
// changes end
resourceDto.setUniversityName(request.getParameter("universityName"));
resourceDto.setSubjectArea(request.getParameter("subjectArea"));
resourceDto.setCountry(request.getParameter("country"));
resourceDto.setQualification(request.getParameter("qualification"));
resourceDto.setYearLevel(request.getParameter("yearLevel"));
resourceDto.setSpecificType(request.getParameter("specificType"));
String[] allValues = new String[7];
//changed by sreelatha on sep21
//allValues[0] = request.getParameter("keywords");
allValues[0] = resourceDto.getKeywords();
//changes end
allValues[1] = request.getParameter("country");
allValues[2] = request.getParameter("universityName");
allValues[3] = request.getParameter("subjectArea");
allValues[4] = request.getParameter("qualification");
allValues[5] = request.getParameter("yearLevel");
allValues[6] = request.getParameter("specificType");
SessionManager.setSessionAttribute(SessionAttributeKey.allValues,
allValues, request);
if(null!=keywords) {
keywords = keywords.trim();
String words="";
for(int i=0;i<keywords.length();i++) {
String key=String.valueOf(keywords.charAt(i));
if(key.contains("*")) {
key = key.replace("*"," ");
} else if(key.contains("?")) {
key = key.replace("?"," ");
} else if(key.contains("[")) {
key = key.replace("["," ");
} else if(key.contains("{")) {
key = key.replace("{"," ");
} else if(key.contains("(")) {
key = key.replace("("," ");
} else if(key.contains(")")) {
key = key.replace(")"," ");
} else if(key.contains("+")) {
key = key.replace("+"," ");
} else if(key.contains("
key = key.replace("
} else if(key.contains(" ")) {
key = key.replace(" "," ");
} else if(key.contains("_")) {
key = key.replace("","");
} else if(!EMAIL_PATTERN_REG.matcher(key).matches()) {
key = key.replaceAll(key," ");
words = words + key;
keywords = words;
resourceDto.setKeywords(keywords);
SessionManager.setSessionAttribute(SessionAttributeKey.test, search.setInputValues(resourceDto, dynamic), request);
String name = (String) SessionManager.getSessionAttribute(SessionAttributeKey.tempName, request);
String flag1 = request.getParameter("id");
String status="";
if (flag1 !=null && flag1.equals("loggedInUser"))
if(name==null)
return new ModelAndView();
if (flag1 !=null && flag1.equals("loggedInUser")){
status = "redirect:SearchResults.htm?id=loggedInUser";
}else if(flag1 !=null && flag1.equals("nonLoggedInUser"))
status = "redirect:SearchResultsnlu.htm?id=nonLoggedInUser";
super.setSuccessView(status);
ModelAndView mav = new ModelAndView(super.getSuccessView());
logger.debug("SearchResultsController.onSubmit() method exited:");
return mav;
}Cross-posted in many forums. Don't answer this one.
-
Session Time Out For UNLOGGED USER During Search -pls help
Hi,
The problem lies in searchresultscontroller.java/searchcontroller.java file under search/web/handler of an application that supports educational note sharing.
The problem is that -
When I search with query strings in different fields(as you will find in the above mentioned java files)..the keywords in resourcedto and get some files as search results.
Then I click on one of the file from within the search result and visit the file.
Here if I m logged in as an user, and the session time out is set to 1 minute in the web.xml file of the web folder not the admin folder then when I hit the BACK TO SEARCH button it easily goes back to the previous search result page along with the queries string that I had input previously.
The problem is that when I m NOT LOGGED in as an user, and I've performed a search with queries and other dropdowns in the search panel, I get the search result page, I visit the file by clicking on one of them but when I hit the BACK TO SEARCH button I don't see the previous search result page from where I had navigated to view the file.
Please suggest on what changes shall I make in the code so that even if I m not logged in as an user, I get back to the search result page on hitting the BACK TO SEARCH button from the file view page.Sir I m herein pasting the code of the searchresultscontroller.java file, but please feel free to ask for anyother file whose code you might want to see.
SEARCHRESULTSCONTROLLER.JAVA FILE CONTENT-
package com.mgh.sps.search.web.handler;
import java.util.Map;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.validation.BindException;
import org.springframework.validation.Errors;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import com.mgh.sps.search.business.facade.Search;
import com.mgh.sps.common.dto.ResourceDTO;
import com.mgh.sps.common.util.SessionAttributeKey;
import com.mgh.sps.common.util.SessionManager;
import com.mgh.sps.fileusage.web.constants.FileUsageWebConstants;
public class SearchResultsController extends SimpleFormController {
* SearchResults Controller
* @author Muralikrishna.s
* @Codedondate DD-MM-YY=26-07-07
* @Usecase/s associated =UC504
private static final Logger logger = Logger
.getLogger(SearchResultsController.class.getName());
private final static String REG_EXP = "^[A-Za-z0-9]*$";
private final static Pattern EMAIL_PATTERN_REG = Pattern.compile(REG_EXP);
* Spring framework method used to hold reference data
* @param request
* HttpServletRequest
* @param command
* Object
* @param arg2
* Errors
* @return Map
* @throws Exception
@Override
protected Map referenceData(HttpServletRequest request, Object command,
Errors errors) throws Exception {
logger.debug("SearchResultsController.referenceData() method entered:"
+ request + "," + command + "," + errors);
SessionManager.setSessionAttribute(SessionAttributeKey.tabIndex,
FileUsageWebConstants.TAB_SEARCH, request);
Search search = (Search) super.getWebApplicationContext().getBean(
"searchfacade");
ResourceDTO resourceDto = (ResourceDTO) command;
String[] allValues = new String[7];
if (null != (String[]) SessionManager.getSessionAttribute(
SessionAttributeKey.allValues, request)) {
allValues = (String[]) SessionManager.getSessionAttribute(
SessionAttributeKey.allValues, request);
resourceDto.setKeywords(allValues[0]);
resourceDto.setCountry(allValues[1]);
resourceDto.setUniversityName(allValues[2]);
resourceDto.setSubjectArea(allValues[3]);
resourceDto.setQualification(allValues[4]);
resourceDto.setYearLevel(allValues[5]);
resourceDto.setSpecificType(allValues[6]);
logger.debug("%%%%%%%%%%%%%%%%%qualification%%%%%%%%%%%%%%%"
+ resourceDto.getQualification());
String flag = (String) request.getParameter("id");
resourceDto.setFlag(flag);
logger.debug("SearchResultsController.referenceData() method exited:");
return search.retrieveReferenceData(resourceDto);
* Spring framework method used to hold OnSubmit
* @param request
* HttpServletRequest
* @param response
* HttpServletResponse
* @param command
* Object
* @param arg3
* BindException
* @return ModelAndView
* @throws Exception
@Override
protected ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response, Object command, BindException errors)
throws Exception {
SessionManager.cleanup(request);
logger.debug("SearchResultsController.onSubmit() method entered:"
+ request + "," + command + "," + response + "," + errors);
Search search = (Search) super.getWebApplicationContext().getBean(
"searchfacade");
Map dynamic = (Map) getServletContext().getAttribute("config");
ResourceDTO resourceDto = (ResourceDTO) command;
SessionManager.removeSessionAttribute(SessionAttributeKey.allValues,
request);
//changed by sreelatha on sep21
//resourceDto.setKeywords(request.getParameter("keywords"));
//String key = request.getParameter("keywords");
//logger.debug("&&&&&&&&&&&&& key &&&&&&&&&&&&" + key);
String keywords = (request.getParameter("keywords"));
if(null!=keywords) {
keywords = keywords.trim();
resourceDto.setKeywords(keywords);
// changes end
resourceDto.setUniversityName(request.getParameter("universityName"));
resourceDto.setSubjectArea(request.getParameter("subjectArea"));
resourceDto.setCountry(request.getParameter("country"));
resourceDto.setQualification(request.getParameter("qualification"));
resourceDto.setYearLevel(request.getParameter("yearLevel"));
resourceDto.setSpecificType(request.getParameter("specificType"));
String[] allValues = new String[7];
//changed by sreelatha on sep21
//allValues[0] = request.getParameter("keywords");
allValues[0] = resourceDto.getKeywords();
//changes end
allValues[1] = request.getParameter("country");
allValues[2] = request.getParameter("universityName");
allValues[3] = request.getParameter("subjectArea");
allValues[4] = request.getParameter("qualification");
allValues[5] = request.getParameter("yearLevel");
allValues[6] = request.getParameter("specificType");
SessionManager.setSessionAttribute(SessionAttributeKey.allValues,
allValues, request);
if(null!=keywords) {
keywords = keywords.trim();
String words="";
for(int i=0;i<keywords.length();i++) {
String key=String.valueOf(keywords.charAt(i));
if(key.contains("*")) {
key = key.replace("*"," ");
} else if(key.contains("?")) {
key = key.replace("?"," ");
} else if(key.contains("[")) {
key = key.replace("["," ");
} else if(key.contains("{")) {
key = key.replace("{"," ");
} else if(key.contains("(")) {
key = key.replace("("," ");
} else if(key.contains(")")) {
key = key.replace(")"," ");
} else if(key.contains("+")) {
key = key.replace("+"," ");
} else if(key.contains("\\")) {
key = key.replace("\\"," ");
} else if(key.contains(" ")) {
key = key.replace(" "," ");
} else if(key.contains("_")) {
key = key.replace("_","_");
} else if(!EMAIL_PATTERN_REG.matcher(key).matches()) {
key = key.replaceAll(key," ");
words = words + key;
keywords = words;
resourceDto.setKeywords(keywords);
SessionManager.setSessionAttribute(SessionAttributeKey.test, search.setInputValues(resourceDto, dynamic), request);
String name = (String) SessionManager.getSessionAttribute(SessionAttributeKey.tempName, request);
String flag1 = request.getParameter("id");
String status="";
if (flag1 !=null && flag1.equals("loggedInUser"))
if(name==null)
return new ModelAndView();
if (flag1 !=null && flag1.equals("loggedInUser")){
status = "redirect:SearchResults.htm?id=loggedInUser";
}else if(flag1 !=null && flag1.equals("nonLoggedInUser"))
status = "redirect:SearchResultsnlu.htm?id=nonLoggedInUser";
super.setSuccessView(status);
ModelAndView mav = new ModelAndView(super.getSuccessView());
logger.debug("SearchResultsController.onSubmit() method exited:");
return mav;
}Cross-posted in many forums. Don't answer this one.
-
Session time out up to # hours for Interaction center
Hi Experts,
I want increase the web ui session time out up to # hours. I tried using SMICM and Technical Profile. But using these options i could not achieve such long session. I tried using RZ 11 icm keep alive parameter, but the effect will apply for all the applications in the CRM WEB UI.
I want do this for only Interaction center application not for all other application in CRM WEB UI .
Please help me how I can do this.
Thanks
DineshHi Dinesh,
This cannot be achieved without development enhancements to some standard SAP framework component, to introduce a "keep-alive" concept. If you are using a CMS for CTI or email integration, you need to ensure it supports keeping the communications session alive also.
Sincerely,
Glenn
Glenn Abel
Covington Creative
www.covingtoncreative.com -
Session time out in Websphere Application Server
Hi ,
I am using Websphere Application server 5.1 . I need to set the session time out for my web application. Actually, i edited the web.xml and set the value
<session-config>
<session-timeout>10</session-timeout>
</session-config>But when I am refreshing my jsp page, after 10-15 mts, i am able to get a valid page without any problem. Actually since the session time out is 10 mts , I should not get a valid page after 10 mts . I tried one more option for setting the session time out . I opened the admin console of my App server and set the session time out there too. But session not seems to be timing out after 10-15 mts. I am still able to get a valid jsp page. I have many session attributes in that page. So after 10 mts, i should not get a valid page.. I dont know, what's wrong in my configuration. If some body knows the answer please help me.
thanks in advance.
Aneesh KSo what you're trying to achieve is that the ui closes or becomes invalid if no action has been performed for a certain time? That should be easy enough, install a javax.swing.Timer somewhere in your application and set it to the time you desire. Whenever the user performs an action, invoke reset() on the timer (it's a fairly cheap operation). If the timer fires, you know the timeout occured.
You have to decide for yourself what you consider a 'user action' in this context. If you want the session to stay alive as long as the user is still doing something, just install an AWTEventListener, which can react to pretty much anything, mouse movement, keyboard input etc. -
Session time out in Application server -reg
hi friends
We have Oracle Application server 10g in cluster mode in our organization. We are using Oracle Forms and Reports . But there is one issue. If the user keeps the screen idle for more than 20 min the system gets timed out and requires sdba authentication . We actually increased the time out value. But we could not able to remove sdba authentication. Our aim is to remove authentication after session time out. It is ok even if the application completely closes and comes out of the screen. But the user must not be asked to enter sdba credentials after system is idle for the time out period.
M.C.JayanarayanHi,
you posted this question to the JDeveloper forum, where it may be better posted to the application server forum or the Forms forum
Frank -
Hello
i have an application deployed on weblogic 11. after 30mins the application session times out.
1.how can increase this time.
2. can this be done in weblogic since on the application side there is no configuration for the time out.
please assist me
ThanksHello;
On middleware the default should be 3600 seconds.
To change :
Login to the WebLogic Administration Console
Under domain structure click Deployments
Click on the "em" Enterprise Application
Click on the Configuration Tab
Set "Session Timeout (in seconds):" to 7200 ( or whatever you want )
Hit the Save button to save your changes in the deployment plan
I would make sure an idle timeout in not set in the database profile as well.
Best Regards
mseberg
Also worth a look :
How to Troubleshoot Oracle Fusion Middleware 11g OPMN Issues? [ID 1303000.1]
Edited by: mseberg on Oct 28, 2011 12:41 PM -
Crystal report Viewer Session times out for more data in Portal
Hi All,
I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
Please help . Please let me know if I am missing something.. Thanks in Advance!!!
CODE;
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
<%@page
import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
<%@page import="com.crystaldecisions.report.web.viewer.*"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
<%@page import="java.io.Writer"%>
<%@page import="java.io.IOException "%>
<%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
<% response.setHeader("pragma","no-cache");//HTTP 1.1
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.addDateHeader("Expires", -1);
response.setDateHeader("max-age", 0);
//response.setIntHeader ("Expires", -1);
//prevents caching at the proxy server
response.addHeader("cache-Control", "private"); %>
<%
String reportPath,Sharedpath;
ReportClientDocument reportClientDocument;
ParameterFieldController parameterFieldController;
try{
reportPath = "reportlocation";
Sharedpath = "Target Location";
reportClientDocument = new ReportClientDocument();
reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");
System.out.println("Connecting...");
parameterFieldController = reportClientDocument.getDataDefController()
.getParameterFieldController();
parameterFieldController.setCurrentValues("", "param 1",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
parameterFieldController.setCurrentValues("", "Param 2",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
reportClientDocument.close();
System.out.println("Finished...");
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setOwnPage(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
viewer.setReportSource(Sharedpath);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
System.out.println("Finished...");
} catch (ReportSDKException e) {
// TODO Auto-generated catch block
e.printStackTrace();
%>Hi All,
I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
Please help . Please let me know if I am missing something.. Thanks in Advance!!!
CODE;
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
<%@page
import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
<%@page import="com.crystaldecisions.report.web.viewer.*"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
<%@page import="java.io.Writer"%>
<%@page import="java.io.IOException "%>
<%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
<% response.setHeader("pragma","no-cache");//HTTP 1.1
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.addDateHeader("Expires", -1);
response.setDateHeader("max-age", 0);
//response.setIntHeader ("Expires", -1);
//prevents caching at the proxy server
response.addHeader("cache-Control", "private"); %>
<%
String reportPath,Sharedpath;
ReportClientDocument reportClientDocument;
ParameterFieldController parameterFieldController;
try{
reportPath = "reportlocation";
Sharedpath = "Target Location";
reportClientDocument = new ReportClientDocument();
reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");
System.out.println("Connecting...");
parameterFieldController = reportClientDocument.getDataDefController()
.getParameterFieldController();
parameterFieldController.setCurrentValues("", "param 1",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
parameterFieldController.setCurrentValues("", "Param 2",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
reportClientDocument.close();
System.out.println("Finished...");
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setOwnPage(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
viewer.setReportSource(Sharedpath);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
System.out.println("Finished...");
} catch (ReportSDKException e) {
// TODO Auto-generated catch block
e.printStackTrace();
%>
Maybe you are looking for
-
How to create new groups (list) for storing user's data?
Hi, I'm using cq-5.4 and I was undertaking the campaign management tutorial which explains about how to send out a weekly news letter. As a part of that I was creating a sign up form for subscribers to fill out. So after filling up that form, user's
-
My podcast doesn't appear on Itunes search
It has been 4 days now since I created my podcast and it still does not appear on Itunes search, nor does it appear when attemtping to browse for it under the categories and subcategories section. my podcast feed was validated so there doesn't appear
-
Apple TV 2 and my Sony HDTV, no HDCP? But my PS3 works fine...
I'm disappointed to find that both my Roku box and PS3 work fine on my Sony KDF-E42A10 HDTV with HDMI however my new Apple TV V2 does not. What is going on here? How come my brand new Apple TV does not work? I am getting the following ERROR: This con
-
Web Service + Table Function Question
Hi! I've been reading recently an article http://www.oracle.com/technology/sample_code/tech/java/jsp/samples/tablefunction/Readme.html and i was wondering is there any possibility to do the same thing in apex ? There is a need to use the table functi
-
Unzip file with .sar and .car extensions.
Hi, how unzipping file with .sar .car extensions? Best regards