Sajee Joseph

Ranch Hand
+ Follow
since Jan 17, 2001
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sajee Joseph

Hii,

I am not sure if an Indian Edition is available.
But i know for sure that a PDF printable version is available on the net
Hello all,

Both ServletConfig & ServletContext have the following methods:
1. getInitParameter()
2. getInitParameterNames()

Is there a difference between these?
Regards,
Saj
12 years ago
Private methods cannot be called by client directly. But they can be called indirectly.. i.e a public method calling the private method.
However still by original questions goes unanswered
Hello,

I hear that private methods in EJBs cannot have transaction attributes.
Can someone spellout the reason why?

Regards,
Saj
Hello all,

What is the difference between NoClassDefFoundError and ClassNotFoundException. I know one is an Error and other is an exception. Can someone explain in terms of an example?

Regards,
Saj
12 years ago
Hello all,

I have a situation in which i need to redirect a request from a server to another server. Like i have a link 'Application2' which takes the user on one application to 'Application2'. How can do that in the following cases:

1. When the Source is an HTTP server and destination is an HTTP server too
2. When the Source is an HTTP server and destination is an HTTPS server
3. When the Source is an HTTPS server and destination is an HTTP server
4. When the Source is an HTTPS server and destination is an HTTPS server too

What are the configurations to be done in each of the cases? If the configuration is specific to the app server, then please explain in terms of Tomcat servlet engine

Regard,
sajee
12 years ago
Hello all,

Suppose i have a table "Employee".
I insert Employee1 into Employee table.
Then I insert Employee2 into Employee table.
Now if i do "Select * from Employee", will i always get Employee1 followed by Employee2. In other words will the order be always Employee1 and then Employee2. Is there any change that i may get Employee2 and then Employee1?

Regards,
Saj
Hello all,

I have used Maverick SFTP to establish an SFTP connection to a server and it works fine as a java standalone application. But when i put the same code on my servlet, deployed on Tomcat 4.1.29 & try the SFTP connection, it says Connection timed out. What is the reason? How do i resolve this?

Regards,
Saj
13 years ago
Hello all,

I have used Maverick SFTP to establish an SFTP connection to a server and it works fine as a java standalone application. But when i put the same code on my servlet, deployed on Tomcat 4.1.29 & try the SFTP connection, it says Connection timed out. What is the reason? How do i resolve this?

Regards,
Saj
Hello all,

How can i ensure that the Connections(Database connection) returned to me are not from the Connection Pool. I want fresh new connection each time. I am using Tomcat 5.0 server.

Regards,
sajee
13 years ago
Hello,

I invoke a servlet which inturn invokes a few DB2 sps to get the job done.
Each of the DB2 sps takes approximately 20 mins to complete ( There is some complex logic in each). In the midst of this processing is there any possibility of session expiring? I mean, assume that my session time out is 30 mins. And if my servlet takes 45 mins to execute, will my session time out in the middle of processing? If yes, then how do i prevent this from hapanning?

regards,
Saj
13 years ago
Hello all,

I am using com.glub.secureftp.bean for FTP.
Intially i did it using a Userid, Password, port, location.
This was working fine.
Now i have to do it using a Private Key given to me in a .ppk file.
How do i go about this?
Please provide sample code

Regards,
Saj
13 years ago
Hello all,

I am using com.glub.secureftp.bean for FTP.
Intially i did it using a Userid, Password, port, location.
This was working fine.
Now i have to do it using a Private Key given to me in a .ppk file.
How do i go about this?
Please provide sample code

Regards,
Saj
Hello,

Suppose i have 3 threads t1, t2, t3.
To get a multithreaded behavioyur can i just invoke the start() methods on each of the threads one after the other ( assuming i have written code in the run method to do the necessary task).
Or do i have to esnuer that each thread sleeps for a while so that other threads will take control and not get starved.
In other words is it essentila that each thread sleep for a while to geta multithreaded behaviour?

Regards,
Saj
Hello all,

I have a jsp ( A.jsp). On click of a button 'Save' i invoke a servlet (ServletA) to get some operation done. after the operation is done i invoke 'B.jsp' using response.sendRedirect("/gem/B.jsp");
This works fine.
Actually the operation done ServletA is very time consuming. Thus as long as the user doesnt close 'A.jsp' browser window while the ServletA is executing, it work fine.
But if the user close the 'A.jsp' window, everything works fine except that the 'B.jsp' is not shown ie. response.sendRedirect("/gem/B.jsp") doent work anymore. How do i ensure that 'B.jsp' is shown even if 'A.jsp' browser window is closed.

Regard's
Saj
13 years ago