How to Trace a Session

Hi,
Can you please tell me how we can trace a session in SQL Developer?
After I press the Autotrace option on worksheet, it does not get activated.
Please help me,
Thanks,
Rahul

Rahul,
did you intend to do a session trace (e.g. "sql_trace=true") or the autotrace ("set autotrace ...")? The autotrace button does NOT trace your whole session but only the sql in your window, one at a time.
This works for me in v1.1.25.14, yet there seems to be an issue with the explain plan.
Regards,
--==/ Uwe \==--

Similar Messages

  • How to trace a session in 3 Tier Architecture

    Hi All,
    We are not able to trace perticutler terminal in 3 tier application b'coz OS user and terminal shows as application host (Server) name
    So kindly provide some workaround for the same.
    Thanks in advance
    Regards,

    Please have a look to end to end tracing: http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#i19083

  • How to trace a user session?

    Hi DBA,
    OS: Linux 5
    DB Ver: 10.2.0.1
    can any one tell me how to trace a session of user in oracle 10g?
    Regards,
    BK

    user12942781 wrote:
    Hi DBA,
    OS: Linux 5
    DB Ver: 10.2.0.1
    can any one tell me how to trace a session of user in oracle 10g?
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#CHDDGCCB
    HTH
    Aman....

  • How to trace other user's session?

    Dear Experts,
    I would like to trace other user's session, I am on Oracle 10g R2 (10.2.0.4) on a Windows box. I did search on google and found tons of articles explaining about tracing techniques. But unfortunately, trace file is not getting generated in my case. Below are the steps I am following:
    SQL> conn /as sysdba
    Connected.
    SQL>
    SQL> select sid, serial# from v$session where username = 'TEST';
           SID    SERIAL#
            38         17
    SQL> show parameter user_d
    NAME                                 TYPE        VALUE
    user_dump_dest                       string      C:\DB10G\UDUMP
    SQL> show parameter timed_s
    NAME                                 TYPE        VALUE
    timed_statistics                     boolean     TRUE
    SQL>Connect a new SQL*Plus session as TEST and then
    SQL> show user
    USER is "SYS"
    SQL>
    SQL> select sid, serial# from v$session where username = 'TEST';
           SID    SERIAL#
            19      24465
            38         17
    SQL> exec dbms_system.set_ev(38,17, 10046, 12, '');
    PL/SQL procedure successfully completed.
    SQL> exec dbms_system.set_ev(38,17, 10046, 0, '');
    PL/SQL procedure successfully completed.
    SQL> grant execute on dbms_system to test;
    Grant succeeded.
    SQL> exec dbms_system.set_ev(38,17, 10046, 12, '');
    PL/SQL procedure successfully completed.in the new session (TEST):
    SQL> select * from tab;
    TNAME                          TABTYPE  CLUSTERID
    T                              TABLE
    T3                             TABLE
    T1                             TABLE
    T2                             TABLE
    MYEMP                          TABLE
    SQL>Yet, no trace file is generated in "C:\db10g\udump" folder.
    C:\db10g\udump>dir
    Volume in drive C is SYSTEM
    Volume Serial Number is AC21-0462
    Directory of C:\db10g\udump
    12/15/2008  12:36 PM    <DIR>          .
    12/15/2008  12:36 PM    <DIR>          ..
                   0 File(s)              0 bytes
                   2 Dir(s)   9,891,508,224 bytes free
    C:\db10g\udump>Your help/advice in this regard will be very helpful.
    Regards

    You must be using shared server.
    You can verify this by referring to the SERVER column of v$session.
    In shared server several servers will execute your code, so that's why you don't find a trace file.
    The method described in this article should work in your case also:
    http://technology.amis.nl/blog/1794/how-to-trace-a-java-application-through-a-connection-pool-using-dbms_monitor-6
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • How to trace session(3rd paty application) accessing oracle

    Solaris 9
    oracle 9i and 10g
    I would like to know how to trace session which is 3rd party application currently running .
    I need to collect statisctics for currently running session.
    Thanks.
    Message was edited by:
    user539835

    See this thread:
    Re: SQL_TRACE help to newbie in oracle
    Search the forum and you will also see how to manually decode most of the trace file.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • How to trace the ip address of user session?

    how to trace the ip address of user client session?

    Hi.
    This should help:
    http://www.oracle-base.com/articles/misc/IdentifyingHostNamesAndAddresses.php
    Cheers
    Tim...

  • How to trace an error

    Dear all,
    How to trace a purticular error ?
    from metalink
    Diagnose the issue by running the following trace
    alter system set events '1775 trace name ERRORSTACK level 3';
    Redo the import and reproduce the error. The trace file should be in the
    USER_DUMP_DEST directory.
    alter system set events '1775 trace name errorstack off';
    Trace file will show something like the following:
    ksedmp: internal or fatal error
    ORA-01775: looping chain of synonyms
    Current SQL statement for this session:
    SELECT COUNT(*) FROM SYS_IMPORT_TABLE_01
    I am getting the same ora 01775 error. But when I am tracing, I am not getting any result in my udump. Is there any other setting do I have to make to get the trace file?
    Thanks

    Your question can not be answered.
    Not only you don't include a version (this seems to be too difficult for most posters here), but you also include ambiguous sentences like 'When I am tracing'.
    This results in the question 'did you issue the alter system command and was it successful?'
    As far as I am aware the syntax is
    alter system set events='<errornum> trace name errorstack level 3';
    There are no other 'settings'
    The only other solution is to set up an afterserver error trigger.
    Works like a charm, 8i onwards.
    You uncover way too many things you don't even want to know!
    Sybrand Bakker
    Senior Oracle DBA

  • How to trace a USER in oracle?

    Hi Sir,
    I have a rquirement that I need to Trace a session created through the Application. The only data I have is that I know the application will connect to a Database schema and nothing else. How is it possilbe that I can create a trace file for it.
    Also is it possilble, that i can trace complete user. how to find all the trace as it create number of process inturn number of trace, how do I find it and combine. I read the documentation but can't understand it clearly?
    Any help will be great.

    sanora600 wrote:
    Aman, thanks for replying. This is the problem, they have not implemented dbms_application_info.
    That is the reason I want to know how to trace user(all session of a schema) and combine all the session generated trace(something like trcsess) and then generate tkprof. I am on Oracle 10g.Well, first off, users connect to databases, they don't connect to schemas. And as a follow on, users have sessions, schemas don't.
    That said, you might investigate a logon trigger that initiates a 1046 trace. Something like this:
    -- create a logon trigger for capturing extended trace data
    -- NOTE: must be run as SYS
    -- NOTE: Be sure to change both occurances of the target username
    -- ('user = xxx' and 'TRACEFILE_IDENTIFIER=') to the
    -- correct value for the session you want to trace.
    create or replace trigger logon_trigger
    after logon on database
    begin
    if (user = 'SCOTT' ) then
    execute immediate 'ALTER SESSION SET TRACEFILE_IDENTIFIER=''SCOTT_APP''';
    execute immediate 'alter session set timed_statistics=true';
    execute immediate 'ALTER SESSION SET EVENTS ''10046 TRACE NAME CONTEXT FOREVER, LEVEL 12''';
    end if;
    exception
    when others then
    null;
    end;
    end;
    Of course, you can play around with the 'if' condition, and delete or disable the trigger when it is no longer needed. The resulting trace file can be run through tkprof.
    Edited by: EdStevens on Dec 19, 2008 9:03 AM

  • How to trace the increasing of archives ?

    Dears,,
    I am facing a big issue with ASM free space as archives increasing more and more. I have to delete archives twice per day.
    My question here, how can i trace and know the main reason for increasing archives ? Because this is not normal as archives were deleted every 5 days but now every day.
    Thanks & Regards,,

    refer the thread:-
    Thread: how to find the sessions which generated maximum redo amount at instance?
    how to find the sessions which generated maximum redo amount at instance?
    Generating lots of archive logs
    Re: Generating lots of archive logs
    Thread: Growth of Archive log generation
    Growth of Archive log generation
    Thread: Archive log file generation has been increased
    Re: Archive log file generation has been increased
    Hope this will helps you.

  • How to trace particular T.code

    hi friends,
    how to trace out the particular T.Code used by user.
    --- Lee

    sorry for inconveniance..
    What the t.code used by the particular user in that day ?
    then i have 1 more ques.
    how to find the login details for end users for 1 months.
    the report must be login data , login time , end of session.
    in simple word.  .... How many hours they worked per day for one month. ?
    Lee

  • TRACE A SESSION

    hi,
    i kept my database in sql_trace=true.i want to know the particular session information .
    how to trace a particular session in oracle.

    Or if you can edit the code; another way:-
    --alter session set events '10046 trace name context forever level nn'
    --where nn:
    -- 1 is same as a regular trace.
    -- 4 means also dump bind variables
    -- 8 means also dump wait information
    -- 12 means dump both bind and wait information
    --alter session set events '10046 trace name context forever, level 4';
    alter session set events '10046 trace name context forever, level 8';
    --alter session set events '10046 trace name context forever, level 12';                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to trace the value passed by select list

    Hi,
    Is it possible to know what value is passed by the select list.
    eg:
    :p1_testid -- is the select list name .
    if select list contains 3 values ... value1, value2, and value3. and I select value2 from the select list.
    I want to confirm it that the value I selected is the same value passed to the query.
    - select * from Test where Testid=:p1_testid;
    How to trace the value of :p1_testid before query execution.
    Thanks.

    check your session state to see what value the select list has..
    From developer tools at bottom of running page, select session, then look for the value associated with your select list..
    Thank you,
    Tony Miller
    UTMB/EHN

  • Trace Apex session from sqlplus

    Hi,
    Apex 4.2.4, Oracle 11.2.0.3, Apex Listener 2.0.5
    How to start Apex session trace from sqlplus command line? I know thread Trace with &p_trace=YES but this is not a solution because I want to start from sqlplus (PL/SQL code).
    Any help?
    Brg
    Damir

    Your question has changed.
    Your question now:  "How do I identify a session in the database that belongs to an APEX page?"
    Use the session tables to match your APEX connection to the information in the gv$session table.
    Yes - this is a "free" information in the database, but it is also secure.  You will need elevated privileges to do this.  Use with caution.
    You will not find a PLUG-IN that can do tracing if the base user can not do tracing.  The reason the URL feature is there from APEX is because APEX (the framework) has the access and ability - but that is not passed down to each workspace / schema without using the framework.
    I have no details of your installation or your application, so you will need to determine what types of calls are being made to the database and with what method (EPG, OHS, ORDS, etc..)
    select SID, SERIAL#,inst_id,program,module,event,Action,machine, client_info, CLIENT_IDENTIFIER
    from gv$session s where type!='BACKGROUND'
    and status='ACTIVE' and sql_id is not null;
    The CLIENT_IDENTIFIER will show you SESSION and USER
    The MODULE will show you APP and PAGE
    From there, you can do all your SID related tracing you need.

  • Dataloss in network... How to trace it..?

    Hi,
    Though this question is related to SAP XI and SMICM trace, I feel this question can also be answered by people in WebAs General, so i am posting this in this forum.
    In my current scenario where SAP XI system pushes data to another system(ABC system) using HTTPS connection. I have set up an RFC destination of Type G to connect to the external system.
    When i do a Test connection, i see in SMICM log file, i found that connection established, request message written into ABC system.When response is being written i could find BINDUMP of content denied in the SMICM log file. What does that exactly mean..?
    Also When i contacted the other party--ABC, they have told that they could not see any messages in their system.
    XI shows successfully processed and ABC system did not receive the message... So where did the data go?? I have no clue :-(( Need your inputs in this regard. How to trace if the message has been successfully posted by XI. Below is the SMICM log file.
    [Thr 5880] IcmConnConnect: direct connect to www2.ABC.com:443
    [Thr 5880] nihsl-getHostAddr: found hostname '.www2.ABC.com' in cache
    [Thr 5880] nihsi-getHostAddr: hostname '.www2.ABC.com' = addr 16.256.48.91
    [Thr 5880] nihsi-getServNo: servicename '443' = port 01.BB/0443
    [Thr 5880] NiCreateHandle: state hdl 23 / socket -1 NI_INITIAL
    [Thr 5880] NiIBlockMode: switch off block-mode for hdl 23 / socket -1
    [Thr 5880] NiLowLevCon: connect to: host 16.256.48.91, port 01.BB/0443, fam 2 (low adr..high adr)
    [Thr 4532] [Thr 4532] NiISelect: fds in write-mask: [Thr 5880] NiIInitSocket: set default settings for socket 65268
    [Thr 5880] NiISocket: hdl 23 got socket 65268
    [Thr 5880] NiPBlockMode: set socket 65268 to NONBLOCK mode
    [Thr 4532]
    [Thr 5880] NiPConnect: connect in progress
    [Thr 5880] SiPeekPendConn: connection of socket 65268 established
    [Thr 5880] NiLowLevCon: took local port 10.1B/4123
    [Thr 5880] nilh-localCheck: using local address list
    [Thr 5880] NiSetStat: state hdl 23 NI_CONNECTED
    [Thr 5880] ->> SapSSLSessionInit(&sssl_hdl=015BC3DC, role=1 (CLIENT), auth_type=3 (USE_CLIENT_CERT))
    [Thr 5880] <<- SapSSLSessionInit()==SAP_O_K
    [Thr 5880] in: args = "role=1 (CLIENT), auth_type=3 (USE_CLIENT_CERT)"
    [Thr 5880] out: sssl_hdl = 19193D20
    [Thr 5880] ->> SapSSLSetNiHdl(sssl_hdl=19193D20, ni_hdl=23)
    [Thr 5880] IcmPlCheckRetVal: Next status: WRITE_REQUEST(3)
    [Thr 5880] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 5880] MPI<12ee>0#7 GetInbuf 5 1489e0 2179 (1) -> 6
    [Thr 5880] NiPBlockMode: set socket 65268 to NONBLOCK mode
    [Thr 5880] NiPSockGetStatus: socket 65268 ok, no data pending
    [Thr 5880] NiPBlockMode: set socket 65268 to BLOCK mode
    [Thr 5880] IcmReadFromPartner(id=0/4693): fe-nihdl timeout
    [Thr 5880] PlugInHandleServData: role: 2, status: 3, content-length: 0/0
    buf_len: 2127, buf_offset: 0, buf_status: 6
    [Thr 5880] HttpParseRequestHeader: content length: 1805
    [Thr 5880] HttpParseRequestHeader: no transfer-encoding set
    [Thr 5880] HttpParseRequestHeader: Version: 1000
    [Thr 5880] HttpParseRequestHeader: Keep-Alive: 0
    [Thr 5880] IcmPlCheckRetVal: Next status: READ_RESPONSE(2)
    [Thr 5880] IcmHandleNetWrite(id=0/4693): HandleServData returned: 2
    [Thr 5880] BINDUMP of content denied
    [Thr 5880] IcmWriteToConn(id=0/4693): prepared to write data to partner (len = 2127)
    [Thr 5880] ->> SapSSLWrite(sssl_hdl=19193D20, buf=061F8A74, len=2127, timeout=2000, &writelen=123EFF24)
    [Thr 5880] <<- SapSSLWrite(sssl_hdl=19193D20)==SAP_O_K
    [Thr 5880] result = "written= 2127 of 2127 (all)"
    [Thr 5880] IcmWriteToConn(id=0/4693): wrote data to partner (len = 2127)
    [Thr 5880] MPI<12ee>0#8 FreeInbuf#1 0 1489e0 0 -> 0
    [Thr 5880] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 5880] IcmReadFromConn(id=0/4693): request new MPI (0/0)
    [Thr 5880] MPI<12ed>1#4 GetOutbuf -1 1489e0 65536 (0) -> 061F8A40 0
    [Thr 5880] ->> SapSSLRead(sssl_hdl=19193D20, buf=061F8A74, maxlen=65483, timeout=500, &readlen=123EFEE8)
    [Thr 5880] Fri Dec 02 08:59:10 2005
    [Thr 5880] <<- SapSSLRead(sssl_hdl=19193D20)==SAP_O_K
    [Thr 5880] result = "max=65483, received=8036"
    [Thr 5880] IcmReadFromConn(id=0/4693): read 8036 bytes(timeout 500)
    [Thr 5880] BINDUMP of content denied
    [Thr 5880] PlugInHandleNetData: role: 2, status: 1, content-length: 0/-1
    buf_len: 8036, buf_offset: 0, buf_status: 0
    [Thr 5880] PlugInHandleNetData: read response header
    [Thr 5880] HttpParseResponseHeader: no transfer-encoding set
    [Thr 5880] HttpParseResponseHeader: Version: 1000
    [Thr 5880] HttpParseResponseHeader: Keep-Alive: 0
    [Thr 5880] PlugInHandleNetData: more data to read
    [Thr 5880] PlugInHandleNetData: need more data (7936/12484)
    [Thr 5880] IcmPlCheckRetVal: Next status: READ_RESPONSE(2)
    [Thr 5880] IcmHandleNetRead(id=0/4693): read_len: 8036, HandleNetData returned: 2
    [Thr 5880] IcmHandleNetRead(id=0/4693): status 2 -> 2
    [Thr 5880] ->> SapSSLReadPending(sssl_hdl=19193D20, &pendlen=123EFF1C)
    [Thr 5880] <<- SapSSLReadPending(sssl_hdl=19193D20)==SAP_O_K
    [Thr 5880] out: pendlen = 0
    [Thr 5880] IcmHandleNetRead(id=0/4693): pending SSL data: 0, rollout=1
    [Thr 5880] nihsl-getHostAddr: found hostname 'localhost' in cache
    [Thr 5880] nihsi-getHostAddr: hostname 'localhost' = addr 127.0.0.1
    [Thr 5880] NiIDgSend: re-connect dgram to: host 127.0.0.1, port FD.E6/64998, fam 2 (low adr..high adr)
    [Thr 5880] IcmConnRollOut: connection (id=0/4693) rolled out:
    [Thr 5880] CONNECTION (id=0/4693):
    used: 1, role: 2, stateful: 0
    NI_HDL: 23, protocol: 2
    host: www2.ABC.com:443
    status: READ_RESPONSE
    connect time: 02.12.2005 08:59:08
    WP-status: ROLLED IN (Context: 0, Role: 2)
    tid: 15, mode: 0, uid: 746, roll-reason: ICM_ROLL_NONE
    MPI request: <12ee> MPI response: <12ed>
    request_buf_size: 2127 response_buf_size: 65484
    request_buf_used: 2127 response_buf_used: 8036
    request_buf_offset: 0 response_buf_offset: 0
    [Thr 4852] NiBufSelect: Postprocessing...
    [Thr 4852] NiBufSelect: returning 1 clients
    [Thr 4852] NiSelNext: returning hdl 5, r--, 00000000, rest 0 entries (0164FEF0)
    [Thr 5880] IcmWorkerThread: Thread 6: Waiting for event
    [Thr 4852] NiIPeek: peek successful for hdl -1 / socket 65588 (r)
    [Thr 4852] NiIDgReceive - WAKEUP DGRAM received from:
    host 127.0.0.1, port 07.B0/1968, fam 2 (low adr..high adr)
    [Thr 4852] NiIPeek: peek for hdl -1 / socket 65588 timed out (r; 0)
    [Thr 4852] IcmWatchDogThread: dg received
    [Thr 4852] IcmWatchDogUpdateRollQueue(id=0/4693): insert fe-nihdl 23, flags=1
    [Thr 4852] NiSelSet: hdl 23, r-, 01679D50
    [Thr 4852] IcmWatchDogThread: check ni handles (timeout=10000)
    [Thr 4852] NiBufSelect: Preprocessing...
    [Thr 4852] NiISelect: timeout 10000 ms
    [Thr 4852] NiISelect: maximum fd=65757
    [Thr 4852] NiISelect: fds in read-mask: [Thr 4852]
    [Thr 4852] NiISelect: fds in write-mask: [Thr 4852]
    [Thr 4852] NiBufSelect: Postprocessing...
    [Thr 4852] NiBufSelect: returning 1 clients
    [Thr 4852] NiSelNext: returning hdl 23, r--, 01679D50, rest 0 entries (0164FF00)
    [Thr 4852] IcmWatchDogThread(id=0/4693): nihdl 23 - data received(read)
    [Thr 4852] NiSelClear: removed hdl 23 from selectset
    [Thr 4852] IcmQueueAppend: Queuelen: 1
    [Thr 4852] IcmCreateRequest: Appended request 8369
    [Thr 4852] IcmConnRollIn: connection (id=0/4693) rolled back to status: READ_RESPONSE
    [Thr 4852] IcmWatchDogThread: check ni handles (timeout=10000)
    [Thr 4852] NiBufSelect: Preprocessing...
    [Thr 4852] NiISelect: timeout 10000 ms
    [Thr 4852] NiISelect: maximum fd=65757
    [Thr 4852] NiISelect: fds in read-mask: [Thr 4152] IcmWorkerThread: worker 3 got the semaphore
    [Thr 4152] REQUEST:
    Type: READ_RESPONSE Index = 8368
    [Thr 4152] CONNECTION (id=0/4693):
    used: 1, role: 2, stateful: 0
    NI_HDL: 23, protocol: 2
    host: www2.ABC.com:443
    status: READ_RESPONSE
    connect time: 02.12.2005 08:59:08
    WP-status: ROLLED IN (Context: 0, Role: 2)
    tid: 15, mode: 0, uid: 746, roll-reason: ICM_ROLL_NONE
    MPI request: <12ee> MPI response: <12ed>
    request_buf_size: 2127 response_buf_size: 65484
    request_buf_used: 2127 response_buf_used: 8036
    request_buf_offset: 0 response_buf_offset: 0
    [Thr 4152] ->> SapSSLRead(sssl_hdl=19193D20, buf=061FA9D8, maxlen=57447, timeout=500, &readlen=10BEFEE8)
    [Thr 4852]
    [Thr 4852] NiISelect: fds in write-mask: [Thr 4852]
    [Thr 4152] <<- SapSSLRead(sssl_hdl=19193D20)==SAP_O_K
    [Thr 4152] result = "max=57447, received=4548"
    [Thr 4152] IcmReadFromConn(id=0/4693): read 12584 bytes(timeout 500)
    [Thr 4152] BINDUMP of content denied
    [Thr 4152] PlugInHandleNetData: role: 2, status: 2, content-length: 7936/12484
    buf_len: 12584, buf_offset: 8036, buf_status: 0
    [Thr 4152] PlugInHandleNetData: read response body (len=12484/12484)
    [Thr 4152] PlugInHandleNetData: response completely read(EOS=0)
    [Thr 4152] IcmFlushBuf: Flushing 12584 Bytes, buf_status: 6
    [Thr 4152] flush buffer with mpi buffer id 1
    [Thr 4152] MPI<12ed>1#5 FlushOutbuf l1 1 1 1489e0 12636 6 -> 061F8A20 0
    [Thr 4152] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 4152] PlugInHandleNetData: close connection
    [Thr 4152] IcmPlCheckRetVal: Plugin retval: PLUGIN_RET_CLOSE (-702)
    [Thr 4152] IcmHandleNetRead(id=0/4693): read_len: 4548, HandleNetData returned: -702
    [Thr 4152] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 4152] PlugInStopConn: role: 2, error: 0, write_err: 1
    [Thr 4152] ->> SapSSLSessionDone(&sssl_hdl=015BC3DC)
    [Thr 4152] <<- SapSSLSessionDone(sssl_hdl=19193D20)==SAP_O_K
    [Thr 4152] NiICloseHandle: shutdown and close hdl 23 / socket 65268
    [Thr 4152] IcmConnClose: Connection 0/4693 closed
    [Thr 4152] IcmConnFreeContext: context 0 released
    [Thr 4152] IcmServDecrRefCount: intersrv.afdb.local:443 - serv_ref_count: 1
    [Thr 4152] IcmWorkerThread: Thread 3: Waiting for event
    Cheers,
    Siva Maranani

    SMICM with trave level3 is the only way(i know) to trace whether the message has left XI server or not.

  • How do I access session data through an EJB?

    Hi
    How do I access session data through an EJB?
    I am currantly developing a Web service (using ejb's, JBoss.net and Apache Axis). A client making a call to this Web service, is expecting a bussiness-object in return. My problem is that this bussiness-object i stored in a users session data. How do I retrieve this bussiness-object from the users session.
    I have read that this does not work with httpsessions, is this true? If this is true, is it possible to store the bussiness object in a JavaBean e.g:
    <jsp:useBean id="userContextWebImpl" scope="session" class="com.ac.march.client.UserContextWebImpl">
    <%
    String key = "test";
    String value = "This is the value";
    userContextWebImpl.setValue( key, value1 );
    %>
    </jsp:useBean>
    and then retrieve this information through the EJB? Or is it possible to do this by using Statfull JavaBeans? Or can this be done through a nother solution?
    Please help!

    I have created a JavaBean with scope="application" to store some data. The data is stored when a user prefomes a spesific task.
    A different person then makes a call to a Web-Service on the server. The Web-Service then asks an EJB to retrieve the data stored in the JavaBean (servlet cotext). In other words: How do I retrieve this data from the EJB?
    I have tried with this code, but with no luck.
    (ApplicationContextWebImpl is the JavaBean)
    public static String getBookingResult( String key )
         String myResult = null;
         String myKey = key;
         ApplicationContextWebImpl applicationContextWebImpl = null;
         try
              applicationContextWebImpl = new ApplicationContextWebImpl();
              myResult = (String)applicationContextWebImpl.getValue( key );
         catch ( java.rmi.RemoteException e )
         return myResult;
    }

Maybe you are looking for

  • F-58 Error

    Dear Experts, One of my client when they are running F-58 they mentioned Company code,Payment method,House Bank,Check lot number,printer for forms also. But now the issue is when we want to mention the Check lot number it's not displaying the Lot num

  • Time Machine backup not completed with error "The disk was not ejected probably..."

    I have been using an UBS 3.0 capable external 2.5" hard drive from Lacie to backup my old 21.5" iMac for the last 2 years without problem. Recently I bought the new late 2013 27" iMac running 10.8.5 and try to migrate the data from the Time Machine b

  • Blasted printer problems - HP Photosmart C6180 All-in-One

    Bought a spanking new HP Photosmart C6180 All-in-One and installed the drivers. When running the HP Setup Assistant it had a blank list to select from. I came across this tip from macosxhints.com "If your system drive was set up with a case-sensitive

  • Unable to set condition in ibot

    Hi, i have 2 columns in year and amount so for amount greater that 25,000 alert shoud be triggered how to do this thanks

  • How to prevent saving images

    Hi, I want to prevent users from (right click & save images) saving images in my website.How can i do this?Please help me. Thanks.