Balaji Munuswamy

Ranch Hand
+ Follow
since Apr 07, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Balaji Munuswamy

What container are you using?
It is using Apache as web server and Weblogic 8.1 for application server
Hi,


Is it a standalone or does it have a webserver in front of it?
it is using webserver in front

If the latter, what connector are you using to join the two?
Apache Http server is added as plug-in for weblogic

Are you hitting the JSPs directly or through a controller?
The request is submitted to servelt and the Response is forwarded to JPS using Request Dispatcher.

Are you creating servlet entries for the JSPs?
No. Response is forwarded to JPS using Request Dispatcher.

I think, I answered you question, Please let me know what could cause such problem.

Thank you,
Balaji
19 years ago
What container are you using?
It is using Apache as web server and Weblogic 8.1 for application server
Hi,


Is it a standalone or does it have a webserver in front of it?
it is using webserver in front

If the latter, what connector are you using to join the two?
Apache Http server is added as plug-in for weblogic

Are you hitting the JSPs directly or through a controller?
The request is submitted to servelt and the Response is forwarded to JPS using Request Dispatcher.

Are you creating servlet entries for the JSPs?
No. Response is forwarded to JPS using Request Dispatcher.

I think, I answered you question, Please let me know what could cause such problem.

Thank you,
Balaji
19 years ago
JSP
Hi,

I am facing strange problem in my application. When user login to the application some time browser directly displays the source code. This problem is not consistence.

If the user refreshes the page, he/she will get the proper screen.

Does any one experience such problem before? If so, what is the cause this problem?

Thank you,
Balaji
19 years ago
JSP
Hi,

I am facing strange problem in my application. When user login to the application some time browser directly displays the source code. This problem is not consistence.

If the user refreshes the page, he/she will get the proper screen.

Does any one experience such problem before? If so, what is the cause this problem?

Thank you,
Balaji
19 years ago
Hi,

Please clarify. Is it possible to publish a message to the JMS topic and it should be consumed by all (more then one) Subscribes (all the subscribes are configured in cluster Weblogic for the same application)

Please it is an urgent requirement, I need to publish one message and it should be consumed by all the nodes in the clustered Weblogic server for the same application.

Thanks,
Balaji.M
Hi all,

In my application we are caching java object in a static variable of the singleton class and the application is deployed in Clustered Weblogic 7.0 with 2 nodes.

Whenever there is any change in the java object I need to update the static variable reside in both the node. I am planning to use MDB.

Can anyone advice me, How can I do this? And is there, any other better way to do this?

Thanks,
Balaji.M
Hi,

Thanks for the response. but It is working fine in my local and development weblogic which is not a cluster environment.

Can you tell me, is this problem because of the counter is not declear as static(But the class is singelton class).

Thank you,
Balaji.M
20 years ago
Hi all,

In our application, we are increment the counter when user login and decrementing the same when user logout. This code is deployed in Weblogic 7.0 Clustered environment. While we doing concurrent users testing, even all the users are logged out we notice the counter is carrying more then zero. I need to know how cluster environment manage the �sessionCount� variable. Or if I use the variable as static, can this problem will solve?


Please check the code below and what is the problem in the code?

public class SessionCounter implements HttpSessionBindingListener {
private static SessionCounter me = new SessionCounter();

private int sessionCount = 0;

private SessionCounter() {
this.sessionCount = 0;
}

public void valueBound(HttpSessionBindingEvent e) {
synchronized(this) {
this.sessionCount++;
}
String message = "valudBound: sessionCount = " + sessionCount;
EMotorolaLogger.logDetail(getClass(), "SessionCounter.valueBound", message);
}

public void valueUnbound(HttpSessionBindingEvent e) {
synchronized(this) {
this.sessionCount--;
}
String message = "valudUnbound: sessionCount = " + sessionCount;
EMotorolaLogger.logDetail(getClass(), "SessionCounter.valueUnbound", message);
}

public int getSessionCount() {
return this.sessionCount;
}

public static SessionCounter getInstance() {
return me;
}
}
20 years ago
Yes Prem. Transaction attribute alredy specfied for the bean.

what i need to check in Database?
whatever is the database setting, EJB transation should work, rt?

Thanks,
Balaji.M
Hi,

We are running out of problem, we are using stateless session bean deployed in Weblogic 7.0. It contains a method which will create an entry in LDAP and insert more then 10 records in the DataBase. we configured the transaction time out in the server as 60 sec, but the method is taking more then 2min to completed the execution. Still I am not getting the transaction timeout error.

Can anyone tell me why I am not getting transaction timeout error? How Weblogic will calculate the transaction time?

Thanks in advance,

Balaji.M
Hi,

We are using Weblogic 7.0 and we have clustered servers. When we doing longevity test, I noticed that my EJB method is called twice (log statements are printed twice in 10min gap). Same time the EJB method called first time taking more time to complete the execution. Can you give some tip, why I am getting this problem? I want to know, whether it is related to ������Replication and Failover������in cluster environment.

In weblogic-ejb-jar.xml we mentioned the EJB has

<stateless-clustering>
<stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
</stateless-clustering>

Ejb we are using is a stateless session bean.

Thanks,
Balaji.M
Hi all,

I got an interesting requirement. I need to pass Http session information from one application to other application.

After the user login to the Application �a�, if he want to see his travel details then the user should redirect to other application �b� which is hosted in different environment. Is it possible to pass the users authentication details and Http session details to other application?

As I know it is not possible to send user http session from one application to other. Is there any way to handle this condition?

Thanks,
Balaji.M
20 years ago
JSP
Thank you , It is working fine.

We are using Stateless session bean so I am creating EJBObject and call other methods in process(). It works fine.

(remoteinterface) ctx.getEJBObject();

Thanks,
Balaji.M
Hi Alex,

Your response is very helpful. Thank you very much.

I have few more doubts,

1)Component interface for Stateless bean is remote interface right? So it is not possible to use transaction without exposing the method to client is it?
2)As you mentioned I am using NotSupported attribute for process () and RequiresNew for other two methods. I am using NotSupported for process() because I am doing some query with will take more time so I don�t want to involve that query in transaction. I am getting IllegalStateException when I use ctx.setRollbackonly() in updateUSer. Is there any way to solve this problem?

Thanks,
Balaji.m
I got one doubt in Transaction.

I have one public 'process()' in EJB which is exposed to client. This method in tern will call 'updateUSer()' and 'auditUser()' methods.

My requirement is if the 'updateUSer()' fails, Transaction should rollback only to updateUSer and the other method(auditUser) has to completed the Transaction successfully. I have to use container managed bean and only one method shoud be expose to client.

For this requirement, what transaction attributes has to be set for this requirement?

Thanks in advance.

Balaji.M