?
Solved

Weblogic Portal Application Thread safety

Posted on 2006-05-30
5
Medium Priority
?
280 Views
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?

thanks,
Anu
0
Comment
Question by:expertsit
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
ECollin earned 1000 total points
ID: 16792255
Hi,

Each user has its own instance of a pageFlow.

ECollin
0
 

Author Comment

by:expertsit
ID: 16792326
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?
0
 
LVL 10

Expert Comment

by:ECollin
ID: 16859800


Yes, its correct.

ECollin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month16 days, 22 hours left to enroll

864 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