Applicant and Employee reference

Hi Experts,
When an applicant gets changed to an Employee he/she gets a new Personnel number.
1) Does the Employee personnel number have a reference to applicant number? where can we locate it.
2) Is it mandatory that Applicant should be transferred to Employee database using PBA7 or can we do it through PA40 (actions)?
Kind Regards,
Srini Duraisamy

Hi Srini Duraisamy,
I've gone through your question and found solutions to it.
Question 1:
Answer: In PA30 there's an Infotype EE's Applicant No. IT0139. If you choose display or change on this infotype, it will inform you that no data is saved in this infotype but infact there is. All you need to do is to create the record, when you create this infotype, you will find the employee's applicant no already in this infotype. Just save it.
Question 2:
Answer: It's like two procedures for doing the same thing, if you perform action for Hire an Applicant, you will find just 1 field and 2 further selections where as PBA7 report facilitates you with more selection criterions.
I hope this is the answer of your question.
Thanks,
Irfan Malik
SAP HR Consultant
SIEMENS Engineering Co. Ltd. Pakistan

Similar Messages

  • How do I synchronize a table of employees with and employee update form?

    WHAT i AM TRYING TO DO:
    Create a page with two areas. The top will contain a sortable, filterable list of employees. The bottom of the page will contain all of the details on a selected employee.
    WHAT I HAVE DONE:
    1. Created a DEPT_EMPLOYEES view with just some basic department and employee information.
    2. Created Entities and View Objects based on the DEPT_EMPLOYEES view and the EMPLOYEES table.
    3. Created a View Link between the DeptEmpROView (source) and EmployeesUView (destination)
    3. Created a page with a panel splitter an dropped the DeptEmpROView in the top as and ADF Table.
    4. Dropped the EmployeeUView on the bottom part of the pages as and ADF Form.
    WHAT HAPPENS.
    1. When I open the page the list of employees is displayed on top, and the first employee is displayed below.
    2. When I click on another row in the table the form below does not change. I had expected it to.
    3. If I right-click on a row in the table and select "reload" from the options the page is re-drawn and the bottom form is populated with the data that matches the row I clicked on.
    WHAT I WANTED
    When you click on an entry, to have the bottom part of the page refreshed to match the selected entry.
    QUESTIONS:
    1. I thought I had followed all of the steps to prepare a master-detail setup. Do this not work with a table as the master? Or did I miss a step? Or am I using components in a way they were not intended?
    2. When I look at the ViewLink I see in the Destination that the where clause :Bind_EmployeeId = EMPLOYEE_ID will be appended to the query. I would then guess that :Bind_EmployeeId is not set when I click on a row. Is there a way to make that happen?
    3. I notice in the af:table documentation there is an org.apache.myfaces.trinidad.event.SelectionEvent defined. Can I somehow intercept this and set the bind variable then? If so, how to I tell the form to refresh?
    5. Another clue. When I run the page I get some warnings. One is "Reference selectedRow not found" . Double clicking on that gets me to a line selectedRowKeys="#{bindings.DeptEmployeesROView2.collectionModel.selectedRow}"
    6. Another warning message "Reference makeCurrent not found" gets me to selectionListener="#{bindings.DeptEmployeesROView2.collectionModel.makeCurrent}"
    It sure seems like these last two must have something to do with it.
    Any clues would be appreciated.
    Edited by: rrp on Jan 3, 2011 12:47 PM

    Shay,
    Thanks for pointing me to that tutorial. The synchronization is now working.
    For anyone else that might find this discussion:
    To make it work I selected the af:paneFormLayout that held the EmployeeUView.
    In the properties there is a PartialTriggers property in the Behavior section.
    I highlighted this property and selected the Edit option.
    This allowed me to navigate the component tree and pick the table holding the DeptEmpROView.
    That was it. Now clicking on the table changes the details displayed in the form.
    There are questions, but they are more followon:
    1. The tutorial surrounded the "list table" with a panelCollection. I did not do that. I don't know why or why not to use the panelCollection.
    2. The tutorial made a point of setting the ColumnSelection attribute to single for the List table. I did not find this changed the behavior in any way and was wondering why.
    3. The tutorial also made a point of changing the ContextMenuSelect for the list table to "clickToEdit".
    3a. I did not see how this changed the behavior
    3b. Why "clickToEdit" on a read-only table?

  • Applicant to Employee

    Guys
    An applicant in HRMS gets hired as Employee once he accepts the offer but this requires one day to be elapsed.
    Suppose an applicant is entered in the system on 9th August , he can be made employee not before 10th August....
    Can someone explain the logic of keeping this 24 hour window ??
    Thanks

    The issue of date tracking has been explained. But, just to explain in a bit more detail, the logic is that on one day the applicant accepts the offer and on that day his APPLICATION records are end-dated. On the NEXT day, he becomes and EMPLOYEE and an EX-APPLICANT. That can't happen on the same day.
    In real life, I guess it would be unusual to accept an offer and begin work on the same day!
    Regards
    Tim

  • SCCM Report for Applicable and Installed Updates Collection Wise

    Hi All, I was looking for a report on Applicable and Installed Updates Collection Wise and got this below query on the Internet and want to create a SCCM report with this below query. How to make this query working in SCCM report?
    Do I need to add prompts, if yes please guide me on adding prompts.
    SELECT
    DISTINCT
    SYS.Name0
    AS [Server Name], SIS.SMS_Installed_Sites0 AS [Site Code], UCS.Status AS [Patch Status Code],
    CASE WHEN UCS.Status = '2' THEN 'Applicable' WHEN UCS.Status = '3' THEN 'Installed' ELSE '' END AS 'Patch Status', UI.BulletinID AS [Bulletin ID],
    UI
    .ArticleID AS [Article ID], UI.
    Title
    FROM
    v_R_System AS SYS LEFT OUTER
    JOIN
    v_Update_ComplianceStatusAll
    AS UCS ON SYS.ResourceID = UCS.ResourceID INNER
    JOIN
    v_UpdateInfo
    AS UI ON UCS.CI_ID = UI.CI_ID INNER
    JOIN
    v_RA_System_SMSInstalledSites
    AS SIS ON SYS.ResourceID = SIS.
    ResourceID
    WHERE
    (UCS.Status IN ('2', '3')) AND (UI.ArticleID IN ('972270', '974392', '973904', '969947')) AND (SYS.Name0
    IN
    (SELECT DISTINCT v_FullCollectionMembership.
    Name
    FROM v_FullCollectionMembership INNER
    JOIN
    v_R_System
    ON v_R_System.ResourceID = v_FullCollectionMembership.ResourceID AND v_R_System.Active0 = 1 AND
    v_FullCollectionMembership
    .CollectionID IN ('Collection ID'
    ORDER
    BY
    [Patch Status Code]

    Yes it can be done and please run the query which i have shared in the thread
    I again pasted the query for you below..
    SELECT DISTINCT
    SYS.Name0 AS [Server Name], CASE WHEN UCS.Status = '2' THEN 'Applicable' WHEN UCS.Status = '3' THEN 'Installed' ELSE '' END AS 'Patch Status',
    UI.BulletinID AS [Bulletin ID], UI.ArticleID AS [Article ID], UI.Title
    FROM         v_R_System AS SYS LEFT OUTER JOIN
                          v_Update_ComplianceStatusAll
    AS UCS ON SYS.ResourceID = UCS.ResourceID INNER JOIN
                          v_UpdateInfo AS UI ON UCS.CI_ID
    = UI.CI_ID
    WHERE     (UCS.Status IN ('2', '3')) AND (SYS.Name0 IN (SELECT DISTINCT v_FullCollectionMembership.Name
    FROM v_FullCollectionMembership INNER JOIN
         v_R_System ON v_R_System.ResourceID = v_FullCollectionMembership.ResourceID AND v_R_System.Active0 = 1 AND
                                                       v_FullCollectionMembership.CollectionID
    IN ('XXX00000')))
    Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights

  • When do VI and queue references become invalid?

    Hi all,
    I have a fairly complicated problem, so please bear with me.
    1)  I have a reentrant SubVI (let's call it VI "Assign") that has an input cluster of (VI ref, queue ref) (let's call the cluster type "Refs").  If the VI ref is invalid (first execution), the VI ref and queue ref are assigned values and are passed on as an output cluster of same type.  (The VI does other things too, but for simplicity only this is important.)
    2)  The VI that calls VI "Assign" (let's call it VI "Store") is not reentrant and has a local variable of type "Refs" that is wired to the input and output of VI "Assign".  This VI effectively stores the references.  The references returned by VI "Assign" are always valid right after the call, but after the problem condition described below, they are invalid at the start of all calls before they are passed to VI "Assign".
    3)  VI "Store" is called by multiple non-reentrant VIs, so the local variables of VI "Assign" retain their values (Has been tested and verified to retain their values).  The VI causing the problem in this case is a template VI of which multiple copies are launched (let's call it VI "Template").
    The problem is that the moment an instance of VI "Template" is closed, the queue reference becomes invalid, although the actual variant value of the reference remains the same.  The VI ref can become invalid or not, depending on small changes, but is always reproducible.  I assume there must be some similarity between VI and queue refs.  After spending some time researching, the Labview help states for the Open VI Ref component "If you do not close this reference, it closes automatically after the top-level VI associated with this function executes."  In this case I assumed it means that the moment the reentrant VI "Assign" finishes, the references will get cleared ??  So I made a non-reentrant VI (let's call it VI "NR Assign") that only assigns values to the references and VI "Assign" now calls this VI (It effectively does what I described VI "Assign" does).  I keep this VI alive by using it in a VI which never terminates and since it never terminates, the references should never become invalid.  Anyone still following?  This didn't solve the problem though.  If I reproduce the same scenario using only one instance of the template VI, it works just fine.  Furthermore, the VI and queue references are never closed, to aid analysis of the problem.  Can anyone shine some light on what happens when a template VI terminates?  Could this be the problem?
    Unfortunately I cannot include the code.
    Thank you whoever is able to make sense of this.
    Christie

    Christie wrote:
    Hi all,
    I have a fairly complicated problem, so please bear with me.
    1)  I have a reentrant SubVI (let's call it VI "Assign") that has an input cluster of (VI ref, queue ref) (let's call the cluster type "Refs").  If the VI ref is invalid (first execution), the VI ref and queue ref are assigned values and are passed on as an output cluster of same type.  (The VI does other things too, but for simplicity only this is important.)
    2)  The VI that calls VI "Assign" (let's call it VI "Store") is not reentrant and has a local variable of type "Refs" that is wired to the input and output of VI "Assign".  This VI effectively stores the references.  The references returned by VI "Assign" are always valid right after the call, but after the problem condition described below, they are invalid at the start of all calls before they are passed to VI "Assign".
    3)  VI "Store" is called by multiple non-reentrant VIs, so the local variables of VI "Assign" retain their values (Has been tested and verified to retain their values).  The VI causing the problem in this case is a template VI of which multiple copies are launched (let's call it VI "Template").
    The problem is that the moment an instance of VI "Template" is closed, the queue reference becomes invalid, although the actual variant value of the reference remains the same.  The VI ref can become invalid or not, depending on small changes, but is always reproducible.  I assume there must be some similarity between VI and queue refs.  After spending some time researching, the Labview help states for the Open VI Ref component "If you do not close this reference, it closes automatically after the top-level VI associated with this function executes."  In this case I assumed it means that the moment the reentrant VI "Assign" finishes, the references will get cleared ??  So I made a non-reentrant VI (let's call it VI "NR Assign") that only assigns values to the references and VI "Assign" now calls this VI (It effectively does what I described VI "Assign" does).  I keep this VI alive by using it in a VI which never terminates and since it never terminates, the references should never become invalid.  Anyone still following?  This didn't solve the problem though.  If I reproduce the same scenario using only one instance of the template VI, it works just fine.  Furthermore, the VI and queue references are never closed, to aid analysis of the problem.  Can anyone shine some light on what happens when a template VI terminates?  Could this be the problem?
    Unfortunately I cannot include the code.
    Thank you whoever is able to make sense of this.
    Christie
    All LabVIEW refnums do get deallocated automatically when the top-level VI in whose hierarchy the refnum was created goes idle (stops executing). You will have to make sure that the creation of a refnum is done inside a VI hierarchy that stays running for the entire time you want to use that refnum.
    Rolf Kalbermatter
    Message Edited by rolfk on 06-27-2007 11:52 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I am trying to update to i-tunes 11.3 but when I download I get a message that itunes didn't install properly, and a reference to error 127. Any ideas?

    I am trying to update to i-tunes 11.3 but when I download I get a message that itunes didn't install properly, and a reference to error 127. Any ideas?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • IAccessible on Windows 8.1 and uiautomation reference leaks causing crashes in our applications.

    We have started crashing on Windows 8.1 and I have traced the problem to uiautomation.dll and combase.dll. The root cause of the problem is reference counting. It appears that on Windows 8.1 uiautomation is using keyboard hooks and other means to constantly
    query for interfaces leading to reference leaks on UI objects. We use MFC and have code that has relied on reference couting to to lead to calls to DestroyWindow. However on Windows 8.1, in cases where we expect, and historically have had, the window get destroyed,
    we have windows now hanging around due to elevated reference counts. I can set breaks in the MFC oleunk.cpp and monitor the reference count going up in CCmdTarget::ExternalAddRef for say, a command bar (menu) and after constantly clicking the menu, the reference
    count just keeps increasing and increasing. I can quite quickly cause the reference count to zoom into the hundreds. We started getting reports of crashes on Windows 8.1 from customers and at first I didn't duplicate the issue. Then my Windows 8.1 box rebooted
    on me (that's another issue as it did so on its own even though I said to defer the restart and I lost data thanks to that nasty Win 8 feature) and after updates installed, I could easily duplicate the crash.
     The version now installed for uiautomation is "7.2.9600.17415 (winblue_r4.141028-1500)" and "6.3.9600.17415 (winblue_r4.141028-1500)" as seen from the Visual Studio debugger's modules window. I do see some release calls coming from
    a function named "AccessibleObjectFromWindowTimeOut" and wonder what the "TimeOut" implies. That is because the easiest way for a user to crash our app on Windows 8.1 is to use GoToMeeting on Windows 8.1 and invite a participant to take
    control of the application. I can also crash on Windows 8.1 simply by setting various break points and trace points to print messages as I track what is going on. That is, the crashes appear to be dependent on some sort of race condition and the debugger interferes
    with the proper functioning of whatever is occurring inside uiautomation and combase. I have never seen the debugger "interfere" with a process in this way. I can run the same app and perform the same tasks on Windows 7 and these calls that cause
    the ref count to constantly increase simply are not made (and combase.dll doesn't get injected into our process on Windows 7). I think Microsoft needs to look into what they are doing on Windows 8 and start releasing interfaces they are leaking when obtaining
    the IAccessible interface from windows that implement it.
    R.D. Holland

    A dump file doesn't show the cause of the crash - an ever increasing reference count. I changed an implementation of OnGetObject (MFC API) and and didn't return the IAccessible interface and the reference count remained the same on Windows 8.1 as it does
    on Windows 7. I did that after tracing the ever increasing reference count to calls to get IAccessible coming from those MS DLLs. Eventually I made sure we destroy the window when we think it should be destroyed instead of relying on the MFC reference counting
    mechanism. We have testing code that relies on UI automation so just refusing to give out IAccessible isn't an option as I don't know the context of the request.
    R.D. Holland

  • TOC and Cross reference bookmarks

    Hi. I recently finished work on a book that had front matter containing a brief TOC and a detailed TOC. The book also contained individual TOCs at the beginning of each chapter.
    I updated all numbering across the book files before generating the TOCs in the front matter, then generated the brief and detailed TOCs using my TOC Styles. However, I assigned cross references for the individual chapter TOCs. May not have been the best choice.
    Because there was special styling for some of the front matter TOC entries that wasn't easily specified using just the TOC Styles, I cut and pasted groups of entries from the generated TOC on the pasteboard into a new frame on the page. I checked in Story Editor to ensure that the invisible markers for the TOC entries had been copied into the new frame.
    When I exported the files to PDF, the TOC entries no longer pointed to the correct pages. They simply pointed to the first page of the PDF when clicked. Furthermore, no bookmarks showed up the TOC entries in the Bookmarks panel, even though I had "Create PDF Bookmarks" checked in my TOC Styles.
    I have three questions, then:
    --Is there any way to reclaim the behavior of the TOC bookmarks, and their display in the Bookmarks list of the PDF, if the entries are copied and pasted into a new frame in InDesign, without doing this manually in Acrobat Pro?
    --Is there any way to get cross references to display as bookmarks in a PDF, assuming that I needed to make individual PDFs of each chapter, without doing this manually in Acrobat Pro?
    --I'm betting that all files should be exported from InDesign as a single PDF in order for all TOC and cross reference links to work properly, without manual intervention in Acrobat Pro? If so, and manual intervention is required, is this accomplished by cataloging/indexing in Acrobat Pro?
    I need to be able to pass this information along to a publisher who is now requiring all of their compositors to submit bookmarked PDFs with their printer files. I'm pretty sure I know the answer to this one, but I would like verification from the pros here. Thanks!

    Hi. I recently finished work on a book that had front matter containing a brief TOC and a detailed TOC. The book also contained individual TOCs at the beginning of each chapter.
    I updated all numbering across the book files before generating the TOCs in the front matter, then generated the brief and detailed TOCs using my TOC Styles. However, I assigned cross references for the individual chapter TOCs. May not have been the best choice.
    Because there was special styling for some of the front matter TOC entries that wasn't easily specified using just the TOC Styles, I cut and pasted groups of entries from the generated TOC on the pasteboard into a new frame on the page. I checked in Story Editor to ensure that the invisible markers for the TOC entries had been copied into the new frame.
    When I exported the files to PDF, the TOC entries no longer pointed to the correct pages. They simply pointed to the first page of the PDF when clicked. Furthermore, no bookmarks showed up the TOC entries in the Bookmarks panel, even though I had "Create PDF Bookmarks" checked in my TOC Styles.
    I have three questions, then:
    --Is there any way to reclaim the behavior of the TOC bookmarks, and their display in the Bookmarks list of the PDF, if the entries are copied and pasted into a new frame in InDesign, without doing this manually in Acrobat Pro?
    --Is there any way to get cross references to display as bookmarks in a PDF, assuming that I needed to make individual PDFs of each chapter, without doing this manually in Acrobat Pro?
    --I'm betting that all files should be exported from InDesign as a single PDF in order for all TOC and cross reference links to work properly, without manual intervention in Acrobat Pro? If so, and manual intervention is required, is this accomplished by cataloging/indexing in Acrobat Pro?
    I need to be able to pass this information along to a publisher who is now requiring all of their compositors to submit bookmarked PDFs with their printer files. I'm pretty sure I know the answer to this one, but I would like verification from the pros here. Thanks!

  • How to get vendor name and invoice reference details in asset register

    Hi Experts,
    My client requirement is he want to see Vendor name and invoice reference filed in asset register.
    Is there any standard reports relating this requirement.
    Kindly Provide valuable information relating to this issue.
    Regards
    Madhan

    Hi Madhan,
    Let me know the t.code which you are getting asset data.
    Thanks

  • Looking for a script to connect bodytext to footnote and cross-references

    Hi,
    Need to do the following:
    I was provided with separate (tagged-text) files: bodytext, (foot)notes and cross-references. Now I am looking for a solution (script?) that can do the following:
    to restore the connection between the body-text, the footnotes and te cross-references after placing these in a document in Indesign.
    The cross-references should appear (in anchored text-frames) in the margin and the notes in a separate frame at the bottom of the page. If possible in the same way as footnotes in Indesign appear, but in a separate frame to be able to do some more formatting than native footnotes would accept.
    I have tested the plugin: Side Heads from InTools, and tis works well with Indesign files tthat contain footnotes. But this doesn't work with separately placed footnotes from a tagged-text-file, as they re not knotted together.
    I can't do any scripting myself.
    I would appreciate any help, and I am looking forward to your response...
    Regards,
    kkingg

    The first thing to do is:
    regexp "match regexp = ([0-9]+)" $_cli_result match count
    if $count eq 0
    exit 0
    end
    The second is a bit more challenging.  I think this will work:
    cli command "show call active voice br"
    foreach line $_cli_result "\n"
    regexp "^([0-9a-zA-Z]+) : " $line match callid
    if $_regexp_result eq 1
      continue
    end
    regexp "^dur 1d" $line
    if $_regexp_result eq 1
      cli command "show call active voice br | section $callid"
      syslog msg "$_cli_result"
    end
    end

  • Is it possible to download a PDF of "ActionScript 3.0 Language and Components Reference"?

    I have found the "ActionScript 3.0 Language and Components Reference" online fine but my Internet is sometimes slow and I would like to take the reference with me even when I am not connected to the Internet. Is there a way to download a PDF version of this reference and if so, how? Help would be very much appreciated. Thanks

    The second item in the listing, ActionScript 3.0 Reference for the Adobe Flash Platform (ZIP, 66 MB) is a standalone copy of the files that you are looking for.
    Here's an Adobe Community file on how to implement the local help: http://forums.adobe.com/thread/1000134

  • Internal and external reference voltage for DAC

    Hi
    For example: If we are using +10V as the internal reference voltage, the range of the DAC would be -10 to +10V. But if the signal goes only from -5 to +5 V, the resolution of DAC is not getting maximized. To maximize the Resolution, an external refernce voltage of +5V can be given. Now the range of the DAQ will be -5V to +5V, same as that of the signal..
    What is internal and external reference voltage for DAC ?????
    Somil Gautam
    Think Weird

    Hi,
    you're better post this question on the "multifunctional DAQ" section, quoting the P/N of your device, as well as your programming language

  • Weak, soft and Phantom references

    I have got some confusions about reference types in java. These are:-
    1. How we create weak and soft references! Are they predefined classes and we extend them, or they are interfaces and we implement them, or they are the concepts we implement by following any particular pattern.
    or the references which are gone out of scope are considered as weak references.
    2. can we change the type of reference dynamically! as JVM does it.
    for eg:-
    While the data objects are actually in use (or they are in scope) they are immune because they are strongly referenced by the display windows, once you move to look at something else (or they go out of scope) they become eligable for removal.
    3. There is one set of problem I am facing, could that be resolved by weak or soft references.
    "I set variables at session level(if they are needed at more than one page."
    "At the last page I remove it from session."
    "If for example there are 4 page sequence, and user quits after three steps, then the garbage variables are left in the session."
    "if I make them as weak reference(or soft reference) then would it be a solution. or will it increase any potential risk of loosing the variables in between the process."
    "or is there any way out for my problem using ref package, or it is used only for special purposes, not for a senario like this."
    "or I am bound to use request level instead of session level, in these type of problems(which I am presently doing to solve this problem, but in this case I have to to set same attribute 3 times.)"
    please comment.
    4. What happens when we create an instance of reference queue.
    -->does it give us a reference to the main queue that is used by garbage collector. when destroying objects out of scope.
    that is garbage collector removes the reference of from the object and makes it point to queue element.
    --> or when object goes out of scope, at that time only the reference is removed from the object and is made to point to queue element.
    --> and when we do obj=null; at that time also obj reference is made to point to queue element.
    please comment. I am confused about how java handles references.
    5. does reference queue takes all the junked references.
    if yes!
    then for eg. we are using a background thread and doing some work when instance of class A is cleared, and doing some other work when instance of class B is cleared up by garbage collector.
    queue.remove will return the junked reference, now how will we be determining which object is junked, instance of class A or class B. As reference of object is junked we can't use instanceOf operator.
    please comment.
    Thanks.

    I find the documentation a bit opaque myself.
    You create, say, a Weak reference by creating an object of class WeakReference, or a subclass of same. The object referenced (the referent) is a separate object which you pass in the WeakReference's constructor.
    As long as the referent exist then calling get on the WeakReference object will return it. Once you call get and put the resulting reference in an object you have a hard reference and you know that the referent won't disappear until you let go of it.
    If the referent has been disposed of then get returns null.
    Sometimes you want to do extra cleaning up when a reference is cleared. Then you need to subclass the Reference class you are using to add indentifying information about the object that just disappeared. Obviously this can't be a reference to the object itself, that would be a "Hard" reference and would prevent the object being cleared.
    You then create a ReferenceQueue, which is an ordinary object you own. The Reference objects have a reference to this queue. What happens is the the GC, when it clears one of these Reference objects, adds the Reference to the queue it references. You run a background thread which takes these cleared references from the queue and, using the extra information you added when you subclassed them, does whatever cleaning up you need to do. A typical example is that you have a Map, with the Reference objects as values. Each reference is extended to store the key, so that the cleanup will remove cleared references from the map.
    No, it's not suitable for session objects, because you can't depend on the object still being arround. You can only rely on session timeout. It's a basic problem with web services that you never really know if the user has gone away and abandoned you.

  • PL/SQL Packages and Types Reference

    I need information about the owa_ packages. It should be in PL/SQL Packages and Types Reference, but in the 9i Documentation there is nothing about these packages and i cant find this Documentation for 10g on OTN.
    Who can help me???

    Here is the 9.2 doc:
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adgweb.htm#1005885
    Tom Best

  • How to obtain JNIEnv pointer and jobject reference in arbitrary contexts?

    Hi,
    I need your hand. How to obtain JNIEnv pointer and jobject reference in arbitrary contexts? (See below source codes for details)
    I made some tries according to JNI spec, but still failed to get it work. Could you please provide your solutions? Better show me some source codes.
    Thank you very much !!!
    #include <jni.h>
    #include "MessageThread.h"
    #include "MyServer.h"
    // this is callback function called by the native C++ library
    void processEvent(int progress)
       in this function, i want to get "env", "obj" ( HOW? ),
       then i can do below to invoke Java function "updateUI":
       cls = env->GetObjectClass(obj);
       mid = env->GetMethodID(cls, "updateUI", "(I)V");
       env->CallVoidMethod(obj, mid, progress); 
    JNIEXPORT void JNICALL
    Java_MessageThread_handleMessageQ(JNIEnv *env, jobject obj)
      MyServer* server = MTMServer::Instance();
      if (server != NULL)
        // must register a callback function before "QueryProgress"
        server->RegisterCallback(processEvent);
        // query message within a loop, and callback "processEvent" frequently
        server->QueryProgress();
      return; 
    }

    jschell, thanks for your suggestions.
    And caching the second is definitely wrong. Arguments are passed as local references. The reference lifetime is only guaranteed for the lifetime of the method call.In my case, it just works, because my "callback" is only called before the "handleMessageQ" returns, which means it's within the lifetime of "jobject", etc.
    Use GetEnv to get the environment.Could you please provide some sample codes?
    Create a static java method which returns the object reference. In your callback call that method to get the reference that you want to work with. I didn't really understand. Could you please show me some sample codes?
    Thanks a lot!

Maybe you are looking for