Q. Globally accessing information

Besides using STATIC to be able to access variables and functions throughout an application that have multiple classes and threads, is there another method that could be used to handle this.
Maybe something involving threads?
Any help would be appreciated.

I don't think threads are where you want to go. If what you want is to have all the parts of your program have access to the same instance of a single class then you could write the class as a "singleton" design pattern.
Is that what you need?
public SingletonClass {
   private static SingletonClass theOnlyOne = null;
   // this is private so you can't create one of these
   private SingletonClass (){
      // initialization goes here
   // use this method to get the one and only instance of this class
   public static SingletonClass getInstance() {
      if (theOnlyOne == null) {
         theOnlyOne = new SingletonClass ();
       return theOnlyOne;
}The code above will one create one instance of "SingletonClass" the first time you call SingletonClass.getInstance(). From then on every other call to SingletonClass.getInstance() will give you the same instance.

Similar Messages

  • How do you use Default Resource Access Information?

    I have some 10g Forms & Reports that I want to use with SSO and they will all be connecting to the database with the same connection info. I know how to configure a Default Resource Access Information, but how do you use this with Forms & Reports?

    Douglas,
    the default Resource Access Infomation should be the connection information right? This is used in conjunction with SSO. You need to configure your F&R applications to delegate authentication to SSO by placing ssoMode=true in the config section of formsweb.cfg.
    The Forms Servlet will connect to OID retrieve the Resource Access Information (descriptor) for a given user and automatically log them into the application.
    Users will need a global identity in OID and SSO must be enabled to use resource access info with F&R
    regards,
    tt

  • How to automate iPPE Access Information filling in ie02

    Hello users,
    I am trying to automate the equipment creation using BAPI and BDC. I am able to create equipment using BAPI and BDC recordings for all the tabs in ie02 but not able to reacord the iPPE Access Information, where in there comes a popup Selection of iPPE Access which am not able to record in a BDC. Is there a better way to fill in the iPPE access information.

    Hi Zabeen
    This can be possible that you have made some changes to the recording code so transfer the recording to the program and execute it in foreground with any changes to that code, hope you will get the pop up window.
    If that pop up is related to any message like warning or success then the BDC program will not take that into consideration.
    Also use this option in SHDB.
    option : simulate background mode.
    while recording though BDC use the following option as ticked.
    Default Size = X
    Cont. after Commit = X
    Not a Batch Input session = X
    or try to change the equipment using BAPI_EQUI_CHANGE .There is a structure called DATA_SPECIFIC which is specific for Equipment related data.
    For classification related changes, look at the FM's available in transaction BAPI
    Cross Application Components -> Classification
    Cheers
    NZAB

  • How to re-configure the actual Hotspot configuration/access information?

    Hi,
    how c/an I re-configure the acual HOTSPOT configuration/access information? [MBP Retina - late 2012  |  OSx 10.8.2]
    THX in advance,
    NNIE

    As you are using verzion DSL connection ….Try this setting on router:
    1) Open router set up page using http://192.168.1.1 …..You will see username & password …leave username blank & in password use admin.
    2) Under set up look for “mac address clone” sub-tab….. Enable the service & click clone ….click save settings.
    3) Click on “status” tab….. if it shows any valid public Ip address try going online…..if it shows Internet Ip as 192.168.1.X. with gateway 192.168.1.1…then
                      a)  Click set up again ….change the Local Ip address from 192.168.1.1 to 192.168.2.1….click save settings.
     b)  Power down the router then the modem for few seconds …..Power on the modem first …then the router & see you are online or not.
    4)  If the internet Ip address is 0.0.0.0…click on set up again …change internet connection type to PPPOE…use your DSL username & password …click save settings.
    5)  Click status & click connect…if shows connected try going online….if not let mw know the error message you are getting on the status screen.
    Follow above steps & let me know if it helps or not.

  • Unable to review the resource access information

    Hi,
    I am new to portal. I am runing Oracle Portal Version: 10.1.2.3.0 (Build: 263).
    I am able to review or edit my resource access information. However, I only see the blank information when I try to modify the other users. Could somebody let me know what privileges I miss? How do I assign the privileges to my portal group?
    Thanks for your help,
    Kam

    Hi AMN,
    Logn on as the portal user, I can see the information. Then I grant all the privileges to that particular user (User B). I still do not see the resource information after log as User B.
    I have another user account (User A) that belongs to another admin group. If I log on as User A, I can see the resource information. Then I assign this admin group to User B. Log on as User B, I can see the resource information without any problem. I do not find any privileges differences between User B and the admin group.
    I can find the basic information related to the particular admin group, user A and user B information in oiddas.
    Could you show me what information I should look for? What priivileges I need to set in OIDDAS or in portal?
    Thanks your help,
    Kam

  • HT1452 I have a Toshiba Canvio 1TB external hard drive on my Mac. I've used it for 4-5 months with no problems, but now cannot add to it (I use it mostly for photo storage) to it. I can still access information previously added. Ideas?

    I have a Toshiba Canvio 1TB external hard drive on my Mac. I've used it for 4-5 months with no problems, but now cannot add to it (I use it mostly for photo storage) to it. I can still access information previously added. Ideas?

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • I am unable to access information from the internet as I am unable to install the lastest adobe flash player that is now required.  Can you please help?

    I am unable to access information from the internet as I am unable to install the lastest adobe flash player that is now required.  Can you please help?

    I fould a hack that makes the sites think you have the latest (Intel) version of Flash installed. So I installed it & it works with Firefox, TenFourFox & Safari. Here's the info.
    Download this http://www.steelbin.com/FPforFBPPC.zip to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.
     Cheers, Tom

  • Remove 'Access Information OnDemand Services' Button from toolbar

    How can I remove the 'Access Information OnDemand Services' Button from the toolbar? I just upgraded BO XI R2 with SP4. I have to remove this button since we are hosting BusinessObjects on servers with multiple clients. They do not need, nor care about this (it will actually confuse them)...

    Hello,
    This requires modifying JSP files. Please backup all files before mofying them.
    Also, to the best of my knowledge this is supported. That said, this does not mean that the modifications will stick through updates/patches. Could someone from BO confirm?
    This is how we did it (Java Infoview).
    Go to
    C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\Infoview\main\
    Open headerPlus.jsp, and comment out the following section:
    <c_rt:if test="<%= isOnDemandInstalled %>">
    <fmt:message var="ttOnDemandHome" key='main.home.link.ondemand'/>
    toolbarCtrl.add (newIconWidget("btnOndemand",
    "<%= context + schema.getUrl(application, "img.toolbar.ondemand") %>", onBtnOnDemandClick,null,
    '<%= Encoder.encodeJS((String)pageContext.findAttribute("ttOnDemandHome")) %>', 16,16,3,3,25,3));
    </c_rt:if>
    There is an alternate way to do the same in the following SAP Note (I have not tested this)
    1206230 - How to hide the OnDemand icon in infoview on Tomcat

  • How can I find out "Global Access Protocol Pass phrase" for OAM server ?

    I'm configuraing Access gate using configureAccessGate command to integrate OIF with OAM.
    The OAM is working in "simple" transport mode. since it was not me installed OAM, I do not know what "Global Access Protocol Pass phrase" is.
    I need this to answer question to configure access gate. How can I find out the "Global Access Protocol Pass phrase" set for OAM server?
    Thanks

    Hi ITBobbyP,
    SSIS has a built in FTP task, while this only works for the FTP protocol, it doesn’t support SFTP. But there are some free clients like WinSCP and
    SSIS SFTP Task Control Flow Component
    available in the CodePlex which can invoked from SSIS.
    References:
    SSIS SFTP Task Control Flow Component approach
    WinSCP approach
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Will adding global access change my domestic plan?

    Will adding global access to my phone now change my domestic calling plan and if so should I wait until I'm out of the country to change it?

        twodogsfourfish
    I completely understand how important it is to be clear about any changes to your plan and coverage before completing changes! I can definitely go over the details with you. With being on the Nationwide plan currently, what global access were you looking to add to your plan? If the $25/100MB data plan for global data access, this will only add the $25 charge itself. If the $4.99 Voice Value plan to lower per minute rates outside the country, again it will only add the $4.99 charge itself and will not change your domestic plan. Were you looking to move to a More Everything Canada/Mexico plan instead? This would change your calling plan depending on when it was made effective.
    As with any international trip, I definitely recommend reviewing our trip planner to make sure you're clear on all rates and dialing instructions before you go! The $25 and $4.99 features are not compatible in all countries. http://vz.to/1fb1kE8
    RuthW_VZW
    Follow us on twitter @VZWSupport

  • Airport disk global access

    does any one know how to setup airport disk for global access, and how can it be accessed using finder globally, meaning outside of LAN.

    bigraytk, Welcome to the discussion area!
    Copied from Pages 58-9 of "Designing AirPort Networks Using AirPort Utility" (direct PDF download).
    Plug the hard disk into the USB port on the back of the base station.
    Open AirPort Utility, located in the Utilities folder in the Applications folder on a Mac, or in Start > All Programs > AirPort on a Windows computer.
    Select your base station, and then choose Manual Setup from the Base Station menu, or double-click the base station to open its configuration in a separate window. Enter the base station password if necessary.
    Click the Disks button, and then click File Sharing.
    Choose “With a disk password,” or “With base station password” if you want to secure the shared disk with a password, or choose “With accounts” if you want to secure the disk using accounts.
    If you choose to use accounts, click Configure Accounts, click the Add button, and then enter a name and password for each user that will access the disk.
    Choose “Not allowed,” “Read only,” or “Read and write” to assign guest access to the disk.
    *Select the “Share disks over Ethernet WAN port” checkbox if you want to provide remote access to the disk over the WAN port.*

  • HT201210 What do I do for comment -  "you do not have enough access information to start an iPad update"

    What do I do for comment -  "you do not have enough access information to start an iPad update"

    I have my iPad with OS 4.2 on it, attached to my macbook pro with itunes 10.6.3.  yes I have admin pswd for mbp.  when trying to download, the prompter does not ask for admin pswd.  I just get the statement above "not enough access information"??

  • Direction for a developer trying to access information from Netweaver logs

    I’ve been charged with developing an interface for our company’s software into the Java based Netweaver portion of SAP with no prior knowledge of any of it other than a background in Java programming. To my dismay, the shear amount of information available has made what I need like looking for a piece of hay in a stack of needles. So hopefully I've posted this question in the proper forum and someone will be able to point me in the right direction.
    The Java program I'm supposed to create simply has to access a (User Exit?) log file and pull out basic tidbits like: Requestor, Replier, Response Time, CPU Time, etc, and then I will later write it out to a simple csv file that our application can process. So the basic questions I have at this point is this:
    Do I have to develope this in Netweaver developer studio (I have it installed alongside a netweaver full sneak preview edition) or can I just crank out a Java app in good ole eclipse?
    In the program, will I be making some kind of call to establish a connection with an SAP system, or can I just sit the program on a  main SAP machine and have access to the information I need through other method calls?
    What calls, or where do I look to find what specific calls, I need to make to get info like (Requestor, Replier, Response Time, CPU Time, Request/Reply Size, etc)? Basically, what API's will I be using to get information out of Netweaver log files and where can I find documentation on them?
    Any direction will be appreciated even if just to the proper place for a forum post of this nature or documentation that will send me down the right path.
    AtDhVaAnNkCsE
    Chris

    Hi Chris,
    Let me try to understand your requirement.
    I believe you are trying to get the 'statistics' information like Response time, CPU time etc. for SAP (ABAP) Transactions, right?
    If so, you should be looking at the 'Workload Analysis' and STAT records in the ABAP system.  Go to transaction 'ST03N' and try to understand what kind of information is available for you related to workload analysis (for earlier releases, use transaction 'ST03'.  For Global central analysis use transaction 'ST03G').
    To know more about STAT records in CCMS, here the help page:
    http://help.sap.com/saphelp_nw04s/helpdata/en/c7/69bcc3f36611d3a6510000e835363f/frameset.htm
    To know more about System log details, visit this help url:
    http://help.sap.com/saphelp_nw04s/helpdata/en/1f/8311784bc511d189750000e8322d00/frameset.htm
    The best way to create reports for Statistical records is using CPH (Central performance History) and through BI.  What it means is, you don't have to create any JCO programs.  But you will have to configure CPH/CCMS and the BI connectivity details. Once you do that you will be able to make use of the BI reports available as part of the 'BI business package for CCMS'.  To know more about it, please visit SMP link: http://service.sap.com/monitoring (requires login).
    Hope it is helpful.
    Thanks,
    Venky Varadadesigan
    Product Manager
    SAP NetWeaver
    SAP Labs
    10111 Richmond Ave, Suite 600
    Houston, Texas 77042, USA
    M  +1/832-287-2135
    mailto:[email protected]
    http://www.sap.com

  • Searching and Accessing Information of Files

    I have Windows XP and I use NetBeans. I was wondering how I can access the information of a file.
    I need my program to search for a file in my computer for a file that was Last Modified in a certain date... So... is there a way to access this feature of the file?
    Basically:
    1 How do I search files in my computer.
    2 How do I access the information about the file (ie, date created, date modified, date accessed, read-only, description, etc)
    Thanks,
    Nitau

    This tutorial will provide most of what you want:
    http://java.sun.com/docs/books/tutorial/essential/io/index.html
    Then study the API documentation for the methods the File class makes available. This class allows you to access the most common directory and file information.

  • Global Access

    I'm trying to create a web-based app that can interact with Exchange server globally. Meaning, I need it to have the ability to view, change, delete, and create all e-mails, calendars, appointments, tasks, notes, etc... across the domain. I am using .Net,
    and have been looking into sinks, but wasn't sure if this was the best route to go. Will sinks give me the full functionality I need (It appears to only work with e-mails, though I haven't fully begin coding it yet as I'm waiting on the server to arrive)?
    Or does anyone have any better suggestions / ideas? Thanks in advance!
    Andrew Whittington
    Let me elaborate a little further, I think I gave the wrong impression. These solutions allow for a client to access their e-mail, calendar, etc... via the webmail.
    I need the web-app to be able to access everyone's e-mails, calenders, etc... Not for each individual client to access their own. The final solution will provide a way to track a team within a company.

    Exchange does already have a webmail interface it is known as Outlook Web Access.
    Another option is to use simple SMTP located in the System.Web.Mail namespace within the .net framework.
    System.Web.Mail Namespace
    If you are after a specific API then hopefully you are using Exchange 2007, if you are look at the
    Exchange Development on Microsofts MSDN Site
    Also check out this book, it may have some very useful info in it
    Exchange Web Services

Maybe you are looking for