Weblogic Portal Application Thread safety

Posted on 2006-05-30
Last Modified: 2013-12-10
How thread safe are the portal applications. I have a portal application. In one of the actions in the controller.jpf , I make a call to another method getConnection().

In the getConnection method, I take in the parameters username, password,etc and make a connection to another application server (in my case PeopleSoft application server).

Multiple users will be using my application simultaneously. To ensure that I pass in the right username, password to the getConnection() method for any instance, I have synchronized the method. Because of this, when 2 or more users use my application, it has slowed down significantly ( since the method is synchronized and only one instance can access that method at a time). I am afraid if that will cause any dead locks or may turn away the users.

What is the best method to make a weblogic portal application thread safe? Is it a good practice to synchronize a method?

Question by:expertsit
    LVL 10

    Accepted Solution


    Each user has its own instance of a pageFlow.


    Author Comment

    So if I have the getConnection() method as an instance method, I dont need to be worried about mixing it up with somebody else's data. Correct?
    LVL 10

    Expert Comment


    Yes, its correct.


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
    This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now