This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!

K.Suresh Kumar

Ranch Hand
+ Follow
since Nov 21, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by K.Suresh Kumar

Thanks Rob Spoor, That regular expression worked well.
6 years ago
Hi,

I am trying to find 16 digit number in given string and mask first & last two position of 16 digit number using regular expression.
My Code:

Regular Expression : ((\\W)+([0-9]{2}))+([0-9]{12})+([0-9]{2})
Mask : $3***********$5
String : jhjhjhj005234567890123456 789 09 232323 34567890123456 2345678901234 5012303420560312 5043309820105604gggb 5043302320543215"

Output
jhjhjhj005234567890123456 789 09 232323 34567890123456 234567890123450***********1250***********04gggb50***********15

Problem : I don't want to mask this 5043309820105604gggb string.

Please help me to find out the correct way.

Thanks,
Suresh Kumar
6 years ago
Hi Tim Holloway,
Thanks for your reply. Please tell me how to pass the password for present LDAP bind and also give me a guidelines about how to do anonymous bind.

Thanks,
Sureshkumar K
8 years ago
Hi,
I am trying to do LDAP Authentication from Tomcat. When I am accessing the web page am getting pop-up for username and password and after given the user credential, tomcat console displaying the error message.
Configuration Details :
server.xml:

web.xml:

Error Details :
SEVERE: Exception performing authentication
javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C09
062B, comment: In order to perform this operation a successful bind must be comp
leted on the connection., data 0, vece ]; remaining name 'TestUser@SoftphoneAD.c
om'

Please tell me where I did the mistakes.

Thanks and Regards,
SureshKumar K
8 years ago
Thanks Joe Ess. First I will analyze my application and the mainframe system after that I have any queries than I will ask. Thanks.

Thanks and Regards,
SureshKumar K
8 years ago
Thanks Joe Ess for your kind information . Yes, My Mainframe system working like a web browser. Now I am look into my application I let you know more details soon. Also I asked second question as "can I use any other technology instead of socket programming." . I mean to say MQ Series or JMS or anything I can use instead of socket programming. If you any have idea on this please tell me.

Thanks,
SureshKumar K
8 years ago
Hi ,
I am using Java Socket programming to communicate with Mainframe system. Just I am connecting the Mainframe system using Socket class in java. After that interacting the Mainframe system with java input and output stream. But I don't know how it is working ? . Can you please explain how it is working , how mainframe system accept my request (input stream) and how it is response (output stream) . Also can I use any other technology instead of socket programming. Please tell me . Thanks..,

Thanks and Regards,
SureshKumar K
8 years ago
Hi Ulf Dittmer,
Thanks for your replay. Please check following link which I have tried earlier for tomcat load balancing
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
In this link they mentioned how to replicate session this what i tried but it didn't work. when I am accessing session variable that shows null value.
Also they mentioned we should enable multicasting. Please tell me how to enable multicasting.

Now I tried

http://tomcat.apache.org/tomcat-6.0-doc/config/cluster.html

but this is also not work. I can not get my existing application session and data values.

Thanks and Regards,
Suresh Kumar K
8 years ago
Hi,
I am trying to create load balancing tomcat with apache server. I have done following things to achieve my goal.
1) I have created primary tomcat and backup tomcat.
2) Both are running simultaneously.
3) If primary is tomcat down then I can able to access my application from the backup tomcat.
4) But the existing application session values and data are not available.

While switching over from primary tomcat to backup tomcat I should maintain the session and data in backup tomcat also.
I tried few ways but that is not useful for me. Please guide me how to do that.

Thanks and Regards,
Suresh Kumar K

[ UD: Removed question unrelated to Tomcat. Please UseOneThreadPerQuestion ]
8 years ago
Hi,
Please let me know what are the file extensions accepted for attachment here.

Thanks and Regards,
Suresh Kumar
9 years ago
William Brogden,
Thanks for your reply,I have taken thread dump but i don't know how to analyze and find the problem .
Please tell me the way....

Thanks and Regards,
Suresh Kumar K
9 years ago
<pre>Hi Friends,
I have developed a web phone using Servlet, Ajax and Jetty 7.0 for Continuation class. The web server is Tomcat.5.5.27.
In the testing phase I logged in 50 users initially i didn't get any issues but after 5 hours my application took 50% of CPU usage.
I tried to figure out the issue but i couldn't.Please help me to come out from this issues.
The main theme of my application is I am sending request to the servlet .In that servlet the request
has been hold for a minute.If any event occurred with in a minute the request will be resumed. This will happen for every user
continuously until he logout.For holding the request I am using Jetty 7.0 Continuation class.


Thanks and Regards,
Suresh Kumar K
</pre>
9 years ago
Hi,
just use session.invalidate() after sign out.
you session will be destroyed and you will get new session when you are
signin.

Regards,
Suresh Kumar.K
9 years ago
Hi ravi kanth,
Thanks for your reply...
Yes possible to change connection time out value in server.xml file.
But this is integer variable it takes 1000 as 1 second. But i want to set 8hrs. So it is not possible .
Please tell me if you have any other idea.......

Thanks,
Suresh Kumar.K
9 years ago
Hi,
I want to run the application continuously 10 hours without users interaction(idle state).

But I got the issue after 30 minutes in idle state.

Is it possible to set maximum connectionTimeout value is 10 hrs or any other way is there to run the application continuously 10 hours.

Please help me to solve this issue.

Thanks,
Suresh Kumar.K
9 years ago