Access Manager Client SDK Java Usage with multiple OpenSSO instances

I am having some problems using the SDK / API for connecting to OpenSSO in a Java multi-threaded environment, while connecting to multiple instances of OpenSSO.
Is there a way to setup a new AuthContext that does not include 1) Use of global configuration AMConfig.properties or 2) Stick stuff in SystemProperties?
I see a constructor that takes an OpenSSO url, but the 2nd parameter seems to be ignored. .I.e. com.sun.identity.authentication.AuthContext.AuthContext(String orgName, URL url). I can login if I use the naming service url using "com.iplanet.am.naming.url" with the following code, but for this to work while connecting to multiple OpenSSO servers, I have to synchronized the calls and create the context each time I want to perform an API call.
THIS WORKS:
          String realm = "/";
          String strUrl = url.toExternalForm();
          // from AM server's AMConfig.properties
          Properties amEnv = new Properties();
          amEnv.setProperty("com.iplanet.am.naming.url", strUrl);
          amEnv.setProperty("com.iplanet.am.naming.failover.url", "");
          amEnv.setProperty("com.iplanet.services.debug.level", "message");
          amEnv.setProperty("com.iplanet.services.debug.directory", "/tmp/debug");
          amEnv.setProperty("com.iplanet.security.encryptor",     "com.iplanet.services.util.JSSEncryption");
          amEnv.setProperty("am.encryption.pwd", "BXo8vzOHob8FTpR6da+cSAi0TPLTH2Q/");
          SystemProperties.initializeProperties(amEnv);          
          lc = new AuthContext(realm);
THIS DOESN'T:
          amEnv.setProperty("com.iplanet.am.naming.url", "");
          lc = new AuthContext(realm, strUrl);
In my ideal scenario, I'd like to cache a number of different AuthContext instances which connect to a number of different OpenSSO servers. When trying the second scenario, I get the following error message:
"Failed to create new Authentication Context: {0}"
Ideas?

Yep, that was me struggling with 2005Q4 before they released a patch (120954-03 if I am not mistaken).
1. Have you configured your AM installation as a site?
2. Have you added a secondary configuration in the session tab?
A restart will be required after that. Try setting log levels to debug. When AM webserver comes up and brings the application live, you'll see information regarding the secondary configuration, and whether things are actually in place or not.
Hope this helps.
Ankush
http://www.iamcg.net

Similar Messages

  • LDAP connections with multiple proxy instances

    After configuring LDAP connectivity through the Admin application on a machine with multiple proxy instances I end up with:
    number of proxy instances x LDAPConnPool times number of connections to the LDAP server.
    Question: Is it possible to prevent some of the proxy instances from opening LDAP connections?

    Hi
    Increase the IDLE timeout value on the LDAP server. Of course, this just extends the inevitable. Check if there is a way to disable IDLE timeout on LDAP server.
    Regards,
    Nagendra HK

  • Single SOA Suite Install with multiple oc4j instances and java processes

    We right now have 5 BPEL processes and 5 ESB processes all running under one java.exe process. We would like to seperate some of
    them out into their own java.exe processes without having to install more
    %ORACLE_HOME% instances of SOA Suite. I can create an oc4j instance but of
    course it doesn't have any SOA Suite stuff deployed to it. I tried to see what
    the install would do with this new oc4j instance but it wants to create a new
    %ORACLE_HOME% with an entire installation of SOA Suite.
    Is there some sort of way to clone oc4j instances that have SOA Suite deployed to them so that you
    don't need multiple %ORACLE_HOME% instances?
    ### How is this Issue Impacting Your Business ###
    We really don't want to have a lot of %ORACLE_HOME% instances to have to maintain. We are
    migrating projects over from our current integration server product and we'll
    have potentially dozens more BPEL and ESB projects. We definitely want to
    group and isolate projects so that outages of one project do not bring down
    others that are unrelated.
    We are currently experiencing periodic problems with one BPEL project that requires recycling but all the other BPEL and ESB
    projects get recycled also. If we could put this project into it's own java
    process without creating another SOA SUITE instance, it would be a big
    help.
    ANSWER
    =======
    You can create multiple domains in BPEL or create multiple systems/groups in ESB to group different projects.
    MY REPLY:
    =========
    We have been using systems/groups in ESB but they all run under the save java.exe process. I would assume that having a seperate domain in BPEL would also run in that same java.exe process.
    Right now, the one BPEL project we have a problem with will gobble up all the JDBC connections from time to time and that requires a recycle of SOA Suite, which means all BPEL and ESB projects that run in that java.exe process get recycled also. We're working that issue in a different ticket.
    It would be nice if the SOA Suite installation would install against a new oc4j instance and not assume it has to create a complete %ORACLE_HOME% instance. The components of SOA Suite seem to be J2EE based components.
    Scenario: I already have an oc4j instance called oc4j_soa and a complete %ORACLE_HOME% installation of soa suite. I then create a new oc4j instance from Enterprise Manager. Then I would deploy the esb-dt, esb-rt, orabpel, etc. components of SOA Suite to that new oc4j instance and modify the necessary config file so that it can work with OHS and the SOA Suite Databases. Is this possible?
    Does anyone have any experience with this or do people typically install multiple complete installation of SOA Suite with mulitple Oracle Homes?

    Hi,
    yes, on metalink you get in touch with real experts....
    You have to install serveral application servers to get different ORACLE_HOMEs.
    For each one, you can install a BPEL PM.
    But: For each BPEL PM you need your own database instance, or you have to configure them as a clustered BPEL installation.... (but i do not know if this work with non RAC DBs)

  • Oracle Apex - SSO with IBM Tivoli Access Manager WebSeal - filters out Files with Server Error 500

    Hi,
    We are using IBM Tivoli Access Manager for SSO to authenticate users to access our APEX application. The authentication works but...
    When the application is being accessed with the WebSeal JS/CSS files are randomly not loaded and show up with either HTTP 400 or HTTP 500 error in the FF Toolbar Console. Of course without certain CSS / JS files the application can't be used by the user.
    If the application is accessed without WebSeal all files are loaded successful.
    Our set up:
    There are two APEX Applications using the WebSeal - the first one apparently works
    Apex Listener on Tomcat7.0
    Apex 4.2.6
    We tried all kind of different WebSeal configurations but nothing worked so far.
    I found the following:
    interactive report problem with SSO
    ==> Does anyone know how to use mapping tables and does it help?
    Interactive report javascript error due to proxy
    ==> The solution is for EPG but we use Tomcat as Listener so the solution does not apply
    Does anyone know how to configure the WebSeal ?
    Thanks

    I have same issue with Apex 4.2.6 and Webseal,  but only on Mobile Application.  Desktop Application is ok.
    I have raise a SR on supportweb, but SR engineer tell me it's may be the Webseal issue, they can't reproduce it with Oracle Access Manger.
    It's really a tough issue.

  • Certificate Exception - applet client to java server with SSL

    Hi,
    I'm having some trouble getting SSL working and hope
    someone can shed some light. I've been plowing through
    these forums for a couple of days - seems lots of folks
    have had this problem but I can't find a clear solution.
    I've written a server in java. The client is an applet.
    This is an internet app so I have no control over
    configuring clients. I'm trying to prove SSL communication from the applet to my server. This is
    commercial software so the customer would put their own
    keys on the machine and resign the applet before deploying.
    I've created a keystore with keytool. Then I self-
    signed it. Then I signed my applet jarfile. I've even tried exporting the certificate and importing using the java plug-in control panel
    (obviously not something I can do in the real world but
    just wanted to see if that was it). I start up my server
    and navigate to a web page to start the applet. For
    development purposes, I'm doing this all on one machine. I'm running jdk 1.4.1_02. We're requiring the
    Sun plug-in as our client java VM.
    Once the client starts to connect, I get this error in
    the plug-in console:
    java.security.cert.CertificateException: Couldn't find trusted certificate
    On my server, I get:
    Wed May 14 16:27:46 EDT 2003 [EXCEPTION]: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
    javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA6275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
         at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406)
         at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446)
         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
         at java.io.InputStreamReader.read(InputStreamReader.java:167)
         at java.io.BufferedReader.fill(BufferedReader.java:136)
         at java.io.BufferedReader.readLine(BufferedReader.java:299)
         at java.io.BufferedReader.readLine(BufferedReader.java:362)
         at com.pactolus.webBroker.psWebLegClientThread.run(psWebLegClientThread.java:130)
         at java.lang.Thread.run(Thread.java:536)
    The client code is pretty simple:
    SSLSocketFactory factory = (SSLSocketFactory)
        SSLSocketFactory.getDefault();
    tcpSocket = (SSLSocket) factory.createSocket(addr,
                                                 iPortNbr);
    tcpSocket.setUseClientMode(true);
    tcpSocket.startHandshake();followed by a thread kick-off which will listen on the
    socket for incoming messages.
    The server code is:
    SSLContext sslCtxt = SSLContext.getInstance("SSL");
    KeyManagerFactory kmf = KeyManagerFactory.getInstance
       ("SunX509");
    KeyStore ks = KeyStore.getInstance("JKS");
    char[] password = keyPassword.toCharArray();
    ks.load(new FileInputStream(keyFile), password);
    kmf.init(ks, password);
    sslCtxt.init(kmf.getKeyManagers(), null, null);
    SSLServerSocketFactory factory = 
        sslCtxt.getServerSocketFactory();
    secureTCPSocket = (SSLServerSocket)
        factory.createServerSocket(port);
    secureTCPSocket.setNeedClientAuth(false);followed by a thread kick-off which will listen for
    connections and spin-off other threads to manage each
    client socket.
    I'm pretty much at my wits end. As I said, seems lots of
    folks have had this problem but I haven't yet seen a
    firm answer.
    If anyone can shed some light on this so I can get my
    proof of conecept going, I would really appreciate it -and buy you a couple of beers!
    Thanks,
    Scott Johnson

    Problem resolved! It was the certificate. I can get it working in a test scenario by using the test certs file
    provided with the jdk on the client and server sides.
    So, does this mean that I MUST use a certificate from
    one of the known authorities as delivered with the JDK?
    My applet will be used by internet clients. I'm requiring
    the sun plug-in. Is it true there is no way to get
    a certificate I've created to be presented to the client
    so it can choose to add it to it's trusted authorities?
    I am required to use, say, a Verisign certificate?
    I can get my sample working but only if I place a
    jssecacerts (a copy of the samplecacerts) where both the client and server can get at it. In the real world, I can't do that on the client.
    Presumably the client will only have the cacerts that was delivered with the Sun plug-in. I'm restricted, then, to using a server key file signed with a certificate from
    one of the providers found in the cacerts file? Or, can
    I present to the client a certificate which it can
    choose to accept as trusted and place in it's cacerts file? Any info would be appreciated - I've already
    committed those duke bucks!
    Scott
    Hi,
    I'm having some trouble getting SSL working and hope
    someone can shed some light. I've been plowing
    through
    these forums for a couple of days - seems lots of
    folks
    have had this problem but I can't find a clear
    solution.
    I've written a server in java. The client is an
    applet.
    This is an internet app so I have no control over
    configuring clients. I'm trying to prove SSL
    communication from the applet to my server. This is
    commercial software so the customer would put their
    own
    keys on the machine and resign the applet before
    deploying.
    I've created a keystore with keytool. Then I self-
    signed it. Then I signed my applet jarfile. I've
    even tried exporting the certificate and importing
    using the java plug-in control panel
    (obviously not something I can do in the real world
    but
    just wanted to see if that was it). I start up my
    server
    and navigate to a web page to start the applet. For
    development purposes, I'm doing this all on one
    machine. I'm running jdk 1.4.1_02. We're requiring
    the
    Sun plug-in as our client java VM.
    Once the client starts to connect, I get this error
    in
    the plug-in console:
    java.security.cert.CertificateException: Couldn't find
    trusted certificate
    On my server, I get:
    Wed May 14 16:27:46 EDT 2003 [EXCEPTION]:
    javax.net.ssl.SSLHandshakeException: Received fatal
    alert: certificate_unknown
    javax.net.ssl.SSLHandshakeException: Received fatal
    alert: certificate_unknown
    at
    com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(Dasho
    6275)
    at
    com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(Dasho
    6275)
    at
    com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA627
    at
    com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA627
    at
    com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA627
    at
    com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA627
    at
    com.sun.net.ssl.internal.ssl.AppInputStream.read(Dasho
    6275)
    at
    sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDec
    der.java:406)
    at
    sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDeco
    er.java:446)
    at
    sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
    at
    java.io.InputStreamReader.read(InputStreamReader.java:
    67)
    at
    java.io.BufferedReader.fill(BufferedReader.java:136)
    at
    java.io.BufferedReader.readLine(BufferedReader.java:29
    at
    java.io.BufferedReader.readLine(BufferedReader.java:36
    at
    com.pactolus.webBroker.psWebLegClientThread.run(psWebL
    gClientThread.java:130)
         at java.lang.Thread.run(Thread.java:536)
    The client code is pretty simple:
    SSLSocketFactory factory = (SSLSocketFactory)
    SSLSocketFactory.getDefault();
    tcpSocket = (SSLSocket) factory.createSocket(addr,
    iPortNbr);
    tcpSocket.setUseClientMode(true);
    tcpSocket.startHandshake();followed by a thread kick-off which will listen on
    the
    socket for incoming messages.
    The server code is:
    SSLContext sslCtxt = SSLContext.getInstance("SSL");
    KeyManagerFactory kmf = KeyManagerFactory.getInstance
    ("SunX509");
    KeyStore ks = KeyStore.getInstance("JKS");
    char[] password = keyPassword.toCharArray();
    ks.load(new FileInputStream(keyFile), password);
    kmf.init(ks, password);
    sslCtxt.init(kmf.getKeyManagers(), null, null);
    SSLServerSocketFactory factory = 
    sslCtxt.getServerSocketFactory();
    secureTCPSocket = (SSLServerSocket)
    factory.createServerSocket(port);
    secureTCPSocket.setNeedClientAuth(false);followed by a thread kick-off which will listen for
    connections and spin-off other threads to manage each
    client socket.
    I'm pretty much at my wits end. As I said, seems lots
    of
    folks have had this problem but I haven't yet seen a
    firm answer.
    If anyone can shed some light on this so I can get my
    proof of conecept going, I would really appreciate it
    -and buy you a couple of beers!
    Thanks,
    Scott Johnson

  • How to install ADS for usage with multiple systems ?

    Good day,
    In our ERP6 System Landscape we have the usual DEV, TST and PRD systems. I have a request to setup ADS with interactive forms to be accessible from each of these systems. Am I right to assume I would need to install a Java Add-In with ADS on each system so each system can have it's own database source for data capture from the interactive forms ? There is no mention in the documentation of using multiple database sources on a single ADS configured system.
    Your suggestions and advice on this matter are greatly appreciated.
    Regards,
    Nelis

    Nelis
    you dont need any JAVA Addin install on your connected Systems (HR, eRec, ECC or whatever)
    You just need the RFC from ABAP (lets say ECC) to your ADS (JAVA)
    you can connect as many Systems as you like. But also check SAP Note #1133230
    We actually have a 2 TIER Landscape Only. ADS-DEV and ADS-PROD. All Development and Quality Systems (HR, eRec, ECC, BW, XI, SolMan) are connected to ADS-DEV. All Production SAP Systems are connected to our ADS-PROD
    http://help.sap.com/saphelp_nw70/helpdata/DE/37/504b8cbc2848a494facfdc09a359b1/content.htm
    Nesimi

  • How to create a .java file with multiple classes

    I have all the below classes declared in a file say ABC.java under
    a common package called somepackage
    Abstract class A
    Void abstract metod1();
    Void metod2();
    Class B
    void method3();
    Void method4();
    Class C
    void method1();
    Void method2();
    In Client.Java
    On compiling the Client.Java I get errors
    Import somepackag.*;
    Class Samp extents A
    void Method1()
    Public class Client
    A a1 =new Samp(); //error undeclared class A
    B b1 = new B1();//error undeclared class B
    C c1 = new C1();//error undeclared class C
    is it possible to have all the class declared in one file ( i dont need mutiple classes, as this file will be autogenerated , i need all classes in one file) and use the classes inside this in the some client app
    regards
    MP

    Peetzore wrote:
    As long as you have only one public class and your .java file is named after it you shouldn't have any problem.I did exactly that, but still i get the same error "Cannot find symbol"
    i have used the import command on top as import somepackage.*;
    Edited by: mpjava on Jun 2, 2009 1:29 AM
    Edited by: mpjava on Jun 2, 2009 1:30 AM

  • Sync manually managed iPod played count etc with multiple iTunes libraries

    I have my music and podcasts spread out in different iTunes libraries. So if I sync items, tracks from another library are deleted from my iPod therefore I manually manage my tracks. The downside is when you connect a manual iPod to iTunes your ratings, played date, count don't get synced with the iTunes Library. So I created a simple applescript that syncs tracks on specified playlists on your iPod with matching ones in iTunes. I realise applescripts exist to do this already but I wanted something which required no user input and simply did what would happen if the iPod was in sync mode.
    The applescript:
    tell application "iTunes"
        set iPodName to ""
        set syncPlaylists to {"Music", "Podcasts"}
        repeat with syncPlaylist in syncPlaylists
            repeat with i from 1 to count of sources
                if the kind of source i is iPod then
                    set iPodName to name of source i as string
                    set ipodPlaylistId to (first playlist of source iPodName whose name is syncPlaylist)
                end if
            end repeat
            set musicLibraryId to (first playlist whose name is syncPlaylist)
            --update every track itunes syncPlaylist with data from ipod syncPlaylist
            repeat with ipodPlaylistTracksCounter from 1 to count of tracks of ipodPlaylistId
                set ipodTrack to track ipodPlaylistTracksCounter of ipodPlaylistId
                set ipodTrackData to {name, artist, album, played date, played count, rating} of ipodTrack
                set foundTracksInPlaylist to (every track of musicLibraryId whose ((name is item 1 of ipodTrackData) and (artist is item 2 of ipodTrackData) and (album is item 3 of ipodTrackData)))
                repeat with eachFoundTrackInPlaylist in foundTracksInPlaylist
                    --use try blocks in case of missing data
                    try
                        set played date of eachFoundTrackInPlaylist to item 4 of ipodTrackData
                    end try
                    try
                        set played count of eachFoundTrackInPlaylist to item 5 of ipodTrackData
                    end try
                    try
                        set rating of eachFoundTrackInPlaylist to item 6 of ipodTrackData
                    end try
                end repeat
            end repeat
        end repeat
    end tell
    Mac Mini G4   Mac OS X (10.4.8)   1 GB RAM, ATI 9200 32MB, Samsung 940BW 19" Widescreen TFT LCD monitor

    btw if you don't know how to use applescripts. Open script editor, you'll find it in Applications/Applescript/. Open a new window and copy the code in it and press compile. Save as a script and place in your home folder at ~/Library/iTunes/Scripts, create a Scripts folder if it doesn't exist. Alternatively, save as an application, on opening it will do its magic! Make sure an iPod is mounted in iTunes otherwise an error message will pop up.

  • HTML Client Entering/Editing Data With Multiple Tables

    Hi guys,
    I've been stumped on what seems to be a relatively simple problem for quite some time now. I have a bunch of Products - Dairy, Meat, Produce and Candy, for example. Each Product has multiple ProductConfigurations - say, Monday, Tuesday, Wednesday, Thursday,
    and Weekend. Each Product also has its own unique set of ProductAttributes; Meat may have Animal, ExpirationDate, CostPerPound, Kosher for example, while Candy may have Type, Manufacturer, Price, Distributor, and Dairy may have Source, ExpirationDate, UnitCost.
    These are just examples, but the point is each Product has unique ProductAttributes. 
    For each ProductConfiguration (which has a Product), I want to be able to go to this ProductConfiguration and see a list of all its ProductAttributes, and provide an option to edit the ProductAttributeValue (a separate table) for each ProductAttribute. A
    ProductAttributeValue has a Value, a ProductAttribute (ie, Manufacturer) and a ProductConfiguration (ie, Tuesday).
    The way I currently have it set up is with a clickable List of all ProductAttributes for a given Product (which I get by querying the filter 'ProductAttribute.ProductID = Screen.ProductID' from the ProductAttributes tables). When you click, it brings up
    an 'AddNewProductAttributeValue' screen, in which the ProductAttribute is already populated. However, this requires a looot of clicks for Product(Configurations) which have many ProductAttributes. I'd love to be able to configure all of the ProductAttributeValues
    for a given ProductConfiguration on one screen.
    Any ideas how I could do this?

    Matt, there are two bits to get the in-built table to play nicely.
    // This makes the input textbox focus work better
    myapp.AddEditProductConfiguration.created = function (screen) {
    var scr = screen;
    scr.ProductAttributeValues.addChangeListener("selectedItem", function (eventArgs) {
    if (scr.ProductAttributeValues.selectedItem != null) {
    var item = scr.ProductAttributeValues.selectedItem;
    setTimeout(function () {
    $("input", item.details.focusElement).focus();
    }, 100);
    myapp.AddEditProductConfiguration.Value_postRender = function (element, contentItem) {
    contentItem.details._details.focusElement = element;
    ... the maintenance screen is based on a standard 'AddEdit<entity>' screen tweaked and in msls-2.5.2.js (or earlier) ...
    case $.mobile.keyCode.TAB:
    //Xpert360: tab
    //updateSelectedHeader(table, table._headerRowElement[0]);
    break;
    ... to stop the keyup handler messing up tabbing between input textboxes.
    Some code similar to this could pre-populate (or verify) that a configuration has rows of ProductAttributeValues matching ProductAttributes ...
    scr.getProductAttributeValues().then(function (values) {
    if (scr.ProductAttributeValues.count <= 0) {
    scr.getProductAttributes().then(function (values) {
    if (scr.ProductAttributes.count > 0) {
    scr.ProductAttributes.data.forEach(function(attr, idx, obj){
    var attrvalue = scr.ProductAttributeValues.addNew();
    attrvalue.ProductAttribute = scr.ProductAttributes.data[idx];
    attrvalue.ProductConfiguration = scr.ProductConfiguration;
    attrvalue.Value = "";
    ... which could be used in a variety of places.
    I will look to uploading the sample application.
    Dave
    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

  • Sharing VISA Resources With Multiple Application Instances

    I have noticed a strange behavior when attempting to communicate with a
    slow, single shared VISA resource (GPIB device) from multiple
    stand-alone LabView 5 applications.
    Initially, I developed some code which first attempts to acquire
    exclusive access to the device using VISA lock with a reasonably large
    timeout. After the lock is acquired, the code performs its IO, then
    releases the lock.
    I then wrote some wrapper code which basically tries to enter the (lock,
    IO, unlock) code as fast as possible. I built a stand-alone application,
    and ran 3 seperate instances. Basically, I could see that each
    instance would eventually acquire a lock, perform its IO, and unlock.
    However, some of the instances "starved" for access to the device,
    enough so that the timeout was sometime reached (each IO would take
    perhaps 2 seconds, and I set the lock timeout to say 10 seconds).
    Ideally, each instance should receive the lock in the order by which the
    lock was requested. It appears that VISA is doing something else.
    I've verified that this issue also exists with "faster" GPIB devices
    (say 200ms IO turnaround), but is less noticable because the
    communications are faster.
    To get around this, I wrote another application which basically acts as
    a resource server. Using VI server, each instance which wants access to
    the resource sends a "lock" request to the server. Specifically, the
    "client" calls a re-entrant "Interface" VI via VI Server. The
    "interface" VI then adds the "lock" request to the queue, and then waits
    for "Notification" from the server process. The server parses the
    request queue, and when the resource is available, it sends a
    notification to the appropriate "interface" VI. This whole time, the
    client is waiting for the interface VI to return, just like when it's
    waiting for a normal lock. When the client is done with the device, it
    sends an "unlock" message to the interface VI. The server then gives
    the resource to the next item in the queue.
    To me, this is a bit kludgey. My solution requires that this "server"
    application is running at all times, and it is a bit slower than the
    usual manner. Has anyone come up with a better solution?
    Thanks,
    Andy

    My answer depends how stand alone your applications are. I don't know what happens if you have several independant executable files but the simplest solution in the development environment is to have one vi that handles all send/receive requests to the instrument. In this way, without extra overhead, you guarantee single parts of each program access too your instrument. (don't make this vi reentrant naturally)
    This approach has another advantage. You separate in a better way the instrument and your aplication, so changing to another instrument is easier to do.
    greetings from the Netherlands

  • One Plug-in Points with multiple status instances

    Hi,
    I deployed the following plug-in point that works as expected:
    <oimplugins>
    <plugins pluginpoint="oracle.iam.request.plugins.StatusChangeEvent">
    <plugin pluginclass="com.zeropiu.custom.oim.pluginpoint.EmailNotificationOnRequestStatusChange" version="1.0" name="SendEmailOnRequest">
    <metadata name="status">
    <value>Operation Initiated</value>
    </metadata>
    </plugin>
    </plugins>
    </oimplugins>Now I would like to "extend" the same Plug-in Point adding more than one status values; is it possible?
    I tried with both syntax:
    <oimplugins>
    <plugins pluginpoint="oracle.iam.request.plugins.StatusChangeEvent">
    <plugin pluginclass="com.zeropiu.custom.oim.pluginpoint.EmailNotificationOnRequestStatusChange" version="1.0" name="SendEmailOnRequest">
    <metadata name="status">
    <value>Operation Initiated</value>
    <value>Request Rejected</value>
    </metadata>
    </plugin>
    </plugins>
    </oimplugins>and
    <oimplugins>
    <plugins pluginpoint="oracle.iam.request.plugins.StatusChangeEvent">
    <plugin pluginclass="com.zeropiu.custom.oim.pluginpoint.EmailNotificationOnRequestStatusChange" version="1.0" name="SendEmailOnOperationInitiated>
    <metadata name="status">
    <value>Operation Initiated</value>
    </metadata>
    </plugin>
    <plugin pluginclass="com.zeropiu.custom.oim.pluginpoint.EmailNotificationOnRequestStatusChange" version="1.0" name="SendEmailOnRequestRejected">
    <metadata name="status">
    <value>Request Rejected</value>
    </metadata>
    </plugin>
    </plugins>
    </oimplugins>
    {code}
    but no one works and I don't get any error message just the Plug-in does not fire any more...
    Thanks,
    Gabriele.
    Edited by: user1175296 on Mar 13, 2013 8:36 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Not sure what is the real issue you are facing. For resolving the concurrentUpdateException in order, ATG is suggesting some steps to follow while updating the order.
    Check the below solution, you need to have a support id to access this article.
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1362812.1
    Regarding your second question, for invalidating the cache for multiple instances, ATG provides different Caching Modes, you may check the documentation.
    http://docs.oracle.com/cd/E23095_01/Platform.93/RepositoryGuide/html/s1003cachingmodes01.html
    Cheers
    R

  • BW Sizing with multiple app. instances on Oracle 10g

    Hello folks,
    I have a few confusions to clarify as i am engaged in BW sizing exercise. Customer has a huge environment with multitera bytes of data and its expected to grow in size and also # of users too and they have multiple BW app instances (NW 7.0) running on Oracle 10g. Its a RESIZING exercise for post go-live in Production solutions and also maybe Delta Sizing for new expected growth.
    I went thru all the docs on SMPsizing but wanted to clarify some stuff from folks who have worked on this kind of environment. I did not find per say  "BW Sizing" document for NW 7.0, all i found was something about BW 3.0 (http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10e7e662-dc1c-2a10-d78c-a187d1a25f80) and also another document ASAP for BW sizing ver 3.1 / 2004. h hints to calculate Disk space, memory and Cpu. Will these assumptions or parameters .
    Questions:
    Do the parameters and assumptions in the above lets say about # of bytes to SAPs would be applicable to the environment i am working on i-e NW7.0?
    For Space sizing to calculate size of InfoCube there is something called 2X disk space requirement of the largest fact table or at least 10GB (PSAPTEMP)....DO I have to add that to every cube for which i am calculating space size?
    In CPU Data Staging part there are assumptions based on BW Benchmark like rec/hour/job= 750000, SAPS/batchjob= 350saps and then Maintenace Window = customer input...is this customer input is the window in HOURS when data load happens?
    Also for same CPU Sizing Data staging #jobs={sum(delta upload)/maintenance window} / 75000....what is this  delta upload consists of?
    SAPS that come out from CPU query and from CPU staging , do i sum them up together and then find out Partner BenchMark# or deal with them seperately?
    I only see SAPS BenchMark available for hardware partners to compare for ONLY 2-tier systems although environemnt i am working on is 3-tier, would it be still valid?
    You help will be appreciated, anyone.
    thanks.
    Manish

    Hi, Venkat, I hope you posted the same question in other Data Warehousing also.
    BW sizing
    We have a tool called Quick Sizer in service.sap.com and if you provide the information to that tool it will give the BW Hardware sizing, you add 20% buffer to the final figure.
    You need to give the following information...
    1. No. of users i.e 3 kinds of users.
    2. No. of Records Per day with Line Items.
    3. Loading Frequency.
    4. No. of InfoCubes/DSO's, Master Data Objects.
    5. Future enhancemts like that.
    It is better you ask Basis people about Quick Sizer and ask the above points to your Business and Functional People.
    Thanks
    Reddy

  • UME ABAP PORTAL WITH MULTIPLE DB INSTANCES

    Hello xperts, there is a subject i would like to expose, we have a portal with UME ABAP, and we are integrating no-sap portals to the sap portal, in order to make single sign on we know is necessary todo a user mapping , using only one sap backend system,and several local portal users (ume java).
    I know it is not possible get back to ume java which is the default installed in a fresh portal installation, but what if we install a new instance with another system id and and using the same database instance? it is possible? (or some thing like that?)
    Thank a lot!!!
    Edited by: NWrscr on Jul 14, 2011 1:17 PM

    Hi,
    Hope you are doing good.
    I am not sure if i have understood the issue correctly, but you can give MCOD a shot.
    [http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/80d0613c-b806-2a10-2891-aae5bbcd1a79]
    This is still supported by SAP.
    Thank you and have a nice day :).
    Kind Regards,
    Hemanth
    SAP AGS

  • Why do I end up with multiple sessions/instances when I just want a new tab to be opened?

    Each time I click on a link in an email or in a browser page I am getting another instance of FF opening instead of opening a new tab in the same-single instance. I can have many, many instances opens all with the a single tab of each clicked through link. It's very confusing to find the pages I want with so many open instances.
    How can I go back to have a click through just opening a new tab?

    hello, this is a google setting that you can change at google.com/preferences.

  • Oracle HTTP server with multiples apex instances

    It is possible to have an Oracle HTTP server installed in a diferente machine,
    and apex Installed on databases there are in diferent machines?
    Or it would be necessary to install one HTTP server for each APEX instance?
    For instance:
    Machine 3
    ___________DATABASE A
    Machine 1 Machine 2 /
    WEB BROWSER -----------> HTTP SERVER /
    \ Machine 4
    \___________DATABASE B

    Yes, you can define multiple DADs - pointing to different machines/APEX instances - in one OHS instance.
    See http://docs.oracle.com/cd/E21764_01/web.1111/e10144/under_mods.htm#i1055269 (for instance, just Google)

Maybe you are looking for

  • How do you get a real manager to review your account?

    I have been with Verizon for 14 years but after my experience on 3/31 & again on 4/1 that  it might as well have been 14 minutes.  I am absolutely mortified by every single agent that I dealt with over the 5 hour period between the two days trying to

  • BAPI_PO

    Hi Gurus, I am woking on an interface where I need to use BAPI for PO creation for multiple line items  and for this I have written the following code: *& Report  Z_TEST1                                                      * REPORT  Z_TEST1  . inter

  • Need an Alert box

    Is it possible to get an alert message whenever closing the file in the Indesign? The problem is, I will forget some checkpoints before sending the files. Making scripts, will need to run, specially, which cannot be in mind in rush times. But if an a

  • Shockingly bad audio on iTunes7 despite fixes

    Hi, I've recently upgraded to iTunes 7 and am having nothin gbut problems. Initially I got the scratchy audio problem which I fixed by downloading an even newer version and lowering the system volume - i had no problem before but it seems in order to

  • CS3 Tutorials and Video Workshops will not load

    I am trying to open the Tutorial links and workshops in LivDocs for CS3 and I recieve the following message for everything. Workshop could not be loaded![FaultEvent fault=[RPC Fault faultString="Error #1085" faultCode="Client.CouldNotDecode" faultDet