Need for Synchronization in Servlet

Hi,
If I have a method lets say saveCustInfo() and I call it from doget(). Roughly something like this:-
Customer extends HttpServlet {
doGet(req, res)
parameters = ......
saveCustInfo(parameters);
saveCustInfo(....)
//code for saving customer information
Now question is, whether there is a need to synchronize on method saveCustInfo() or not???

Thanks for the responses. Some things are clear to me but some things are still not. One of the responses said that I need to synchronize only if I am using a object or variable which is shared. But another response said that I need to synchronize if I am manipulating data inside the method.
My method does not have shared variables or objects but definitely some data manipulation is there inside the method.
Question is Do I need to synchronize if the some data manipulation is there locally inside the method? My understanding was that every call gets its own copy of the method on the stack so all the variables are local but still distinct.
Please someone share their knowledge on this.
Thanks

Similar Messages

  • Do I need to synchronize a singleton just for reads?

    Hello forum. Here's my situation: I keep config data for pages on my website in an XML file, I load said XML file in a startup servlet, creating a JDOM Document object, accessed by a singleton.
    Every time a page is loaded, the page accesses this Document object via the singleton, sees whether the page is secure, which template it should use, a bunch of stuff.
    Now, because the Document object is created when the context is started, and is never written too, only read, do I need to synchronize it?
    I read "Threading lightly, Part 1: Synchronization is not the enemy," on ibm.com (http://www-128.ibm.com/developerworks/java/library/j-threads1.html) in hopes of answering my own question, and the most relevant paragraph states:
    "If you are writing data that may be read later by another thread, or reading data that may have been written by another thread, then that data is shared, and you must synchronize when accessing it."
    But does my scenario fit? Yes I'm writing data that will be read by another thread, but no thead is accessing this data until the context is fully loaded and the object is fully instantiated. The object is not being written to by threads asynchronously... I just run the risk of it being read at the same time. Do I need to synchronize? If so... having synchronized variables in a servlet environment is bad, so what other approach should I take?
    Thanks for your help.

    But does my scenario fit? Yes I'm writing data that
    will be read by another thread, but no thead is
    accessing this data until the context is fully loaded
    and the object is fully instantiated. The object is
    not being written to by threads asynchronously.If all the writing is complete before any of the reading starts, then there's no need to synchronize the reading.
    .. I
    just run the risk of it being read at the same time.There's no risk in multiple concurrent reads.
    Do I need to synchronize? If so... having
    g synchronized variables in a servlet environment is
    bad, so what other approach should I take?Couple minor points:
    * You don't have synchronized variables. You have synchronized blocks and methods.
    * Using synchronization in a servlet context isn't in and of itself necessarily bad. Having multiple requests sync on the same lock can hurt response time, so try to avoid it, and if you must do it, keep the critical sections as small as possible.

  • Need Tcode for Synchronization of SAP Useradministration with an LDAP

    Hi Experts,
    i am configuring the SAPR/3 4.7EE server with an LDAPserver( OID Oracle Intranet Directory server) by using the tcodes SM59,LDAP.
    Now i Need the Tcode for Synchronization of SAP Useradministration with an LDAP
    when i clicked on the ServerNames tab on the screen with Tcode LDAP,
    i am not getting the Synchornization screen when i clicked on the Synchronization
    can anyone provide me the info where i have to do the Synchronization of SAP User Administration with an LDAP?
    Regds
    Phani

    Hi Olivier
    To be specific, we have an application(.Net) which uses SAP as backend and retrieves the data from SAP using RFC and BAPI's. Well everything works fine with SAP R/3(where using the connection string and SAPConnector we could establish connection and call the RFC/BAPI).
    When it comes to SAP ECC we have no idea about the connection string or how to connect using SAPConnector. I knew that ECC uses a secured connection so i want to know how to connect to SAP ECC using .Net Connnector.
    For the SSL could you tell me how exactly can we apply that to the above described situation?
    thanks
    sathish

  • URGENT!! synchronization in servlets

    Hello
    I need to synchronize access to a connection in a servlet. If I make the connection static, and put the connection in a synchronized block, will that work? The servlet is not a SingleThread servlet, so more than one request could be coming through at once. Will synchronization work for this case?
    Here is a simplified example of what I mean (this is not actual code, just an illustration)...
    public class test extends HttpServlet {
    private static Connection con;
    public doGet(HttpServletRequest req, HttpServletResponse res)
    synchronized(con)
    //do stuff with connection here
    //output stuff
    Please help!

    That will work.
    But a better alternative, in terms of design would be to define synchronized methods on Connection.
    e.g.
    public class Connection
    public synchronized doStuff () { ... }
    That way you are localizing the thread safety issues within Connection, and not exposing those issues to the outside world.
    In future, if the Connection can support multi-threaded access, you just have to change the Connection, and not all the calling code.
    The way you have done it, the onus is on ALL the callers of Connection.

  • How to sort out error downloading perpetual license of the CS6 Design Standard for MAC: JRun Servlet Error 413  Header Length too Large?

    How to sort out error downloading perpetual license of the CS6 Design Standard for MAC: JRun Servlet Error 413  Header Length too Large?
    Just bought the perpetual license online - student-teacher version. Received email confirming my eligibility and followed all instructions to a 't', but still got this 413 error message, and cannot continue.
    Would anyone be able to help me?
    Or how can I get in touch with Adobe themselves?
    How do you get to the chat? I bought it with their help, but cannot remember how to get there again. Took me ages to find the chat.
    Cheers!!! Thanks a million! Any help is welcome!!!!

    Make sure you have cookies enabled and clear your browser's cache before you try downloading.  If it continues to present that error try using a different browser.
    As far as getting to a chat link goes, it can be hit or miss...  Start Here  If after selecting relevant responses you are unable to find a solution, choose "Still need help? Contact us." and the chat contact option.

  • Need Suggestion about JSP/Servlet OR JSF2.0

    I am new to Java and working on it as fast as possible. Got 5+ years experience in ASP.NET C#. I have covered basics of Java and now want to jump into web development by making a project by converting one of my ASP.NET project.
    I have explored Servlet/JSP and JSF2.0. Want to learn only one from them and put all my energies in it. I find JSF more robust, clean and easy to use with templating etc . I am doing all this so that I cover most of the things to complete one full project and try to find a job as starter in Java.
    Now my questions
    As a starter job in Java what things should I know?
    Should I learn Servlet/JSP even if I am good at JSF (suppose)?
    Do companies still need skills in Servlet/JSP or they are adopting JSF?
    Thanks

    Prateek wrote:
    first i would like to asked you one question why you want to change your technology ? you have over 5+ year experience in Microsoft technology .java and microsoft both are programming language .i recommend you if you have 5+ year experience then you do not need to switch your technology . this is one things .but i am sure it is not a big deal for you to switch the technology .
    see jsf and jsp both are based on the servlet .main things is that you have to learn servlet first .Why wouldn't you want to switch your technology? Java barely existed when I started my career. If I had stuck with only the language I needed for my first job, I'd have very few jobs available to me now. If one technology was good for everything, then other technologies wouldn't be invented--we would have stuck with the first technology. Different languages have different advantages (and different disadvantages). You should learn what you need for the tasks you are given, as well as learn what you need for the jobs that are available. If there are fewer jobs in technologies you already know, you should learn a new one. Or, you can learn a new one just because you want to expand your horizons, or any other reason you feel like.

  • In MVC for controller whether to go for JSP or Servlet???

    Which will be better for controller... JSP or a Servlet.... will there be any difference in response time and performance.
    kiran

    I read somewhere that we can use either Servlet or a JSP, I wud like know whether there will be any difference in performance as such and i feel like using JSP as my controller rather than going for a Servlet cuz therez no need for me to compile and all and also there won be any other code in JSP like we use all the formalities for a servlet like for redirecting to a page we need to get the servletcontext and all.
    so on the whole i feel like using a JSP is much comfortable rather than a Servlet... i just need to know whether there will be any difference in the performance and all...
    thx in adv,
    kiran

  • No longer have indication of need for synchronizing a folder

    My workflow in LR is to do all of my editing, etc. and then open Bridge and change all of the file names to reflect more discriptive titles. I then switch back to LR (4.3). In the past this would result in all of my edit pictures involved in this process showing the infamous question mark, BUT also the new discriptive names. I would then sync and all would be well. Now the file name does not change and the question mark does not show. The folder needs to be sync'ed and since I know that I do so and all of the titles then change in the LR view.
    One other piece of data - I installed win7 64 bit (was on 32 bit) and of course reinstalled LR and CS5. I suspect there is some preference setting I need to change to have LR reflect the new file name and thereby need a sync and so indicate it, but I don't know what it is. I could use some advice on this one. Thanks.

    colblip,
    It was not my intention to insult you. But your workflow goes totally "against the grain" of Lr.
    I know that some people insist on their workflow even if it is not optimal. But - and that is my experience from participating in the forum - they usually come to grief.
    It's absolutely fine if you find that Bridge is better for your workflow. But then, why don't you stay in Bridge?
    Mixing Bridge and Lr just doesn't work for the simple reason that Bridge saves to file while Lr saves to its catalog.
    And most experienced users of Lr agree on that Lr and Bridge don't mix well.
    And I used strong words to drive the point home that - indeed - you would do well familiarizing yourself more with Lr, because your current workflow is far from optimal.
    Please, don't take offence. But sometimes strong words are needed to drive a point home.
    You wrote: "this would result in all of my edit pictures involved in this process showing the infamous question mark, BUT also the new discriptive names."
    While it is correct that Lr would show the question mark, it would not display the new file names. Lr displays a question mark when the link between its catalog and the image file is broken. If Lr would display the new file name - created outside of Lr - there would be no need for a question mark.
    Lr would have displayed the changed file names only after <sychronizing folder> but not before.
    The correct way to handle the situation after changing the file name in Bridge would have been to relink the file. You do this by clicking directly onto the question mark (in Grid View) and by selecting <find missing file>, then navigating to and selecting the new file name. This procedure will preserve the Lr edits. But <Synchronize folder> does not.
    <Synchronizing folder> imports "new" images, i.e. the images are read and imported from an file, i.e. from the hard drive. While this procedure is OK for new files that haven't been imported into Lr before, with images already imported into Lr it will discard all catalog data related to this image and replace it with what is on disk. And since Lr stores the edits in its catalog, the edits are lost.
    There is only one way to avoid this: The catalog data has to be written to file before you change the file name.
    Are you beginning to see that your workflow is not optimal?
    You also wrote: "Now the file name does not change and the question mark does not show"
    It may be that the cells are compacted. In the Grid View go >View >Grid View Style and check <Expanded cells>.

  • Which tutorials may you suggest for JDBC and servlets?

    Hello, i would to learn about JDBC and servlets.
    May you please suggest me a good tutorial(e.g.post me a link) in order to study for JDBC and servlets?
    e.g. How to make a servlet etc.
    Thanks, in advance!

    I agree with PhHein, it's best to learn one technology and then the other. (Just my two cents, but start with JDBC from a simple standalone application, then when that is working, try to tackle Servlets, since you will need to also learn how to get them working in a container like Tomcat).
    Here is a tutorial that has both concepts in it at the same time. Site is down now, but is usually up. http://www.roseindia.net/jdbc/jdbcconnectivity.shtml
    Also, you will eventually want to download a J2EE container such as Tomcat or Jboss.
    - Saish

  • Could not find network adapter needed for registration

    Cisco IP Communicator has worked well for a month now. One morning I go to launch the app and I get the error message: Could not find network adapter needed for registration. I rebooted my pc and I got the same result. I reinstalled the app and got the same results. I don't know what if anything changed, but I know I can't even get the application to load to look at any settings. PLEASE HELP!!!
    Brian C

    Hi Brian,
    Have a look at this good thread :)
    http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=IP%20Telephony&topicID=.ee6c829&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cc0bb6f
    Hope this helps!
    Rob

  • Hardware options for synchronization

    Was wondering if someone could help "rank" these approaches for synchronization.
    - TCXO with shared references/PPS (i.e. - MIMO cable or OctoClock)
    - OCXO
    - OCXO with GPS
    The "standard" TCXO models require extra stuff (MIMO or OctoClock or external sources) to phase lock and time synchronize. 
    The OCXO gives you better accuracy...but it is unclear the degree to which this has an effect on phase coherency (and over how long a time).  Presumably, you'd still need something like a PPS to time synchronize?
    With the GPS disciplined devices, are you basically getting the phase coherency and time synchronization from the GPS signal rather than external 'stuff'?  Or are there instances where you'd still need something like the MIMO cable or OctoClock to further nail down timing and synchronization?
    Brandon
    Solved!
    Go to Solution.

    Hi Brandon,
    Thank you for the extra information! I have been looking further in to this issue, and a lot of your question depends on your hardware and system setup. JamesB, awesome post! This is great information.  To add to this, for our GPS USRPS (NI USRP 293x) unfortunately you cannot use the Ref In inputs, so splitting out the external clock is not going to be an option on this hardware. With this in mind, option (c) will likely be the easiest since that is exactly how our USRP's work. Are you using an NI USRP? If so and you're trying to sync up 8 of these USRP's together, GPS might be the only real option. 
    As far as direct cabling vs. GPS for accuracy, direct cabling is more accurate if you are using an external clock that is is more accurate than the onboard clock and if you're using a USRP that can use an external reference clock 
    The NI USRP 2930 and 2932 both have OCXO's which alone are more accurate but there is no way to extract the 10MHz source to another device, except for a MIMO cable which is only good to use for 2 devices. Therefore the direct cabling method only exists for specific scenarios:
    1. Using MIMO cable for up to 2 devices
    2. Using an external clock, and a splitter.
    However, the internal OXCO does not do you any good for more than two device synchronization. Using a GPS antenna, clock disciplining and a clear view of the sky will let each USRP utilize it's own OXCO and still be synchronized. So it is not just GPS, it is the act of using GPS information to adjust the already great OCXO time reference which required each device to adjust it's own clock. The following document shows the specifications for a USRP without a GPS antenna (just the OXCO accuracy) vs. the OCXO accuracy in conjunction with the GPS disciplining in section 4 (Synchronization with GPS Disciplined Oscillators on NI USRP 293x):
    http://www.ni.com/tutorial/14705/en/
    While I was looking in to this, I also found this forum post that had a similiar question:
    http://forums.ni.com/t5/USRP-Software-Radio/Synchronization-of-three-USRP-2932/m-p/2835772
    I hope this was helpful!
    Stephanie S.
    Application Engineer
    National Instruments

  • Configurations needed for Proxies.

    What are the all configuration steps for using a Server proxy.?

    Hi Soumyasanto Sen ,
    Proxy generation converts non-language-specific interface descriptions in WSDL into executable interfaces known as Proxies. Depending on the target programming language, you choose one of the following:1. Java Proxies. or 2. ABAP Proxies.
    We can interface to XI  through proxies. From WAS 6.20, proxy generation feature enables application systems to communicate with XI using proxies. Proxy generation enables you to create proxies in application systems. Proxies encapsulate the creation or parsing of XML messages and the communication with the relevant runtime components required to send or receive the messages.
    There are two types of Proxies.
    1. Java Proxies.
    2. ABAP Proxies.
    Java proxies are used when java applications needs to send and receive data and ABAP proxies are used when ABAP applications needs to send and receive data.
    The following websites contained detailed explanation (PDF & PPT docs) on Configurations needed for Proxies:
    Proxy Generation
    http://help.sap.com/saphelp_nw04/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm
    ABAP Proxy Runtime
    http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
    To activate ABAP proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Detailed step-by-step solution for ABAP proxies in XI
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    ABAP Server proxies
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Debugging of Inbound ABAP proxies
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    File to R/3 via ABAP Proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    How to push data from BI to XI using proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
    How to push data into BW from XI using proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/18dfe590-0201-0010-6b8b-d21dfa9929c9
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • How to setup Microsoft Outlook (office 2011) as Master for synchronization

    Hi all,
    I have  a bothering problem between Apple and Microsoft
    1) How do I configure Microsoft Outlook (Part of Office 2011 package) as master for contacts, apointments,... for synchronization needs wit Apple products?
    2) How does ICal, Mail and Adressbook get the same input automatically?
    3) How do I setup the synchronization (maybe via icloud) correctly that Iphone 4s and Ipad2 get the same input status aslo directly synchronited?
    At the moment what ever I tried I get multiple entries, wrong/missing apointments/only available on macbook not on iphone neither on ipad....
    Its pain in the a&% to do all the time manual deleting efforts on each device...
    Anyone experience?
    Thanks,
    Arne
    System is allways updated. MAC OS X 10.7.3 & Iphone is on 5.0.1.
    I use german settings.

    The folks who set up the Exchange Server should be happy to help you.

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • XMLAGG structure, performance help needed for odd nesting in schema

    Hello,
    I have to produce XML to look like:
    <?xml version='1.0'?>
      <enterprise>
        <membership>
          <sourcedid>
            <id>PHYS_101_001_FA2007</id>
          </sourcedid>
        <!-- NOTE: absence of "members" level tag for XMLAGG! -->
        <member>
          <sourcedid>
            <id>D2LU0001</id>
          </sourcedid>
          <role roletype="Sample Role">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourcedid>
            <id>D2LU0002</id>
          </sourcedid>
          <role roletype="Sample Role">
            <status>1</status>
          </role>
        </member>
      </membership>
    </enterprise>This would be straightforward if the schema allowed for a "<members>" tag under which to nest the <member> tags. But, it does not allow for that tag or any other than those listed above.
    I have a query which does produce that output (except for the roletype attribute), but its performance is horrible; it takes about 40 minutes to return data:
    SELECT
         XMLROOT(
             XMLELEMENT("enterprise",
               XMLAGG(
                 XMLELEMENT("membership",
                   XMLFOREST( XMLELEMENT("id",cx.mapped_course_id) as "sourcedid"
                   (SELECT XMLAGG(
                     XMLELEMENT("member",
                       XMLFOREST(XMLELEMENT("id",spriden_id) AS "sourcedid",
                                 XMLELEMENT("status",'1') AS "role"
                      FROM enrollments_fall_sfrstca efs
                         , spriden sp
                         , gzv_tuid t
                     WHERE sp.spriden_change_ind IS NULL
                       AND sp.spriden_pidm       = t.pidm
                       AND t.tuid                = efs.user_name
                       AND efs.mapped_course_id  = cx.mapped_course_id
                       AND efs.term              = cx.semester
                , VERSION '1.0', STANDALONE NO VALUE)
      FROM courses_xt cx
    WHERE cx.semester = :term_code
    ;Similar queries are producing courses and users XML fine with no performance issues, but these are driven off either the courses view or the enrollments view, but not both.
    Is there some other way I can produce the nesting I need for the vendor's schema?
    The source views are basically as follows (showing relevant columns only):
    courses_xt:
    MAPPED_COURSE_ID       SEMEST
    AVFT209-13307-201210   201210
    AVFT210-13308-201210   201210enrollments_fall_sfrstca:
    MAPPED_COURSE_ID       USER_NAME
    AVFT209-13307-201210    FULLERC8
    AVFT209-13307-201210    SHUPEK
    AVFT209-13307-201210    NOMAN
    AVFT210-13308-201210    SHUPEK
    AVFT210-13308-201210    PELLONMWhen I have the query without the XML (with the subquery as a column of the outer query), this returns the correct data quickly (a couple of minutes).
    I have tried various permutations of XMLFOREST, XMLELEMENT, XMLAGG but either I get syntax errors, or the data is wrong (e.g. repeated '<membership>' for each '<member>', or I have to create an invalid tag '<members>' to be filtered later).
    Please advise!
    Thanks,
    Anita Lees

    Hi Anita,
    Have you tried with a GROUP BY and no subquery?
    Here's an example using SCOTT schema.
    I've used the same tag names and structure so that you can see the analogy :
    SELECT XMLElement("enterprise",
             XMLAgg(
               XMLElement("membership",
                 XMLElement("sourceid", xmlelement("id", d.deptno))
               , XMLAgg(
                   XMLElement("member",
                     XMLElement("sourceid",
                       XMLElement("id", e.empno)
                   , XMLElement("role",
                       XMLAttributes(e.job as "roletype")
                     , XMLElement("status", '1')
    FROM scott.dept d
         LEFT OUTER JOIN scott.emp e ON e.deptno = d.deptno
    WHERE d.deptno IN (10,20)
    GROUP BY d.deptno
    ;which gives :
    <enterprise>
      <membership>
        <sourceid>
          <id>10</id>
        </sourceid>
        <member>
          <sourceid>
            <id>7782</id>
          </sourceid>
          <role roletype="MANAGER">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourceid>
            <id>7934</id>
          </sourceid>
          <role roletype="CLERK">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourceid>
            <id>7839</id>
          </sourceid>
          <role roletype="PRESIDENT">
            <status>1</status>
          </role>
        </member>
      </membership>
      <membership>
        <sourceid>
          <id>20</id>
        </sourceid>
        <member>
          <sourceid>
            <id>7369</id>
          </sourceid>
          <role roletype="CLERK">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourceid>
            <id>7902</id>
          </sourceid>
          <role roletype="ANALYST">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourceid>
            <id>7566</id>
          </sourceid>
          <role roletype="MANAGER">
            <status>1</status>
          </role>
        </member>
      </membership>
    </enterprise>

Maybe you are looking for

  • ITunes not syncing more than 1 song at a time with SLVR

    I need some help with Itunes and syncing it to my son's Motorola SLVR L7. It seems that if I try to sync more than 1 song at a time, it fails out saying that it can not find file. I can sync one song at a time, but I have to disconnect and reconnect

  • Bluetooth tethering no longer working - iPhone 3GS (iOS4.1) and Macbook Pro

    Hi all, I don't understand why this is not working anymore. In the past I had successfully paired & used a bluetooth tethered connection between my Macbook Pro (OSX 10.6.4) & my iPhone 3GS (pre 4.1). The network connection was working and I was able

  • Slow startup CC&B 2.3.1

    Anyone else out there seeing an extremely slow startup time with CC&B 2.3.1 (using RH Linux here, but have seen it on Windows servers as well, so I'm not so sure OS is really important here, but wanted to note it just in case). It shows the following

  • Problem in Leave Request

    Hi, We are using EP 7.0 , ECC 6.0. when an employee is requesting leave, the request is not going to the substitute but it is going to the manager who is in leave. I haven't worked on ESS/MSS.  How and where can i check for the problem? and how to re

  • Fault Handling with periodic notification and infinite retry.

    Hi all, I am invoking a database adapter to call a PL/SQL procedure and during maintenance window the database could be down for upto 4 hours. My requirement is to keep re-trying until the server comes back up but notify someone after every 4 hours.