Class VIs for access to private Data: reentrant or not?

I just created in a class some VIs for access to private data (my German translation). I'm talking about these VIs, which enable you to connect your class object to a property node to read or write private class data. These VIs are by default non-reentrant. My question is: what happens, if I try to access two objects of the same class with these property nodes? Does the second object have to wait for the first one to be read? If yes, can I circumvent this by making these VIs reentrant?
Regards,
Marc
CLD
Solved!
Go to Solution.

In theory yes. In pratice it will depend on what you are doing in the private method and the methods it calls.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • I have iPhone 4 and I update it to iOS 7 and when I try to start the personal hotspot it crashed and for sometime my cellular data was also not working then allot a sudden the personal hotspot icon disappeared from my settings

    I have iPhone 4 and I update it to iOS 7 and when I try to start the personal hotspot it crashed and for sometime my cellular data was also not working then allot a sudden the personal hotspot icon disappeared from my settings.
    Has anyone faced a problem like this!!!

    No. If you go Settings App > General > Reset > "Erase All Content and Settings", you will have the same iOS that was on the iPhone when you tapped the Erase button. If you believe your iPhone is Jailbroken, then this will not work. If you use iTunes on computer, this will put iPhone to current iOS which is iOS 7.0.2

  • Are there LabView VI's for accessing and writing data to a CDF?

    I am currently trying to develop a data acquisition system using LabView to acquire the data and to write the data to a file in NSSDC's Common Data Format (CDF). The CDF distribution (Windows 2000) comes with a precompiled dll of the CDF library of functions. Unfortunately, LabView crashes when I try to use the Call Library Function node. I am confident that it is not a function prototype error, but it may be that the CDF library is not thread-safe.
    Has anyone developed VIs for writing and accessing data in CDF format?
    Does anyone know how I can determine why the Call Library Function node causes LabView to crash when it uses a particular dll? There are a host of reasons given in the "Using External Co
    de" manual, but no apparant way of determining which one is the culprit.

    Thank you for your response. Actually, I have solved the problem by recompiling the source code for the CDF distribution using the Cygwin development environment. Cygwin provides a unix C compiler and linker which can create Windows executables and dlls. After modifying the makefiles that came with the CDF distribution I was able to build the dll and then use the Call Library Module to access the CDF functions.
    A note about this process: the linker that Cygwin exports both Windows-style and C-style functions when it creates the dll. Be carefull not to use functions that end in underscores from the CDF dll as C-style functions.
    Also, I would like to point out that the current faliure method of the Call Library Module (i.e. crashing LabView) is not acceptable.
    It would be much better if LabView would generate an error message or an error log entry in case of a dll failure. I would hope that this scenario would be a target goal for future development of LabView. The Call Library Module is an incredibly powerful tool in that opens up many avenues of development -- it deserves a better way diagnosing problems.

  • Best Practices for Accessing the Configuration data Modelled as XML File in

    Hi,
    I refer the couple of blof posts/Forum threads on How to model and access the Configuration data as XML inside OSB.
    One of the easiest and way is to
    Re: OSB: What is best practice for reading configuration information
    Another could be
    Uploading XML data as .xq file (Creating .xq file copy paste all the Configuration as XML )
    I need expert answers for following.
    1] I have .xsd file which is representing the Configuration data. Structure of XSD is
    <FrameworkConfig>
    <Config type="common" key="someKey">proprtyvalue</Config>
    <FrameworkConfig>
    2] As my project will move from one env to another the property-value will change according to the Environment...
    For Dev:
    <FrameworkConfig>
    <Config type="common" key="someKey">proprtyvalue_Dev</Config>
    <FrameworkConfig>
    For Stage :
    <FrameworkConfig>
    <Config type="common" key="someKey">proprtyvalue_Stage</Config>
    <FrameworkConfig>
    3] Let say I create the following Folder structure to store the Configuration file specific for dev/stage/prod instance
    OSB Project Folder
    |
    |---Dev
    |
    |--Dev_Config_file.xml
    |
    |---Stage
    |
    |--Stahe_Config_file.xml
    |
    |---Prod
    |
    |-Prod_Config_file.xml
    4] I need a way to load these property file as xml element/variable inside OSb message flow.?? I can't use XPath function fn:doc("URL") coz I don't know exact path of XMl on deployed server.
    5] Also I need to lookup/model the value which will specify the current server type(Dev/Stage/prod) on which OSB MF is running. Let say any construct which will act as a Global configuration and can be acccessible inside the OSb message flow. If I get the vaalue for the Global variable as Dev means I will load the xml config file under the Dev Directory @runtime containing key value pair for Dev environment.
    6] This Re: OSB: What is best practice for reading configuration information
    suggest the designing of the web application which will serve the xml file over the http protocol and getting the contents into variable (which in turn can be used in OSB message flow). Can we address this problem without creating the extra Project and adding the Dependencies? I read configuration file approach too..but the sample configuration file doesn't show entry of .xml file as resources
    Hope I am clear...I really appreciate your comments and suggestion..
    Sushil
    Edited by: Sushil Deshpande on Jan 24, 2011 10:56 AM

    If you can enforce some sort of naming convention for the transport endpoint for this proxy service across the environments, where the environment name is part of the endpoint you may able to retrieve it from $inbound in the message pipeline.
    eg. http://osb_host/service/prod/service1 ==> Prod and http://osb_host/service/prod/service2 ==> stage , then i think $inbound/ctx:transport/ctx:uri can give you /service/prod/service1 or /service/stage/service1 and applying appropriate xpath functions you will be able to extract the environment name.
    Chk this link for details on $inbound/ctx:transport : http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/context.html#wp1080822

  • OpenSource code for accessing Life Science data sources?

    We know that many people use Oracle in Life Sciences. Per IDC, Oracle has a 75-80% market share in "Discovery". Oracle would like to help facilitate the exchange of customer code for accessing LS data e.g from GenBank, SwissProt, etc., but Oracle Legal concerns prevent us from posting customer's code on our web site.
    Does anyone have any LS code that is based on Oracle that they are willing to share with others on say SourceForge.net? Is there any location where people are already posting this type of Oracle-based open source code?

    Please go to SourceForge.net at http://sourceforge.net/projects/oraclelifesci/. Subscribe the mailing list or join the project development. To contribute codes you can chose one of the following:
    1. If you would like to use CVS or you need shared development by others, you can use cvs in sourceForge.net to upload your code.
    2. email your code to [email protected]
    You may also use other facilities that sourceForge has. It only take a couple hours in the beginning to known SourceForge.net.
    We welcome codes in all programming langages (Java, Perl, PL/SQL, C, etc) for life science applications on Oracle Platform. Thank you.
    Joshua Li , San Diego Supercomputer Center/UCSD

  • Connect to MS Access using NetBeans, data source name not found!

    Hi
    NetBeans IDE 7.3 and OS was Windows 7 (64-bit )
    When I run my program by NetBeans, it complain about the following errors.
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    In fact, the MS Access file had exist the specify path, I can run the jar file (not in IDE environment) and connect to MS Access DB successfully.
    And I had search from network, and found it said "the ODBC source was run by different server", one was C:\Windows\SysWOW64\odbcad32.exe for 32-bit and c:\windows\system32\odbcad32.exe for 64-bit.
    So the question is, why IDE cannot connect to MS Access DB, How to set NetBeans IDE to make it connectable to 32 bits or 64 bits ODBC, like the program run without IDE?
    Thanks!

    user13005878 wrote:
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specifiedThat reads like "your datasource configuration is not good, fix it"
    And I had search from network, and found it said "the ODBC source was run by different server", one was C:\Windows\SysWOW64\odbcad32.exe for 32-bit and c:\windows\system32\odbcad32.exe for 64-bit. It would make a whole lot of sense if that was the other way around, don't you think? SysWOW64 for 64 bits and system32 for 32 bits.
    So the question is, why IDE cannot connect to MS Access DBBecause something is wrong
    How to set NetBeans IDE to make it connectable to 32 bits or 64 bits ODBC, like the program run without IDE?By setting the correct connection configuration properties.
    I'm not 100% positive, but I believe that doing ODBC connections from a 64 bits environment is not actually supported in Java. You may be outraged by that - in Java 8 the ODBC-JDBC bridge is going to be completely dropped, no more connecting to Access from Java without third party libraries (which tend to be commercial). In any case for now try to use a 32 bits Java runtime if you're using a 64 bits one.

  • Access Control Mechanism (data level security) not working properly

    Hi Experts,
    I have done datalevel security for groups by help of a database table. This table contains UserId, Dept. code, GroupName column. UserID are verified by LDAP server during logging into Dashboard. I have made two init blocks for GroupName and Dept.Code .
    Query is :
    SELECT 'Group', GroupName from TABLE
    Where
    UserId = ':USER'
    Similiar query is for Dept Code.
    There are two groups ; 1. CC_User 2. Full_User. I have applied filter in PERMISSIONS for CC_User on Fact table on Dept Code. So, user in this group may see data for Dept Code aligned to him in the table. All_User may see whole data for All Dept Codes as NO filter is applied on this group.
    Dept Code , UserId and GroupName are Varchar.
    Now problem is this when a user have membership of one group , it works fine. For CC_user it shows data for its Dept Code and All_user may see whole data.
    But When A user have permission of both the groups , only data related to CC_User group is visible. But, in my view , maximum permmision out of the both groups must be applied to the user if he belongs to more than one group.
    So , here , he must see whole data, as All_user group can see full data.
    Does least restrictive permmission happens in case of membership of more than one group in OBIEE.

    848839 wrote:
    Does least restrictive permmission happens in case of membership of more than one group in OBIEE.Indeed it does. The most restrictive filters get applied if a user belongs to multiple groups that have filters at various levels of data because its always an AND clause in the where condition. This is the sort of behavior in various tools I have seen apart from OBIEE.
    Hope this helps.
    Regards,
    -Amith.

  • Best swing class choices for overlaying instruments/marker data on map?

    Hi everyone. The title pretty much says it all.
    I'm looking for some insight into how to draw things correctly so I don't get glitches. This is a nautical GPS application. Right now I have the following classes:
    MapView extends JPanel
    VectorMap (standalone class)
    InstrumentOverlay extends JPanel
    BoatOverlay JPanel
    GPSGridOverlay (standalone class)
    MapView is simply a place to consolidate the drawing of everything. VectorMap is actually the data storage object for a series of contour lines and geographic points with associated text labels. GPSGridOverlay and InstrumentOverlay are things that will overlay and possibly move around on top of the map. When I drag my InstrumentOverlay around, it smears any other overlayed data (like the BoatOverlay or GPSGridOverlay). It doesn't smear the background map. I can only fix it by manually calling repaint on MapView. I can post a screenshot if that would help.
    My question is, am I doing this in a silly manner? What would be a better choice of Swing classes for this task? Is it alright to use standalone classes as I have done and pass them a Graphics object to paint into, or should they be made into Swing class objects like JPanels?
    the paintComponent method of my MapView object is:
    protected void paintComponent(Graphics g) {
         Graphics2D g2D = (Graphics2D) g;
    // clear screen
         g2D.setColor(new Color(255,255,255));
         g2D.fillRect(0,0,getWidth(),getHeight());
    // manually paint components that aren't JPanels
         vectormap.draw(g2D);
         gpsgridoverlay.draw(g2D);
    // JPanel children (instrument, boat) will paint automatically after this due to
    // paintChildren() call made by swing.
    }

    Here are some screenshots:
    before dragging compass:
    http://www.kulkarnicorp.com/coastnav1.jpg
    after dragging compass to the left in an S pattern:
    http://www.kulkarnicorp.com/coastnav2.jpg

  • Mail for Access Request to O365 SharePoint site not received if a mail-enabled Distribution Lists' email address is provided.

    I have the Access Request feature enabled in my O365 SharePoint site. This functionality is working fine for a single Site Owner's Email-ID and he is receiving the mail in his Outlook with an option to Approve/Deny the request. But when I specify the Email-ID
    of a Distribution List (which consists of all the site owners), the mail is not sent to their respective members although the corresponding request is listed under the Pending Requests in the Access Requests list in Site Settings. Why is this happening and
    if this not possible, kindly suggest a workaround.

    can you specify the DL name instead of the email?
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • Request Scope for portlets? Sharing data tutorial does not work for portlet

    I created 2 identical applications, one that was a regular JSF web app, and one a JSR168 portlet. By following the "Sharing Data Between Two Pages" tutorial, I can get this technique to work without a problem in the web app, but the portlet (deployed locally using the pluto server) does not work. What is the difference between a regular app and a portlet app?
    This shows that portlets apparently handle scope much differently than other applications, so any information relating to this would be helpful to pass along.

    Portlet Life Cycle Differences
    A portlet page is the same as a web application page in the Creator 2 application
    model with differences only in the page life cycle. To best understand the life
    cycle differences, you must first understand how a portal interacts with a portlet.
    This interaction between portals and portlets is defined by the JSR-168 Portlet
    specification. Typically a portal display in the web browser shows multiple
    portlets. That is, when the portal page is displayed, there are actually multiple
    portlets displaying or rendering their content. The job of the portal is to manage
    how these portlets are displayed. Internally, the portal is responsible for telling
    each portlet two things:
    1. When to display itself
    2. If there has been an action, such as a button press, performed inside that
    portlet.
    When a portal wants portlets to display their contents, the portal sends a render
    request to each portlet showing in the portal. If one of the portlets showing in the
    portal has a button tied to an action request, when that button is pushed, the
    portal fires an action request for that portlet. In addition, the portal generates a
    render request for the portlet and all other portlets on the page. You should note
    that the portal implementation fires both action and render requests for each
    action method on a portlet showing in the portal. The implication of this
    interaction means the portlet page being rendered can not make assumptions
    about the state of the values to be shown. Unlike a normal web application page,
    a portlet page can't assume that the page being rendered in the Render Response
    phase is the same page that was built in Restore View. If a portlet wants to
    maintain state across repeated render requests, the portlet must use the session
    bean to store stateful information.
    The main point to remember is a portlet page must always be prepared to render
    it's values from scratch or session data. This implies you should never bind
    portlet page UI components to page bean properties or request bean properties.
    Also, you should never rely on page bean instance variables that might be set
    during an action event.
    Hope this helps.

  • UNION for Columns of CLOB data type does not work

    Hi,
    I have two tables Encounter & Encounter_History. They have same columns. One column is of type CLOB. My requirement is to retrieve all the distinct records from both the tables with order by a date column. But problem is, UNION does not work in case of CLOB data type.
    I know it will work if I use UNION ALL, but it returns duplicate records.
    Please give me suggestion, how to solve this problem.
    For example: The following query does not work since column1 is a CLOB data type
    select column1 from table1
    union
    select column1 from table2
    Thanks

    But for sufficiently small clobs you can try:
    michaels>  SELECT TO_CLOB ('abc') cl
      FROM DUAL
    UNION
    SELECT TO_CLOB ('abc')
      FROM DUAL
    Error at line 1
    ORA-00932: inconsistent datatypes: expected - got CLOB
    michaels>  SELECT TO_CHAR (TO_CLOB ('abc')) cl
      FROM DUAL
    UNION
    SELECT TO_CHAR (TO_CLOB ('abc'))
      FROM DUAL
    CL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
    abc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    1 row selected.

  • Accessing subclass data when parent class is part of private data of another class.

    I am working up an OOP test program and have a problem with data access.
    I have the following classes defined:
    General Test
    General Report
    Specialized Test
    Specialized Report
    The Specialized Test and Specialized Report are subclasses of General Test and General Report, respectively.
    The General Test class contains a General Report class instance as part of it's private data.
    Specialized Test writes a Specialized Report to its parent class data on initialization. The Specialized Report contains additional data items in its private data.
    I have a method for Specialized Test where I first access the Report object stored in the General Test private data, then try to access the private data of the Specialized Report, that should be returned.I get a class mismatch, as the General Test accessor does not know it is returning a Specialized Report.
    Should I simply typecast the returned report to the more specific class before trying to access the subclass data as shown below, even though it will already be the more specific class?
    Thanks,
    Josh

    I don't see your image - maybe it just hasn't finished uploading yet - but if I'm understanding correctly, using To More Specific Class (not Type Cast) is a fine solution here. It's reasonable to use To More Specific Class to get the wire type to match the type of data that you know it will carry when the compiler cannot make that determination for you automatically.

  • Accessing protected and private data of a class

    Hi friends,
    I have writen a sample code in oops abap but iam facing some problem.
    CLASS MAIN DEFINITION.
        public SECTION.
          DATA : VAR1(10) TYPE C VALUE 'NEW VALUE'.
          METHODS : PUBLIC.
      ENDCLASS.
      CLASS MAIN IMPLEMENTATION.
         METHOD : PUBLIC.
           WRITE : /5 VAR1.
              VAR1 = 'CHANGED'.
           WRITE : /5 VAR1.
         ENDMETHOD.
      ENDCLASS.
    START-OF-SELECTION.
        DATA :
               O_MAIN TYPE REF TO MAIN.
               CREATE OBJECT O_MAIN.
               CALL METHOD O_MAIN->PUBLIC.
    now its working fine as public methods can be access by all the people where as protected methods can be access by class and subclass so i can inherit the properties of above class and access the protected data.
    where as to access private data , private data can be access by class itself...
    so now how do i access the private data within the class...ie : how do i get the above output when i use a private section instead of public..
                CLASS MAIN DEFINITION.
        private SECTION.
          DATA : VAR1(10) TYPE C VALUE 'NEW VALUE'.
          METHODS : Private.
      ENDCLASS.
      CLASS MAIN IMPLEMENTATION.
         METHOD : Private.
           WRITE : /5 VAR1.
              VAR1 = 'CHANGED'.
           WRITE : /5 VAR1.
         ENDMETHOD.
      ENDCLASS.
    START-OF-SELECTION.
        DATA :
               O_MAIN TYPE REF TO MAIN.
               CREATE OBJECT O_MAIN.
               CALL METHOD O_MAIN->Private.
    iam getting a error saying you cannot access the private section...
    now private section can be accessed within the class but nt by others...
    to access the private section within the class how should i correct it...
    Regards
    kumar

    HAI,
    Private attributes or methods can be accessed directly by the Object but within the Scope of the Class, but not outside.
    Look at this:
    CLASS MAIN DEFINITION.
    public  SECTION.
    METHODS : Public.
    private SECTION.
    DATA : VAR1(10) TYPE C VALUE 'NEW VALUE'.
    METHODS : Private.
    ENDCLASS. " END of CLASS DEFINITION
    CLASS MAIN IMPLEMENTATION.
    METHOD : Public.
    CALL METHOD Private.
    ENDMETHOD.
    METHOD : Private.
    WRITE : /5 VAR1.
    VAR1 = 'CHANGED'.
    WRITE : /5 VAR1.
    ENDMETHOD.
    ENDCLASS. " END of CLASS IMPLEMENTATION
    START-OF-SELECTION.
    DATA:  O_MAIN TYPE REF TO MAIN.
    CREATE OBJECT O_MAIN.
    CALL METHOD O_MAIN->Public.
    PS: If there is any better alternative solution please share it .
    Best Regards,
    rama

  • LVOOP Parent private data returned when child instance created from constant

    I have created one Parent class, and one Child class.  For each of these classes, I have created a member VI that is a constructor, whose purpose will be to initialize some constants for each class, and return the class instance.  I also have a member accessor VI for each class that returns the private data of the class (in this case a single string for each class).
    The Parent class's private data "String" is set to"Parent text" as the default value.
    The Child class's private data "Child String" is set to"Child Text" as the default value.
    The Parent class constructor works just fine.  For testing purposes, I return the text from directly unbundling in the constructor VI, and as returned from the accessor VI. The Parent constructor starts from a class constant.
    However, in the case of the Child class constructor, if I start from a class constant, directly unbundling the private data (using an Unbundle By Name function, and choosing "Child String" as the element), I get the Parent's private data!
    If I use the Child class's member VI to retrieve the text, I get the Child's private data.
    If I change the constructor to start from a class Control instead of a class Constant, I get the Child's private data.
    This only occurs  before the Child class has existed as a
    Control/Indicator. i.e. If I unbundle the private data after the class 
    is returned by any member VI, I get the correct Child private data.  So obviously something changes once the class "data" has been a control at some point.
    I am using Labview 8.6.1, Windows XP
    I have attached a small project that illustrates the problem I am encountering, without actually doing any initialization, just reading.
    Is this the intended behaviour?  Why does it matter if I start with a class constant instead of a class control?  When you drag from the Project window to the Block diagram, you always get a constant.
    Solved!
    Go to Solution.
    Attachments:
    ParentChildClass.zip ‏54 KB

    Although I was able to replicate your issue in LabVIEW 8.6.1, it appeared to run correctly in 2009.  I could not find a CAR ID but at this point can only assume that the behavior was not intended but is fixed in 2009.
    Let me know if you need me to find any further details.
    Alex Person
    NI-RIO Product Support Engineer
    National Instruments

  • How to access two oracle data base with out DB link

    Hi,
    I have two data base schema
    one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
    As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.
    Thanks,

    malarkandy wrote:
    I have two data base schema
    one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
    As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.Yes. But that needs another network and application interface instead of a database link.
    The target database can implement PL/SQL web services. These can be called via HTTP.
    The local database can use UTL_HTTP to make a call to the target database's web service for accessing target database data.
    Both databases can use AQ (Advance Queues). This can be integrated with an application server's JMS queues.
    This enable one database to enqueue a request to the other database, and for that database to respond by sending data.
    There are numerous such type of interfaces that can be used. Some primitive. Some advanced. Some simple. Some complex.
    The easiest and most flexible mechanism is however a database link. And it does not make sense to disallow database links for security and management reasons, but allow JMS for example. The network infrastructure is the same for both methods. The network protocol is the same. The security issues and concerns are the same - except that JMS for example is significantly more moving parts and make configuration and security a lot more complex than using a database link.

Maybe you are looking for

  • ColdFusion & Java 1.5 incompatability

    Anyone have any idea if Adobe has plans in the works to get ColdFusion compatable with Java 1.5 anytime soon? I found out recently that apparently that is why I couldn't get ColdFusion 7 running on Oracle 10g using Java 1.5. I would imagine this shou

  • Process Flow Diagram

    Can someone provide me with a process flow diagram and the step for creation of returnable packaging ? Thanks Logi

  • MS Office Access 2010 - Copy to Oracle?

    Hi, Does the "Copy to Oracle" functionality in SQL*Dev 4 work for an Access 2010 database source? Thanks Joel

  • Cannot connect to wrt150N - no files to download for Firmware?

    I have a wrt150N that I am trying to determine whether it's dead or not.  I cannot connect to it directly, even if I plug my laptop directly into the Router.  Pressing the Reset button does nothing, the lights don't even flash? If I change my Etherne

  • ZAV, Oracle client and applications

    Hi, I have a old client/server software that need a Oracle 9.2 client. As a test I have created a new snapshot, installed and configured Oracle client and the actual application on Windows XP, second snapshot, did a few changes and built the project.