Optimal configurations for webobjects using Java Monitor

Can someone please let me know the optimal configurations for webobjects? We need details on the number of instances which can be created per cpu on the application server. Please also provide information on the thread configurations per instance in java monitor.

I do need the threads to communicate. The fact is that I simplified the thing just to understand better responses from you :). The real problem is more complicated. I have a arbitrary number of threads of two different classes. These threads have to access a shared resource (I used the boolean free). Moreover I have to give precedence to one of these two classes. So, I used to integers to represent two queues. The fact is that only the first thread to be ran reaches the end. The others, I saw, reach the wait() method, but then they stops and the program does not finish.
I mean that I thought this: the first thread to reach the wait() passes. Then, this first thread starts to use the resource (free becomes false). Every other thread which reach the while(...) stops there (there is the wait()). Then the first process, at a particular time, release the resource (free = true) and communicate this to another thread which was stuck at the wait() instruction (through the notify()). The problem I see is that every thread reach the wait() and stops there. After the first one is finished, no more... The notify() does not give the monitor to another thread (which would find free = true). This is my problem. Do you understand?
Many thanks for yuor answer anyway.

Similar Messages

  • We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    Anyone any ideas to help please?

  • Managed System configuration for SAP NW Java system in Solution Manager 7.1 SP10

    Hi All,
    I am doing Managed system configuration for my SAP NW 7.01 Java system and getting below error in step 6 create users SAPSUPPORT & SM_COLL_SID.
    "An unexpected error occured. An error occured while processing the UME command READ_USER from agent <hostname> : Server returned: 302 Found "
    I have checked my DAA as well as host agents are up and running fine. My Solution Manager is 7.1SP10.
    Please suggest.
    Regards,
    Manish

    Manish,
    Which UME you are using? portal/ABAP/LDAP
    Are you using the SOLMAN_ADMIN user while configuring.
    Also check the below forum.
    https://scn.sap.com/thread/1167282
    Regards,
    Raja. G

  • SLD Configuration for WEB As JAVA

    SDN TEAM,
    PLease can you send the screen shots for configuring SLD for WEB AS Java
    For valuable answer definity i will reward points
    Regards'
    CHANDU

    Hi,
    Fisrt you have to define a technical system in SLD
    using the URL
    http://<host>:<port>/sld u2192 Link Technical Landscape
    there you have select under landscapes---->technical systems
    select new technical system.
    select the server either (web As ABAP.Web AS java)what ever is ur server select it.
    next u have another screen
    asking SID,Installation no.,Database host name.
    For all the details webas abap.
    you can view after looging in the option in the menu bar system->status.
    next
    Enter the message server host, application server host, the instance number, the
    message server port and all logon groups.
    On the next screen you can add the name of all application server hosts (and their
    instance numbers) belonging to the same SAP system. Press Next.
    Now enter all clients, you want to use with the JCo connections. At least one
    client has to be defined
    Thnaks & Regards,
    Lokesh.
    If you have any doubts.
    please let me know

  • Using java monitor

    Hi. I'm trying to learn how to use and manage the java monitor, but in this case I cannot understand the behaviour. I create some threads instances of a class with this run() method:
    public synchronized void run()
       while (!free) {try {this.wait();} catch (InterruptedException e) {}}
       free = false;
       // Show some text...
       free = true;
       notify();
    ...free is a boolean, and I would like each thread to run in mutual exclusion. free is at the beginning false. The problem is that after the end of the first thread, no other thread is started by notify(). Shouldn't the notify allow some other thread to reconsider the condition (!free)?
    Thanks for any explaination.

    I do need the threads to communicate. The fact is that I simplified the thing just to understand better responses from you :). The real problem is more complicated. I have a arbitrary number of threads of two different classes. These threads have to access a shared resource (I used the boolean free). Moreover I have to give precedence to one of these two classes. So, I used to integers to represent two queues. The fact is that only the first thread to be ran reaches the end. The others, I saw, reach the wait() method, but then they stops and the program does not finish.
    I mean that I thought this: the first thread to reach the wait() passes. Then, this first thread starts to use the resource (free becomes false). Every other thread which reach the while(...) stops there (there is the wait()). Then the first process, at a particular time, release the resource (free = true) and communicate this to another thread which was stuck at the wait() instruction (through the notify()). The problem I see is that every thread reach the wait() and stops there. After the first one is finished, no more... The notify() does not give the monitor to another thread (which would find free = true). This is my problem. Do you understand?
    Many thanks for yuor answer anyway.

  • Optimal configuration for Cisco E3000 Router

    Hi All,
    Following are the details of my current home network setup, I would like to hear more recommendations and drawbacks of this setup.
    ISP has provided with a Cisco  DPC3825 DOCSIS 3.0 Gateway which has 4 Ethernet ports and a wireless networking but only 2.4 GHz.. This router is connected to the cable CPE box to internet. I have enabled the Firewall features of this router and disabled the Wireless network. This has also the DHCP server running. 
    The Second router is a Cisco E3000 which supports 2.4 GHz / GHz wireless networking. Connection to gateway is made via the 1st Ethernet port of gateway and then to the Internet port of E3000 router. I have connected my wireless devices to E3000 with GHz wifi lan. This router also has the firewall activated and DHCP server running as well.
    Both routers have WEP2 Personal / AES security configured. Currently these two devices are on two different IP ranges ..etc gateway is 192.168.0.1 and e3000 is 192.168.1.1.
    The E3000 is primarily configured for my online video for TV (Panasonic Vireacast). Please let me know if this is the best configuration or any other possible options.
    Thanks,
    RG

    This configuration is called LAN to WAN configuration and this is the best configuration considering that you want to behave both the router as a router.
    Because the other confiuration would be LAN to LAN then you can only use 1 router as a router and 2nd router as a switch.
    http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=529c188bc0ee4f7da79ffc22f2be33ec_4579.xml&pid=80&r...
    The first configuration in the article is is LAN to LAN, scroll down the window for LAN to WAN configuration.

  • Configurator for home use?

    I have replaced my wife's and my iPad 1 with the new iPads.  Can I use configurator to setup the old iPads for the Grandkids to use when they visit?
    I would be using mostly free apps for toddlers.  Do I still need codes for these apps?
    Is the configurator overkill for this use?  I was hoping it would help me control the iPads more easily and let me just 'reload' them if the apps get lost etc.

    Absolutly,
         We manage over 6,000 iOS devices for a large school district. Apple Configurator is an easy to use program. It would be very usefull to "supervise" those devices for your grandchildren. You can create configuration files that can prevent them from using the App Store, blocking in-appropriate content, or lock them into an app. I use the App Lock for my 6 month old. I keeps them from accidently clicking the home button and getting out of an app.
    Download Apple Configurator
    On the first screen under profiles click on the plus + and create a new profile.
    Here is a look at a restrictions payload. A profile just a file that contains settings.
    Click Save
    Click Apps and then the + button. Import all of the apps your kids will want to use.
    Plug in one of the old iPads and select to supervise it
    Make sure you put a checkmark next to each app you want to install.
    Supervise it
    After a long weekend of grandkids drawing, and taking pictures, simply plug the iPads back into configurator and refresh. They are back to their original configuration.
    http://www.apple.com/education/resources/videos/#introduction-to-apple-configura tor
    Hope this helps!

  • Does Firefox for Android use Java?

    Does it use Java? If so, how can Java be disabled or uninstalled?

    Oracle doe not make the Java plug-in for Android due to Oracle's lawsuit against Google which of course is the developer of Android.

  • Optimal configuration for inspire 5700

    I juz bought a inspire 5700 and a audigy 2 ZS. Currently i am using the digital connection through the Digital Din input on the decoder from the Digital out of the soundcard. However, when i m playing mp3, only the centre and front speakers are working, the rear speakers are only playing some background music. When i m using the DTT 2200 speakers before this, all my 4 satellites are playing loud and clear. When i try to use analog connection (green and black) on my inspire 5700, no sound is coming out from the speaker. I wonder y. I already disable the digital out from the speaker setting. Is anyone using this speaker and can u advice me on how to configure the speakers and soundcard to achieve good quality sound? Thanx alot.

    otarboy wrote:Ok i have tried setting the CMSS to stereo surround. However, i dun feel much difference from the CMSS2 or CMSS setting. The rear speakers are producing muffled sounds of the songs unlike the front speakers which are very clear in the singing. Also i tried to play mp3 songs using analog connection and the result is almost like digital output. When i was using the DTT 2200, all four speakers sounded equally clear since they are analog output but how come the analog output of Inspire 5700 is so different? I have already turn up the surround volume till 3/4 max and yet i cant feel the surround of music. So if i dun watch dvd on my pc, does that mean the Inspire 5700 is performing worse than my old DTT 2200?
    Hey budd I use my CMSS3D settings too but I leave them set on stero surround and use InterVideo WinDVD6 Platinum Edition ver.B06.083 and don't use Creative Mediasource DVD-Audio Player ver..50.08 cause with that version sounds like there is static on the cd and complicating playback on the cd but thats a bug in creative software but to my knowlage anything in there previous ver. works well off but with InterVideo WinDVD6 PE software of mine they give me settings with it called audio booster pack and I can give my back speakers a Boost of +25 and I can hear well off then with that and does wanders on my DVD'S as well with DVD audio.
    PowerDVD I don't like because of conflicts with creative drivers but I don't care for that cause InterVideo software is much better IMO
    P.S. you don't have to worry about changing the settings in CMSS3D after you set it to stereo surround because DVD software has no affects with that CMSS3D or atleast to my ears they don't but you could have super sonic ears too hehe... but the settings do take affect in reguler Windows Media Player and Creative Mediasource and other media players out there
    Also for your digital audio yes it must be recorded in 3D audio or it will not work right and with analog it would just upmix it unless you want to try on your digital to upmix it by the remote on the speaker settings of yours hardware wise and see if that don't help?
    but also digital helps RIAA out in copyright protection of course there are ways around that too but I am not pramoting anything illegal so I will leave that subject alone for you all thinkers out there
    after listening to the included dvd-audio disk that comes with Creative Soundblaster audigy2 zs gamer LE card through InterVideo WinDVD6 Platinum ED you can tell a kickass diffrence I mean it's the type that gives ya goosebumps cause you love hearing waht you hear coming from your speakers hehe..... at least try the demo and if ya love the demo get with me at [email protected] and I may share ya a full retail version for just being a helpfull person that I am
    Good Luck both ways buddy give it a try you will love it
    Message Edited by RLemmon on 12-30-2004 07:59 AM

  • Dynamic Java bean classes for XSD using JAVA (not any external batch or sh)

    Hi,
    How can we generate dynamic Java bean classes for XSD (dynamically support All XSD at runtime)?
    Note: - Through java code via only needs to generate this process. (Not using any xjc.bat or xjc.sh from JAXB).
    Thanks

    Muthu wrote:
    How can we generate dynamic Java bean classes for XSD (dynamically support All XSD at runtime)?
    Pretty sure you can't. Probably can do a lot of them with years of work.
    And can probably can do a resonable subset suitable for the business at hand with only a moderate effort.
    Note: - Through java code via only needs to generate this process. (Not using any xjc.bat or xjc.sh from JAXB).The Sun jdk, not jre, comes with the java compiler as part of it. You can create in memory class (I believe in memory) based on java code you create.
    I believe BCEL alllows the same thing (in memory) but you start with byte codes.
    You could just create a dynamic meta data solution as well, via maps and generic methods. Not as fast though.

  • Is doing configuration for FB60 using customer field a core mod?

    Hello,
    For our project, a customer field 'ZZAPPROVER' was added in FB60 transaction code.
    It is possible through configuration through the following path:-
    SPRO --> Financial Accounting (New) --> Financial Accounting Global Settings (New) --> Ledgers --> Fields --> Customer Fields --> Edit Coding Block --> Customer-Defined Account Assignments --> Customer Include Structure
    This basically added the customer field 'ZZAPPROVER' to the include structure CI_COBL.
    The important point to note here is that it adds to BSEG table too.
    Now the business is asking whether this is considered as a core modification to SAP.
    Can anyone update where it is a core mod or not, and if there is any documentation to prove this?
    Your comments are highly appreciated!
    Regards,
    Sanjiv Janardhanan

    Hi,
    The adding of additional Customer field is available from ECC 6.0 onwards. This is a standard functionlity to enable the customer to add their own fields for better reporting. But SAP cautions that it is better to take backup before doing this addtioin. No posting transactions shall be performed while you are including the customer field. SAP recommends using the u201Clightu201D mode. For this, you only need to make the following entries so that all necessary changes to the dictionary and to the tables are performed automatically in the background:
    ●      Collection (package)
    ●      Field name
    ●      Field description
    ●      Data type
    Character field (CHAR)
    Character field with digits only (NUMC)
    Trust this helps much!
    Cheers!

  • Optimal Configuration for WebLogic

    I've already installed weblogic but recently appears some problems of connections that I created.
    The problems are:
    1.- My links do not work even when they are created and configured.
    2.- WebLogic gets slow there any optimal settings?
    Thanks
    Edmar

    OK..
    1.- My first problem is when I create a JDBC connections for my applications, connections don't work when you turn off or turn on weblogic the test point is disappear.
    2.- It's ok depend on what I run but some tips to try to configure it?
    Thanks
    Edmar

  • Book recomendations for CORBA using Java?

    I need to use CORBA communications between 3 different tools. Each tool should be written in Java. Each tool reside on different servers. Here is the communication flow of the tools:
    Tool A will pass data to and receive data from Tool B
    Tool B will pass data to and receive data from Tool A
    Tool B will pass data to and receive data from Tool C
    Tool C will pass data to and receive data from Tool B
    I did a search on "Java Corba" at some online book stores and there a many choices. Could someone recommend a book title that would work well here? Thanks.....

    Pure CORBA by Fintan Bolton (ISBN: 0-672-31812-1) is an outstanding reference, albeit very "heavy" as someone else said about another book previously in this thread. The book always gives C++ and Java examples; never one without the other (except for a chapter on memory management, but the topic is applicable only to C++). It can be difficult to use as a tutorial as it is very much written as a reference though.
    I don't have any recommendations for CORBA instruction-oriented books.

  • Search for Pattern using Java

    hello friends,
    I am trying to read a 'C' file and trying to look for all the lines in the 'C' cod, wherever a function call has happened. How could I do that ??
    Thanks
    ashu

    import java.io.*;
    import java.util.Scanner;
    import java.util.regex.Matcher;
    import java.util.regex.*;
    class FileParser{
        Scanner sc;
        FileParser(String fileName)throws FileNotFoundException{
         sc = new Scanner(new File(fileName));
        void getFunctions(){
         //sc.findInLine("([a-zA-Z]+) (\p{Punct})");
         sc.findInLine("");
         MatchResult result = sc.match();
         //for (int i=1; i<=result.groupCount(); i++)
            // System.out.println(result.group(i));//typo in API
         //System.out.println(result.group(1));
         //System.out.println(result.group(2));
        void getLoops(){
         //Search for patterns FOR, WHILE, DO-WHILE
         sc.findInLine("void");
         MatchResult result = sc.match();
         for (int i=0; i<=result.groupCount(); i++)
             System.out.println(result.group(i));
         /*     sc.findInLine("main");
         result = sc.match();
         for (int i=0; i<=result.groupCount(); i++)
             System.out.println(result.group(i));
         sc.findInLine("void");
         result = sc.match();
         for (int i=0; i<=result.groupCount(); i++)
             System.out.println(result.group(i));
        //Search for pattern FOR
        void getForLoops(){
        //Search for pattern WHILE
        void getWhileLoops(){
        //Search for pattern DO-WHILE
        void getDoWhileLoops(){
        //Search for Union
        //Search for Struct
    }I have added/deleted stuff to try all the different combinations. This class basically will have methods to ....
    1) Get a List of Function Calls with Line# in 'C' code
    2) Get a List of Loops with Line# in 'C' code
    import java.io.*;
    class TestScan{
        public static void main(String[] args)throws IOException{
         FileParser fp = new FileParser("main.c");
         //     fp.getFunctions();
         fp.getLoops();
    }Message was edited by:
    ashucool83

  • Setting the Brushed Metal look and feel for macs using Java.

    Hello,
    I am relatively new to Java and I am new to Mac-specific java stuff. Anyways, when I try to set the look and feel of my classes to the "apple.awt.brushMetalLook" look and feel, I am unable to. It works if I have System.setProperty("apple.awt.brushMetalLook", "true"); written before I create any swing component. This would be fine, except that means that it is impossible to extend any swing component, such as JFrame or JApplet. Is there a way around this?
    Thanks!

    This might answer your question:
    http://lists.apple.com/archives/Java-dev/2003/Apr/msg00829.html

Maybe you are looking for