Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

J Hartley

Ranch Hand
+ Follow
since Mar 29, 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 J Hartley

Hi,
We have mod_jk_1.2.23 on apache 2 load balancing a cluster of 2 Tomcat 5.5.23 instances.

We are load testing with JMeter. After around 9000 requests to our webapp the load balancer slows down significantly and eventually grinds to a complete halt. No more requests will be routed to the tomcat instances. We know mod_jk is the issue, because when it gets into this state we are still able to access pages served by apache without going through the LB. The tomcats are also responisve when accessed directly.

Has anyone experienced this? Or have any idea how we can resolve this?
Thanks
Joe
13 years ago
Hi,
Am I right in thinking that axis, glue and jax-rpc(part of sun web service dev kit?) are just three different SOAP implementaions that are written in Java?
From what I have seen, GLUE is the fastest way for a beginner to get a web service up and running. What are the advantages of the other two?
Cheers,
Joe
16 years ago
yeah thanks for your help all.
a charting paackage in an applet with servlets sounds like an interesting combination.
Joe
18 years ago
Hi all,
I want to be able to produce dynamic graphs in a browser from data held on the server.
I was wondering if anyone could suggest some possible architectures and products( preferably free and open source ).
I could create a servlet myself that gets data via jdbc and outputs a graph as a gif, but I dont want to re-invent the wheel and would like something a bit more advanced/interactive/flashy.
Thanks For Your Help,
Joe
18 years ago
Hi,
I have got a piece of code that runs the NT "dir" command and prints the results.
It works fine when run in a standalone class. When I run it in a Servlet, I get
java.io.IOException: CreateProcess: dir error=2
at java.lang.Win32Process.create(Native Method)
Here is the code...
Runtime r=Runtime.getRuntime();
//Process p=null;
//p=r.exec("dir");
Process p = r.exec("dir");
int i;
InputStream os=p.getInputStream();
while((i=os.read()) != -1)
System.out.println((char)i);
System.out.println("<br><b> Script Process ID :"+p+"</b><br>");

I am running in the Tomcat container. Anyone know how I can resolve this?
Thanks,
Joe
18 years ago
Hi,
I am designing a java web application with the following structure.
-Servlet controller that redirects to appropriate jsp page
-jsp pages that access javabeans created by the servlet
-some of the javanbeans use JDBC
I am unsure as to when to create the javabeans(especially the javabean that accesses the database).
Should the javabeans be created once and shared by all jsp pages(sessions)?, or should each initial call to the controller involve the creation of a new set of javabeans for that particular session?.
Any comments/suggestions would be appreciated.
Cheers,
Joe
18 years ago
Hi, thanks for your help
Joe
18 years ago
Hi, I have got a frame with a number of TextFields and various other visual components.
I set the Cursor for the frame to a waiting symbol. The trouble is that when I move the mouse over each visual component, my waiting cursor is overriden by the Cursor of the visual component.
Is there any way to make the Cursor of the frame override the visual components cursor without having to set each of the visual components cursor to null?
Thanks,
Joe Harvey
18 years ago
Hi, I have got a frame with a number of TextFields and various other visual components.
I set the Cursor for the frame to a waiting symbol. The trouble is that when I move the mouse over each visual component, my waiting cursor is overriden by the Cursor of the visual component.
Is there any way to make the Cursor of the frame override the visual components cursor without having to set each of the visual components cursor to null?
Thanks,
Joe Harvey
18 years ago
Hi,
When the lock() method is called in the server, it passes a string back to the client. The client must show the string to the server when unlocking, this it to prove the client owns the lock.
I have a timertask checking to see if any of my lock objects are older than 10seconds, if they are they are removed.
I had 2 text boxes for the search box, origin and destination.
Hope this helps
Cheers
Joe
Hi thanks,
Niharika:
1. All my Data class methods threw DatabaseException only.
2. No i did not use dynamic downloading. Both server and client jars contained the stubs and skeletons
Deva
I did not modify DatabaseException. All exceptions were handled in the Client class. Yeah I had about 4 Client package files.
I used MVC with the JTable and extended AbstractTable. I also used Adapter pattern, Factory Method patter elsewhere in my project.
Hope This Helps,
Joe
ive been looking foward to this moment for some time!
it really does feel good when you pass, dont give up!.
Score 152
The maximum possible # of points is 155; the minimum to pass is 124. General Considerations(maximum = 58): 58 Documentation(maximum = 20): 20 GUI(maximum = 24): 23 Server(maximum = 53): 51
1.RMI
2.altered lock sig to pass a "client id" back
3.made sure i stuck to javasoft coding conventions
4.design choice document - about 5 pages, well structured
5.locks timed out after 10 seconds (client must have crashed)
6.just let the user type airport code in - no listbox
7.user could change between remote/local db on the fly
8.some basic validation - like no numbers allowed
A big thanks to everyone on Javaranch. see you in the SCEA forum!
Cheers
Joe SCJP SCJD
Hi, what is finalize used for?, when and where should we call it?.
I am currently calling "close" in the Data class when i wish to shutdown(local mode only).
Cheers
Joe
i think thats fair
Cheers
Hi, what happens if you fail your project....do you have to sit the exam again and upload the project again???