How to manage concurrency of a class

how to manage concurrency of a class???????????

I think you have to use thread for concurrency>>>>..

Similar Messages

  • How to manage over 200 main classes effectively?

    Where can I found some experience about a big System?
    What's a main class looks alike?
    I got a GUI--subGui--sub-subGUI----...
    and configuration--subconfiguration--subsubconfiguraiton...
    and others.
    How do I connect them together?

    The first thing to do is look at whether or not you actually need the 200+ classes ? Don't worry of the answer is yes. See if you cut down on the number of classes - there may already be standard classes available.
    That should leave you a smaller number of classes. The short answer to your questions is packages. Group the classes into several chunks of logical component or layers. There should be commonalities between the different views and configurations which lend towards a logical partitioning.
    You may want to look at the Struts architecture for guides towards a cohesive web-tier design. Although targeted towards the JSP-Servlet technologies, the Model-View-Controller paradigm applies to the your GUI app.

  • How to assign concurrent program to concurrent manager

    Hi:
    How to assign concurrent program to concurrent manager? or the other way around. It was an interview question. for R12 or 11i
    Thanks

    Srini Chavali wrote:
    All concurrent programs, by default, will be run thru the Standard Manager. If you need to have a specific manager run a program, you need to define specialization rules (in Concurrent > Manager > Define, "Specialization Rules" button) for that manager.
    http://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T174302.htm#fndcpdcq.QUEUE_CONTENT
    And that's exactly what is mentioned in the docs referenced in my previous reply.
    Thanks,
    Hussein

  • How to manage a dynamic table

    Hi, i need some advice on how to manage a requirement i have.
    My application receives an uploaded CSV as input. I can easily model the content in an internal table, but the CSV has an arbitrary number of columns, with arbitrary names of the fields (the first line acts as a header, and contains labels) in no particular order.
    Since I'm really new to Web Dynpro, i'm wondering what's the most manageable way of storing the information in a central way, since the data contained needs to be used in many views, and other data needs to be extrapolated from it.
    Please consider that i'm a neophyte to Web Dynpro, so i'm not looking for the state-of-the-art solution, but the easiest to manage. So far I've thought of 3 ways:
    Dynamically create a node in the controller context, with the corresponding element representing a record and an attribute for each column.
    Create a class which encapsulates the internal table, which will be stored as an attribute. However i'm not sure if i can instantiate this class in the code of one controller, and reference it from anothere (besides, it violates MVC model, not that i really care tbh)
    Use the assistance class and do as in the previous point, since it is automatically instantiated at runtime and can be referenced in every point of the WD component, as far as i know
    Do you have any other advice? Do you recommend one of the above answers as the most manageable? I tried the first but it's so slow to code that i'm exploring the second option.
    Edited by: Giuseppe on Oct 11, 2010 2:23 PM

    Hi,
    I would suggest that you use assistance class, as this would be the most performance effecient way of achieveing the requirement. I would suggest you to define an attribute at class level and use it across views. I would also suggest if you are thinking of defining components for easy maitenance and reusability then go for global class. and then bring the reference of root context of various views to the class level and bind the data to those attributes and contexts.
    Now coming to the display of data :
    Since the number of columns is not known at design time you have to go for dynamic programming,
    But one thing which you could do is limit yourself to manipulate things at runtime. You could define minimum number of columns at design time which you expect from the excel and then take the reference of that table and then add columns accordingly, you also have scope while displaying the data that is how you pass the data from internal table to the context.
    Regards
    Anurag Chopra

  • How do i create a target class to target it to a Rule or monitor

    Hi All,
    How do i create a target class to target it to a Rule or monitor.
    When we create a rule or monitor we target it to a specific class or classes of objects. Like in the example of the below screenshot.
    I want to know how do i create my own custom made target for specific servers and point them to that target so i can select that when i create a rule or monitor.
    Gautam.75801

    Hi Xin
    Guo,
    I had already referred the link. The option (In the Select
    a Management Pack Template pane, select Windows
    Application (Registry) is not at all available on the Authoring TAB in either SCOM 2012 R2 nor 2007 r2.
    Any idea where is it ?
    Gautam.75801

  • How does the Concurrent Access License (CAL) work.

    Description from Google: How does the Concurrent Access License (CAL) work? Xcelsius Engage Server CALs allow for concurrent live data updates inside Xcelsius dashboards. Every time an end-user triggers a Web service inside an Xcelsius dashboard to retrieve live data, a CAL is consumed for a period of 5 minutes. For that period, in a five CAL deployment for example, there will be only four CALs left for consumption. A five CAL deployment could support up to 25 users and additional CALs can be added to support a larger deployment.
    My question is as follows:
    How a five CAL deployment could support up to 25 users and what does it mean. In the first line it is saying that each CAL for a web service is consumed for a period of 5 minutes and how come it can support 25 users concurrently. Did it mean 25 web service connections inside a swf flash file or 25 different users to access a single web service through swf flash.

    The "Set cost controls" concurrent program is used in R12 to mass update the cost control fields on item costs.
    The cost control region is found by going to Cost management >Item costs > Item Costs
    The concurrent program lets you specify which items /costs should be updated by using various parameters such as cost type, item range, category range etc.
    And you can specify the source for the new cost control data and the new value for the fields.
    Hope this answers your question,
    Sandeep Gandhi

  • How to move(migrate) OAF files(class files,PG files) using tool(Kintana)

    Hi,
    How to move(migrate) OAF files(class files,PG files) using tools(Kintana).
    Just want to know process for moving(migrating) OAF Files(class,PG) one instance to over instance(i.e dev to testing) using tools like kintana. We are planning to PVCS as versioning tool.
    Thanks

    New Line Types need to be added to Kintana Workflows and these line types should be able to use the xmlimport/xmlexport scripts.
    We have customized Kintana to migrate forms personalizations using FNDLOAD.
    I think, Change Management team should be able to address this.
    Srini

  • How to link Variant Material with Class n Char ?

    Hi,
    I am new to variant Config.
    I created Char, --> Class n dependencies.
    Created KMAT material.
    But i m confused how to link Materil to the Class or is there anymore i have to do for setting?
    PL. guide.
    thanks,
    Roopan.

    Here are the simple steps to follow to link the material to class. The steps also include set-up for creating material to assignment.
    1. Create Material
    Menu Path: Logistics – Materials Management – Master Data – Material- Create
    <b>Transaction Code: MM01</b>
    [Enter the material type as “Configurable Material”.
    Ensure that check box “Material is configurable” is checked (i.e. MARA-KZKFG has value X) in Basic Data view]
    2. Create Characteristics
    Menu Path: Logistics – Central Functions – Classification – Master Data – Characteristics - Create
    <b>Transaction Code: CT04</b>
    All the required characteristics should be created before proceeding to next step.
    3. Create Class
    Menu Path: Logistics – Central Functions – Classification – Master Data – Class - Create. <b>Transaction Code: CL01</b>
    Enter name of class.
    Enter class type as 300 - Variants.
    Enter description and other relevant details.
    4. ASSIGN CHARACTERISTICS TO CLASS
    Menu Path: Logistics – Central Functions – Classification – Master Data – Class - Change <b>[Transaction Code: CL02]</b>
    <b>Note:</b> Assignment of characteristics to class can be done while creating class also, if all the characteristics are created before creating class.
    Go to Characteristics tab and assign all the characteristics in sequence in which you want them to appear logically.
    5. CREATE CONFIGURATION PROFILE
    Menu Path: Logistics – Central Functions – Variant Configuration – Configuration Profile – Create <b>[Transaction Code: CU41]</b>
    Material to class assignment is created via Configuration Profile.
    Regards,
    Gauravjit.
    Reward points if the solution is helpful

  • Using datasources: How to manage transactions when perform. update/insert?

    I've been trying to find information on how datasources manage transacctions but I've been unable to find much information. I've read that for XA datasources you dont have to commit, save and rollback manually, but how are transactions managed for non-XA datasouces?+ I've only seen examples with select statements, such as in the example on this page [this page|http://developers.sun.com/jscreator/reference/techart/2/jdbc.html], but I've never seen a working example with insert and updates.
    Can anyone point me to some examples?*
    Also, when I use the DriverManager instead of the DataSource for doing updates/inserts I use the setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE) method. Can that be used with datasources?+
    Thank you <img class="emoticon" src="images/emoticons/laugh.gif" border="0" alt="" />

    If you are using a connection pool, how are you guaranteeing that you are using the same connection throughout the same application? Look at the following:
    1) You grab a connection from the pool
    2) You call procedure A
    3) You call procedure B and issue rollback in procedure
    4) You call procedure C
    5) You close your connection
    Are you saying you made changes in procedure A and when you issued a hard rollback in procedure B, the changes in A were not rolled back?
    I'm guessing the problem is that you are not issuing your statements using the same connection.

  • How to manage jms queue?

    How to manage jms queue. I want to do operation on messages on jms queue like deleting the messages and hold the message for some time . Please provide the sample code for that.

    Thanks a lot Tom for the reply, I have read about the descriptor setting 'max-beans-in-free-pool' and I searched this concept at the Administration Console without success.
    I suppose other way is create a “Session Pools” under the JMSServer, and then create a “Consumer” and define the setting “Messages Maximum”. One of the disadvantages is that “Session Pools” don’t support JTA, from the documentation:
    +Session pools enable an application to process messages concurrently. Session pools are now used rarely, as they are not a required part of the J2EE specification, do not support JTA user transactions, and are largely superseded by message-driven beans (MDBs), which are a required part of the J2EE specification.+
    I continue reading the MDB chapter of the performance and tuning guide in the documentation, thanks for any contribution to the topic.
    Lucas.

  • How to manage Struts web application unavailbility ?

    Hello !
    I have a web application (portal) based on Struts framework. And I am wondering how is the best way to manage the portal unavailbility (for maintenance reasons for example) ?
    We can deploy a new web application/page saying that "the portal is unavailable for the moment" but it is a heavy solution and not proper for people that are currently using the portal. So not good.
    Maybe I should check in the init Action of the portal in a database if the portal is available or not... but how to manage people who are currently logged in ? should I check this state in each action of the portal ? it is quite repetitive...
    Do you have any idea ?
    Thanks for advice.

    The simplest, lowest impact, lowest risk solution would be to use a filter:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class AvailabilityFilter
    implements Filter
       // private member variables for connection url/user/pass or JNDI
       // resource name
       // private getters and setters
       public void init( FilterConfig config )
          // Read necessary filter init-params here, like connection parameters
          // or the JNDI resource name of a connection pool used to determine
          // availability.
       public void destroy( )
       public void doFilter( ServletRequest request, ServletResponse response, FilterChain filterChain )
          if( this.isAvailable( ) )
             filterChain.doFilter( request, response );
          else if( response instanceof HttpServletResponse )
             HttpServletResponse httpResponse = (HttpServletResponse)response;
             response.sendError( 503, "Application temporarily unavailable" );
          else
             response.getWriter( ).println( "Application temporarily unavailable" );
             response.getWriter( ).close( );
       private boolean isAvailable( )
          // Attempt to connection to the database and/or check availability status
          // Return true if available, false otherwise
    }Now, as far as managing existing user sessions goes, you can also implement an HttpSessionListener to track sessions:
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class SessionTracker
    implements HttpSessionListener
        private static Map activeSessions = new HashMap( );
        public void sessionCreated( HttpSessionEvent event )
            HttpSession session = event.getSession( );
            synchronized( activeSessions )
               activeSessions.put( session.getId( ), session );
        public void sessionDestroyed( HttpSessionEvent event )
            HttpSession session = event.getSession( );
            synchronized( activeSessions )
               activeSessions.remove( session.getId( ) );
        public static void closeAllSessions( )
            synchronized( activeSessions )
                for( Iterator i = activeSessions.entrySet( ).iterator( ); i.hasNext( ); )
                    Map.Entry entry = (Map.Entry)i.next( );
                    String sessionId = (String)entry.getKey( );
                    HttpSession session = (HttpSession)entry.getValue( );
                    session.invalidate( );
                    i.remove( );
    }Some user event could call a servlet which would set a flag in the DB marking it as down for maintenance and then call the static method SessionTracker.closeAllSessions( ), which effectively logs everyone out. Any attempts to access the app after that period would fail; the filter would try to connect and/or check the flag in the DB and would throw an HTTP 503 instead of executing the rest of the filter chain. No reconfiguration would ever be necessary, and you wouldn't be changing code, just adding these two new classes and a couple of entries in web.xml.
    Hope that helps,
    - Jesse

  • How to Manage the Resource Master in Primavera Enterprise Version

    We are using P6 enterprise version in our company having a central database. We had created our own unique resources and standardised across the enterprise and is Admin protected. However we often have to import some schedules sent by our consultant/client. In those schedules they have their own resources.
    So when we import these schedules, it also imports the resources along with it and pollutes our resource master.
    Can anyone let me know, how to manage such a situation.
    Regards

    We have met this issue. You have few ways to deal with it, but each has its own +ve and -ve.
    1- You may create a separate "Working" db into which you can import those files and keep them there only. Your master db shall be used for maters and your own program only.
    2- You may do the same for checking the resourses, vet them before importing into the final db
    3- P3 and MSP importation allows you to select the node to which the resources will be located. We have created a resource node called "Imported Resources" and dumped all those resources into it. Our users don't have access to that node so those resources can only be used on the imported program and can't be assigned to any other program / activity
    4- Enforce your supply chain to use the same resource list. We managed to do that for our main and subcontractors. That formed part of their contracts.

  • How I Managed to Install Windows 8.1 Pro on an iMac 27-inch, Late 2013

    As is typical with many of my Boot Camp installs, this one did *not* goes as smoothly as planned. This installation was particularly troublesome, so I thought I would share how I managed to set up Boot Camp on a brand new iMac (27-inch, Late 2013) using a Windows 8.1 Pro DVD and an external Apple SuperDrive. These are the steps I took:
    Download Boot Camp Support Software 5.1.5640 (http://support.apple.com/kb/DL1721)
    Copy Boot Camp Support Software to empty MS-DOS (FAT)-formatted USB key
    Run Boot Camp Assistant and select third option only (Install Windows 7 or later version)
    Computer would reboot after Boot Camp Assistant finished but would boot back into Mac environment and not continue Windows installation
    Boot computer holding down option key and select Windows (with DVD icon) and go through initial setup process (could go as  far as trying to format Boot Camp partition as NTFS and then got stuck)
    Quit Windows installer and reboot computer holding down option key and select EFI Boot
    Run Windows installer
    These same steps worked for another iMac (same model) that I set up later the same day.

    Note: These types of discs or activities are not supported by DVD or CD sharing:
    DVD movies.
    Audio CDs.
    Copy protected discs such as game discs.
    Install discs for an operating system such as Microsoft Windows (for use with Boot Camp), or Mac OS X.
    Burn a CD or DVD

  • In R12 how to change concurrent output/log file name prefix?

    how to change concurrent output/log file name prefix?

    but i want to change change concurrent output/log file name prefix?You cannot, and I believe it is not supported for all concurrent requests -- Please log a SR to confirm this with Oracle support.
    Thanks,
    Hussein

  • How to convert the javasource file(*.class) to execute file(*.exe)?

    How to convert the javasource file(*.class) to execute file(*.exe)?
    thank you!

    Although i have seen a few programs (that are platform specific) that will embed a small jvm into an exe with your class file, it is generally excepted that you cannot create an executable file using java. The JAR executable file is probably the closest your going to get
    Pete

Maybe you are looking for

  • Using Multiple Apple TVs to stream iTunes Music

    Hey there All, I'm considering using multiple(at least 2) Apple TVs to stream iTunes content around my home. The layout is ranch style and I'd like to put 1 in my Media room where I have my main HT set-up and another in the dining area. Will I be abl

  • Ssh X11 forwarding takes too long to start any app. remotely

    Hi, I have a bizzare problem with %subject% for some time already. Affected are all my Arch linux installations (all with: systemd, openbox (without Display Manager), and latest updates): 1. home desktop (core 2 duo, 2.4GHz, 3GB RAM). 2. one testing

  • 10.10.2 keeps wanting to install but it won't let me

    Last night when I left the computer, I left 10.10.2 to install. When I returned this morning, the App Store had prevented the logout, because one of the updates got updated again or something (it was only 10.10.2 and Remote Desktop that needed updati

  • How do I change the image selected for the finalized movies pane in all events?

    How do I change the image selected for the finalized movies pane in all events? I made a movie some time ago in iMovie, and a still from this now appears as the image for Finalized Movies in the All Events pane (as well as showing up if I then click

  • No Sales BOM explosion via BAPIs

    Hi all, We use BAPI_INQUIRY_CREATEFROMDATA to create inquiries; however this does not explode sales BOM; rather it creates just one line for the main material. Are there any specific input parameters that need to be modified to trigger BOM explosion