LibraryService.connect - very quick question :-)

I have a quick query on the LibraryService.connect method. If I have 10 threads calling this method one after the other (Basically using a synchronised wrapper method) will this method return a new Library session for each call OR is it possible that an existing session will be returned. If an existing session is returned and subsequently two threads try to perform a task simultaneouly on the same LibrarySession will this cause a problem?
many thanks in advance
Trev.

a call to LibraryService.connect will always create a new LibrarySession
the LibrarySession class is thread-safe, but certain operations are not synchronized, such as starting and ending transactions. if you have multiple threads using a single LibrarySession, you must ensure that your transaction management is synchronized, otherwise you may end up with transactions being committed out of order, which causes an error.
here is some more info:
BIN$$ Tables in target shema

Similar Messages

  • DB connection issue - quick question

    Hi
    We have standalone weblogic 10.3.6 that we deploy our JDev ADF application to.
    In our ADF app, all our bc4j.xcfg use JNDI datasource, ie all our application module uses that JDNI Name.
    In our Weblogic, we also configured to use the JNDI datasource, so we very sure we configured right.
    In our application properties deployment, we also uncheck Auto Generated and Synchronize weblogic-jdbc.xml box, before our deployment from JDev
    After deployment and running our ADF app, we see from weblogic console this error
    <Nov 1, 2012 4:43:11 PM PDT> <Warning> <oracle.adf.share.jndi.ReferenceStoreHelper> <BEA-000000> <Incomplete connection reference object for connection:OPTDB>
    This error stops us in our ADF web app to move between pages on our train component.
    We found that the Model project Business component has the entry OPTDB and configured using Driver thin and Oracle(JDBC) connection type.
    Is the error we saw on WLS tied with the Model project Business component has the entry OPTDB ?
    What does the <oracle.adf.share.jndi.ReferenceStoreHelper> <BEA-000000> mean ?
    How do we get rid of this error and recover our ADF application ?
    Thanks

    Hi Ornulf,
    this looks as your JDBC driver don't get to work. How did you install this? In the standard way?
    Regards,
    Benny

  • [Solved] Very quick question, Accessing NTFS windows drive

    So I have Windows in my first harddrive (Bigger HD hold my music, games etc.)
    And Arch is installed to the second smaller HD, How would I make it so that the NTFS windows HD would be automounted and I have the ability to view all my files?
    Last edited by Lobstertorch (2009-11-04 03:03:44)

    ;_; that sucks. alright... I'm gonna give this a whirl. I'm assuming i'd
    sudo mkdir /win
    chmod a+rwx /win
    then add that above line to my /etc/fstab?
    Will I need a reboot?
    And what about the embedded spaces stuff? I plan on accesessing these files through a filemanager.
    Thanks for your patience, and I spaced this post weird like what the hell?
    EDIT: I did it :3. Thank you very much. At first when you posted I was kinda like uh oh. But I got it now. Always learning new things . Thanks.
    Last edited by Lobstertorch (2009-11-04 03:03:30)

  • Very quick question.... preview texts / missed call notifications

    I've had my Z3C for over a month now. If I am totally honest.. I wish I had stuck to the iphone. But never mind, i am pleased i have given it a try.
    Anyway... how do i turn on SMS previews? I've worked out how to get whatsapp message previews but I can't see sms previews.
    Also, can i see that I have received a text or missed call while on the locked screen? When I receive a text or missed call while i've been away from my handset for a short time I sometimes don't realise unless i unlock the screen.
    How do I change this? Thanks in advance

    Since you had an iPhone before, perhaps this is what you want/need
    you can download and app like this
    WidgetLocker
    https://market.android.com/details?id=com.teslacoilsw.widgetlocker&feature=search_result#?t=W251bGws.....
    ICS Lockscreen HD
    https://market.android.com/details?id=com.dj.golocker.theme.icecream&feature=search_result#?t=W251bG...
    https://market.android.com/details?id=dcombl.golocker.ics&feature=related_apps#?t=W251bGwsMSwxLDEwOS...
    Lucent Lock Screen
    https://play.google.com/store/apps/details?id=com.whitegorillamedia.lockscreen&feature=search_result....
    Extended Controls
    https://play.google.com/store/apps/details?id=com.extendedcontrols&feature=related_apps#?t=W251bGwsM.....
    iPhone notifications lite
    https://play.google.com/store/apps/details?id=com.nlucas.iphonenotificationslite&feature=search_resu...
    Notification Bubbles
    https://play.google.com/store/apps/details?id=com.commind.bubbles&feature=search_result#?t=W251bGwsM...
    NotifierPro Plus
    https://play.google.com/store/apps/details?id=com.nlucas.notificationtoaster&feature=more_from_devel...
    and it seems that handcent has a similar feature
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Very Quick Question

    I have a line of text eg "abcdef". How do I access each individual letter - ie How do i point to just the "a" then move and point to just the "b" etc.
    Many thanks

    See
    http://java.sun.com/j2se/1.4.1/docs/api/
    http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html
    but since I'm in 'be nice' mode right now, I'll tell you straight away:
    final String test1 = "abcdef";
    final char[] test2 = test1.toCharArray();
    for (int k = 0; k < test2.length; k++) {
        System.out.println("Character at position " + k + " in \"" + test1 + "\" is '" + test2[k] + "'.");
    }

  • A quick question about WebDynpro SLD and R/3 with concurrent users

    Hello ,
    I have a very quick question about Webdynpros and SLD connecting to an R/3 system, when you configure a webdynpro to connect to an R/3 system using SLD, you configure a user name and password from the R/3  for the SLD to use. What I would like to know is when I have concurrent users of my webdynpro, how can I know what one user did in R/3 and what another user did? Is there a way for the users of the web dynpro to use their R/3 credentials so SLD can access the R/3? Like dynamically configuring the SLD for each user?
    - I would like to avoid leaving their their passwords open in the code ( configuring two variable to get the users username and password and use these variables as JCO username and password )
    Thanks Ubergeeks,
    Guy

    Hi Guy
    You will have to use Single Sign On to achieve this. In the destination you have defined to connect to R/3 , there is an option to 'useSSO' instead of userid and password. This will ensure that calls to R/3 will be with the userid that has logged into WAS. You wont need to pass any passwords because  a login ticket is generated from WAS and passed on to R/3. The userid is derived from this ticket.
    For this to happen you will have to maintain a trust relation ship between R/3 and your WAS ,there is detailed documentation of this in help files. Configuration is very straight forward and is easy to perform
    Regards
    Pran

  • Quick question, where to put global variables

    Very quick question:
    where is the best place to put global variables,
    (e.g. a flag that turns on debug mode)
    if they are needed by the entire application?
    I'm guessing they should be placed in their own class.
    But should I make them public static final constants,
    and just do Globals.MYCONSTANT
    OR should i do "implements Globals" in all my other classes?
    The first way seems simpler and more logical,
    but in the examples for JSDT, they use the second technique.
    Any thoughts?
    thanks! =)

    I would suggest either creating a properties file for your globals, or adding them to the system properties at startup. Placing items like debugging tags in your code means that you have to change the code, recompile, and rejar before your change is implemented. Using system properties means that you simply have to change your command-line options (i.e., from -Dmyapp.debug=true to -Dmyapp.debug=false).
    Shaun

  • Quick question about SATA 2

    Hi,
    Very quick question,
    Are the newer SATA2 Hard Disks compatible with the older model of the Mac Pro? May sound stupid, but I believe that the Mac Pro was released before the SATA 2, so just wanted to check the Mac Pro hardware etc will take SATA 2.
    By older model of Mac Pro, I mean the one released before the newest available models (2 x 2.66Ghz Dual Core).
    Thanks!

    Hi 02drummersteve02;
    SATA 2 is backwards compatible with SATA 1. So you can install SATA 2 drives in a SATA 1 computer.
    Allan

  • Quick Question: MobileMe and Info Tab in iTunes

    Hi All
    I'm new to the iPhone, but use a Macbook and MobileMe.
    My very quick question is...
    Should I be using the settings on the phone to sync to MobileMe while leaving the iTunes Info Tab settings unselected?
    Hope that makes sense.
    Thanks in advance.

    Hi,
    You can no longer sync contacts with iTunes 11.1.4 with mavericks OS X
    http://support.apple.com/kb/PH12117
    Jim

  • Very Quick PF Input Question

    Hello.
    A quick question if I may. I am in diffs.
    What are/When to use the PF inputs?
    With regard to triggering data aquistiions, will wiring a +5V input to pfi0 work as a trigger?
    Thanks.

    Hello Brian. Thanks for the reply.
    I am using a 6071 card.
    PFI 0/AI START
    PFI 1/REF TRIG
    Perhaps I should be using the PFI 1 port?
    http://www.ni.com/pdf/products/us/4daqsc199-201_ETC_212-213.pdf
    Here is the link for the pdf of 6071
    Best Regards
    Thomas

  • Very quick Do while question!

    Hey guys,
    Quick question i somewhat forgot how to do the do while loop, heres what i think it looks like but it keeps giving me an error on the syntax.
    Any pointers would help please.
    do{
           //code goes here
    while(y>x);Where does the last { go?
    Thanks in advance!

    I said in front of the while, not after it.
    do
    {Ok thanks the syntax error went away but when i run the loop it just runs past the question why?
    do{
              if((side1+side2)>=side3)
                        System.out.println("The perimeter of the triangle is "+total);
              else
                   System.out.println("The input is invalid:");
                   System.out.println("The sum of side 1 and side 2 can't be greater than the third side!:");
                   System.out.println("Would you like to try again");
                   answer=scan.nextLine();
                   }while(answer.equalsIgnoreCase("y"));
    }It executes everything right except it doesn't let you enter an answer.

  • Very quick battery drain on mid 2013 macbook air please help!

    hello, my 13" macbook air is losing battery very quickly and i don't know why or what to do...
    i tried to reset the SMC and deleting all my cache files... i have closed all running applications and the battery save preferences are on default...
    I'm running OS X Mavricks and when i first installed it i did get about 14 hours of battery life with normal use, but now i only get as high as 6 hours.
    what can i do to get things back on track?
    thanks to anyone who helps!

    1. Check the cycle count of the battery against the limit for your model. The battery may be due for replacement. If the power adapter is connected almost all the time, the battery may need replacing even though the cycle count is not too high.
    2. Follow these instructions, or these for OS X 10.9 or later.
    3. In the Energy Saver preference pane, uncheck the box marked
    Enable Power Nap while on battery power
    4. You can also try resetting the SMC.
    5. Make sure your system is up to date in Software Update.
    6. Make a "Genius" appointment at an Apple Store, or go to another authorized service center.

  • Two quick questions about Library after moving beginning on a new computer

    Hi there,
    I just moved from Windows to Mac, meaning I had to move my iTunes library from the old PC to my new MBA.
    Just a couple of quick questions.
    1. When I started iTunes on my new Mac, in the preferences I directed the media folder to the folder with all my itunes music/podcasts etc, and then I imported the Library XML file.  Is this incorrect? Should I have imported a different file? Should I have used the itl file instead? 
    If so, should I delete the library and start again?  (if this is the case, please suggest the best way of doing this without affecting my media)
    - a kind of sub-question to this one:  some of the media files arent showing up in the iTunes library, but they are in the media folder on the ext HDD.  Is there a way I can find out which ones havent been recognized by iTunes?  Whats the best way of getting them in to my library?
    2. Pretty much half of my podcasts have not been loaded in the new iTunes.  The ones that havent were ones that I subscribed to on my iPhone, whereas the ones that show up in iTunes were ones I downloaded from iTunes.  When I connect my iPhone and sync it with iTunes, will those podcasts show up in iTunes?  Or is there a risk that they will be deleted from my iPhone?
    Cheers,

    The .xml is lacking some information such as ratings, date added, and play count.  Using the .itl includes this information but cannot be imported using the method you did.
    A complete library is everything in the iTunes folder.  By using the method you did you left the artwork behind in the artwork folder on the other machine.
    Selecting the media folder in preferences does not get iTunes to recognize the media.  All it does is tell iTunes to start storing new media in that location.
    Using the method I outlined nothing will be missed (with the exception of WMA) because you aren't rebuilding your library, you are using the one that already exists.
    You don't have to re-copy everything as long as you get the stuff you missed and re-assemble it all as it was before except not on the Mac.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391

  • If I upgrade to Mountain Lion on the computer that will install it, will my WIFI still work on the computer that cannot be upgraded? I know this is a very basic question

    If I upgrade to Mountain Lion on the computer that will install it, will my WIFI still work on the computer that cannot be upgraded? I know this is a very basic question. Trying to hold out as long as I can, but purchasing an iPhone for Christmas and new iMac next year when warrently expires.

    Thank U very much for the quick reply, I wanted to upgrade this weekend, but still on the fence. I can live with the software that is not compatible, they are on another compuetr, just didn't want the obvious stuff to stop working.

  • LibraryService.connect() method hangs

    I have a servlet application that uses IFS with Oracle IFS 9.0.1. I have a pool of LibrarySessions that are dynamically created and connected using LibraryService.connect() if a new LibrarySession is needed. Each LibrarySession uses the same login username and password. We have one username and password for the entire web app and the application uses this one user for all calls into IFS.
    Here's my problem:
    Servlet Thread 1:
    Creates a new LibrarySession and begins to stream a file to the client by writing Document.getContent() to the servlet outputstream.
    Servlet Thread 2:
    While thread 1 is still busy streaming the file from IFS to the servlet output stream, servlet thread 2 attempts to create a new LibrarySession via LibraryService.connect().
    Result:
    Thread 1 stops streaming the file. Thread 2 hangs and no more LibrarySessions can be created from that point forward.
    Questions:
    1. Should you be able to perform multiple threads at the same time using different LibrarySessions for the same user name?
    2. I'm guessing that thread 1's handles into IFS are somehow blocking thread 2 from connecting and creating a new LibrarySession. Why would this happen? Do LibrarySessions need to be created during a period of inactivity? Is something syncronized in the IFS API that I'm not aware of?
    Thanks,
    Steve Probst
    Mezzia, Inc.
    Indianapolis, IN

    Answers:
    1. Yes, you should be able to create multiple threads, each of which use different LibrarySession objects concurrently, even if the LibrarySession objects are authenticated as the same user.
    2. a) I'm not sure why this would happen.
    2. b) No, LibrarySession objects can be created anytime.
    2. c) There are many things in the iFS API implementation that are synchronized behind the scenes, but it shouldn't be causing this problem.
    Have you tried iFS 9.0.3?
    By the way, the DAV server that is built in to the product works just like your servlet, and supports multiple users connecting and streaming content all at the same time.
    Can you connect to the DAV server on your iFS instance and stream content concurrently with other connected users?

Maybe you are looking for

  • IPhone 6 apps crashing - mapkit bug?

    Hey everyone, so I have an iPhone 6, 64GB.  I've been having app crashing issues with specific apps, and apple it not of much help at all.  I think I may have narrowed down the problem, but wondering if anyone else is having the same issue?  So far,

  • Incorrect data from "table.getString" in jCO call to a Unicode SAP sys

    We have started getting java errors, with a local standalone java application, after we converted our SAP system to Unicode. The java application makes a RFC call to SAP and runs a functional module, which extracts payment data. The data is passed th

  • Create custom data when releasing a Purchase Order

    Hello people, The customer uses ME28 to release the Purchase Order. They have, for instance, two release estrategies: W1/01 and W2/02, that differ about the price. The scenario is: When the customer releases a Purchase order from W2/02 strategy using

  • Script Errors when submitting the Page

    We are using iPlanet 4.1 as WebServer under SSL mode. The customers who are working under Windows XP with IE6.0(128bit) browsers are having Script Error problem, while submitting the data to the WebServer. Though the number of customers affected are

  • Customised file explorer window for Geo-tagged images

    Dear All, I am really stuck on this issue. Did lots of searching but reached nowhere. I want to launch a file explorer window which displays only geo-tagged images(can be .jpg,.tiff,.gif) in the form of thumbnails. On selecting any of the images, the