Regarding session
how to create a session in slingservlet can anybody pls tell me??
Are you looking to get jcr session in sling servlet? if yes use request.getResourceResolver().adaptTo(Session.class); which will give you the current JCR session, you don't have to create a session.
Similar Messages
-
hi,
My question is ,how i have set session in php and in flex. i could not know how to set session in flex and php.How to handle session in flex.
Please provide me solution to solve the problem.
Thanks and Regards,
venkat.RHi Venkat,
You have to save PHPSESSID. for each request you made to server send this as URLVariable.
I think this should work.
let me know If it is helpfull.....
Thanks,
Vikram -
Hi All,
I have developed one web application using JSP's, which is accessed by more than 500 employees at a time. today i noticed that some employees getting another employee data, who is also accessing at same time. i am not able understand what is reason behind this? while retrieving data from database, i am checking with employee code every where.
and one more thing, my JSP having three frames in a single page. sometimes one frame is refreshing and another frame is not refreshing.
is this situation related sessions or cookies or cache data....
i am using Tomcat 6 as my web server.
please suggest me, what are the precautions i need to take while releasing a application into the web.
regards
Visisht.NareshParimi wrote:
I have developed one web application using JSP's, which is accessed by more than 500 employees at a time. today i noticed that some employees getting another employee data, who is also accessing at same time. i am not able understand what is reason behind this? while retrieving data from database, i am checking with employee code every where. The code is not thread safe. This can only be caused by poor written code logic without solid background knowledge. For example holding a request/session scoped reference as a servlet instance variable, or as a static variable or as an application scoped bean, etcetera. -
Regarding Session execution in Background
Hi Gurus
While I am uploading the flat file using vb01 tc in Back ground using submit rsbdcsub, I am facing the following problems:
By execute the program,The session is creating with no "new" or "error" status.
This is Happening because when I tried in foreground the records are processing after I pressed the "save" button only.This is happening for all records.even though the records are mapping absolutely properly I need to press save button each time to process that record. By the "enter" key it is not processing.
Beacuse my requirement is to process the records in Background I required no user interaction while processing.
How can I resolve this.
Your suggestions and views are highly encouragable.
Please respond quickily.
Regards,
KumarAre you doing LSMW or BDC? if you are using recording then you must have missed the saving of it.
let me know more details. -
Query regarding session timeout
Hi all,
I have a scenario. My OAF page session gets timed out after 15 minutes and prompts me to login again. But before logging in, I just clicked on the back button of my browser and I was able to see the previous page. Can anyone please advise me how to resolve that loop-hole?
Regards
Geethu
Edited by: 982489 on Jan 17, 2013 5:26 AM
Edited by: 982489 on Jan 17, 2013 5:35 AMTry this in Process Request. This will throw an error when back button is clicked. Refer to OAF Dev guide for more details on isBackNavigationFired
if (pageContext.isBackNavigationFired(true))
pageContext.redirectToDialogPage(new OADialogPage(NAVIGATION_ERROR)); //This will divert you to error page if back button is used.
//your processRequest code
Thanks
Shree -
Regarding Session log messages format..
Hi All,
I am reading session logs as follows,
CALL FUNCTION 'RSTS_READ'
TABLES
DATATAB = LOG_TABLE
EXCEPTIONS
FB_CALL_HANDLE = 4
FB_ERROR = 8
FB_RSTS_NOCONV = 12
FB_RSTS_OTHER = 16
OTHERS = 16.
I am getting all my messages in the Log_table,
But those messages or not formated is there any Function module to format the session log messages ??
Plz let me know if any ASAP.
Thanks
Sureshhi,
try with FM format_message, it works.
see the sample code,
data: l_message type string.
if tab_error-msgtyp = 'I' or tab_error-msgtyp = 'S'.
call function 'FORMAT_MESSAGE'
exporting
id = tab_error-msgid
lang = 'EN'
no = tab_error-msgnr
v1 = tab_error-msgv1
v2 = tab_error-msgv2
v3 = tab_error-msgv3
v4 = tab_error-msgv4
importing
msg = l_message
exceptions
not_found = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
reward points if useful,
regards,
seshu. -
Urgent regarding session variable
Hi Everyone,
I have a prompt having fromdate(calendar ctrl) and todate(calendar ctrl) and one orderID(here it is multiselect). Now my requirement is i should select an order ID from the multiselect and when i hit go the date should be prompted for the fromdate and todate and these should pass in the report.
Please help me how can i pass the session variables for the 'fordate' and 'todate' based on the orderid i am selecting from multiselect.
Thank you so much for your help.
Thanks,
chakrHi,
In the Dashboard prompt u can see edit column--> edit column formula--> here select varaible type as ---> session then include...see the screen short.
http://imageshare.web.id/images/2c3f2h66sb7l5nzfittl.jpg
1) In your DB Prompt go to Default To
2) Select Server Variable
3) NQ_SESSION.startdate and NQ_SESSION.enddate
4) Save and test
That should work well for you. Here is a link to a jpg that you should probably save for future reference. It'll show you the proper syntax to use in different situations.
http://shivabizint.files.wordpress.com/2008/10/obiee-variables-overview.jpg
Thanks
Deva -
Regarding session handling in BSP
hi all,
we have integrated our BSP application to EP 5.o, we have used 'existbspapplication'(used buffered page) function in our default page to handle the sessions.
and its working fine, but now we have to integrate it to the EP 6.0 and we find the sessions are not terminated, and tend to remain after closing the application manually.
my question is does portal handle sessions if yes, tried the same(by removing session handling code from default page) but could not get the desired result. is there any other way to handle sessions in EP 6.0
thanks,
raju
Message was edited by: krishnam rajuHi,
Did you set the checkbox for portal integration on in the properties of the BSP page?
Check also
http://help.sap.com/saphelp_nw2004s/helpdata/en/83/132197c3564643af326a5ebccb604f/frameset.htm
Furthermore, check things like
/people/eddy.declercq/blog/2005/11/15/enemy-of-the-state
/people/eddy.declercq/blog/2006/03/20/wake-me-up-before-you-go-go
Eddy -
I have added my two JSP pages in security constraint. First user logins and is able to view two pages after login.Now I have
confusion that i have not added cookies in my coding and when I login and view one page and when i move to
next page then from moving from 1st page to next page is only possible when session is mentained and this
is only possible when container reads session ID from cookies. Then without cookies how container is reading the session ID?OK sir i accept that
But to add cookies one has to add coding: Cookie c=new Cookie(); c.add(..........)And that i have not added in the adding.
I hope cookies are not added automatic. -
Hi
I am using jdev 11.1.2.1.0
I am setting session variable on my login page by using
ADFContext.getCurrent().getSessionScope().put("u_name", rs.getString("empname"));
And using in template title by using #{sessionScope.u_name}
After login on first page it is displaying correctly but when i navigate to other page by using command link or image command link it is not displaying the value .
Please Solve this problem
ThanksDoes a getId() on the forwarded page and the page forwarded from return the same value?
-
Hi
I am using jdev 11.1.2.1.0
I have two session variable.
I want to update both dynamically.
Is it possible to do same ?
if it is possible to do the same then please tell me how
ThanksHi Timo Hahn
I am elaborating my complete use case
I am developing a travelling bill approval system.
I have two fragments one which shows all applied bill on which user can claim any no of bill to approve.
and on second shows all claimed bill to approve,reject or unclaim.
I use both fragment on a jsf page at different tabs
Now on jsf page I want to highlight no of records that how many no of bills are user claimed and how many no of bills are pending to approve.
Now Suppose if there are 10 bills pending to approve than at starting the pending bills should be 10 and claimed bill should be 0
If user claims 2 bills to approve then pending bills should display 8 and claimed bills should display 2
if user approve one bill among of 2 claimed bills then claimed bill should display 1.
And if user go back to claim more bills and claim 2 bills then pending bills should display 6 bills and claimed bill should display 3 bills and so on.....
This is what I want to do....
Thanks -
Hello
Working Environment : Weblogic Server 8.1
There are 2 web applications, called 'Forecast Tracker' and 'AQUA'. Both applications
are located in 2 different application Server Instances. Now from one of the pages
of 'Forecast Tracker' (by calling AQUA servlet), I will traverse to 'AQUA' application.
In AQUA, I will go through some pages and select some options, and I will come
back to 'Forecast Tracker' application. Now how will I ensure that I will be
in session 'SAME' as before I went to 'AQUA'.
Thanks
Kiran
Hi Ryan, Thanks a lot for your reply.
Just wanted to make sure that I understand your point correctly.
Application Servers will identify the session using JSessionId. If I access 2
diff applications from the same browser window, this JSessionId cookie is NOT
overwritten. I mean the session of Forecast Tracker will NOT be lost if I access
AQUA application from the samebrowser window?
IF this is the case, using the same cookie (JSessionId) how 2 diff applications
communicate with the browser ?
Thanks for your patience in answering my silly questions.
Kiran
"ryan upton" <[email protected]> wrote:
>Hmmm, I'm guessing that by saying "how will I ensure that I will be
> in session 'SAME' as before I went to 'AQUA'." you mean the same session
>object that you were using from Forecast Tracker. The answer is you
>don't
>have to do anything to ensure it, the server will keep the session
>information straight for you through the JSESSIONID it created when you
>created a Session on the server hosting Forecast Tracker. If both Forecast
>Tracker and AQUA create Sessions then you will have two distinct Session
>objects on each of the servers hosting the apps each server will get
>the
>appropriate session IDs for each app via the session cookies held by
>your
>browser.
>
>Hope that helps you
>~Ryan Upton
>
>
>
>"Kiran Kumar" <[email protected]> wrote in message
>news:[email protected]...
>>
>> Hello
>>
>> Working Environment : Weblogic Server 8.1
>>
>> There are 2 web applications, called 'Forecast Tracker' and 'AQUA'.
> Both
>applications
>> are located in 2 different application Server Instances. Now from one
>of
>the pages
>> of 'Forecast Tracker' (by calling AQUA servlet), I will traverse to
>'AQUA'
>application.
>> In AQUA, I will go through some pages and select some options, and
>I will
>come
>> back to 'Forecast Tracker' application. Now how will I ensure that
>I will
>be
>> in session 'SAME' as before I went to 'AQUA'.
>>
>> Thanks
>> Kiran
>>
>
>
-
Hi,
when two users login with the same username and password, First logined users session have to close automatically. Is it possible, pls convey ur idea and help me.hi
good
its possible only for ECC 5.0 and ECC 6.0 not before that,in this two version if two user open the sap logon using same uid and pwd than the first window ll close automatically but in the previeous version it ll show you a message that wheather you want to close the previous window that you have been open or you ll continew with this window without closing that.
thanks
mrutyun^ -
Regarding sessions created fro User Requests
Hi SDNs,
My doubt is we have J2EE Engine remotely.
And we all access that by giving the SDM Password.
Now the server will get down if multiple hits are attempted on the server(i.e.if one or more persons deploy there application)
Then the administrator will unlock the locked objects.
and make the server.
This is upto my knowledge.
Can anyone explain this scenario more in depth.
or the doc or blog which expalins this scenario in depth.
Thanks & Regards,
Lokesh@EDS.Hi Lokesh,
When more than one user deploying the application to server at same time. Only the first person deployment will be successfully others will get aborted. Only one person can deploy at a time.
If you have more users it will be tough to develop and debug in single server at the same time. So you can install Local WAS as per your Remote server version. Once development and testing over you can move to Remote server.
Hope I cleared your doubts.
Regards, Suresh KB -
Hello Everybody,
I am new to Oracle. I have few questions regarding session kill.
1)Does “killed” session consume any system resources like RAM, CPU?
2)Whether one should kill the process rather than the session?
3) Does ALTER SYSTEM KILL SESSION command kill both user session and server process?
With Regards.1)Does “killed” session consume any system resources like RAM, CPU? Killed Status In v$Session Indicates PMON is too busy to clean up.
You could refer to
http://www.oracle-base.com/articles/misc/KillingOracleSessions.php
2)Whether one should kill the process rather than the session?Refer to
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4974573906087
3) Does ALTER SYSTEM KILL SESSION command kill both user session and server process?session is not a process, a process is not a session.
please refer to Tom Link.
Maybe you are looking for
-
ACTUAL COSTS:REPORT WITH STATISTICAL WBS AND ASSETS ASSIGNED TO THEM
Hi all, I would like to run a report that gave me this info: WBS Element (all statistical) Assets assigned to each WBS Actual costs It would be perfect CJI3 but it doesn't show assets. In AM I haven't see either any report that shows WB
-
Buttons created in InDesign, exported to flash
Good evening, I need to deal with different geometric shapes (about 200) designed in InDesign, such as buttons: 1: click the left should change color, and reclick must return to the old color; Let me know if laying out everything to get what is writt
-
I can't print to my RICOH AFICIO SP C410DN
I've tried for a week now to figure out how to coneect my RICOH AFICIO SP C410DN to no avail. HELP? My printer is connected via an ehternet cable from my modem to the ethernet port on my printer. I go to Printers & Scanners and it will not find it. W
-
I have been asked to review a new app for Ipad/iphone . The developers site is asking me to download a plug- in to view, is this safe
-
My touchscreen suddenly stopped working. I cannot even answer my telephone. What are you supposed to do if there is no Apple Store near you and you can't call Apple or AT&T because you can't open your phone because the touchscreen doesn't respond? Th