10 March 2004 - java_dev (original) (raw)

Java developers

March 10th, 2004

| | 10:52 am - mostdangerous - MySQL/Tomcat/JSP question Hi! I'm currently running my Apache, MySQL, Tomcat servers on one machine. I have these JSPs that calls these database beans to connect to the MySQL server and execute queries on the mysql server. My question is this:If I am on a machine with IP address A and I'm trying to access a JSP on the server with IP address B, from which IP address would the mysql server get the request? Would it get it from 'A' since it is the machine accessing the JSP? or would it get it from 'B' since it is where the Tomcat container is?My problem is that I'm running into this bug in Redhat 9 where any machine that accesses the mysql server that is not defined in the /etc/hosts file will crash and restart the mysql server. I placed the local IP address of the server(localhost,127.0.0.1, and as well as it's real IP address) in the /etc/hosts file and that seems to work well as a workaround. The whole application works locally and as well as from another machine that is in the /etc/hosts file.I figure that if I list the Tomcat container as the machine that accesses the mysql server, the mysql restart problem will not exist since the Tomcat container is in the /etc/hosts file. Apparently, something else is amiss and therefore I'm asking these questions.Thanks for any help offered! | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

01:56 pm - steprous - jbx anyone know what a .jbx file is in jbuilder? some of my classes have jbx files created along with them and jbx files aren't associated with any program
02:22 pm - beyondgone Hi everyone-I'm trying to write some script in JSP that will go through directories and produce a list of all the files/directories and the last time they were modified (basically some content management stuff), but I can't seem to find any methods that do this. The script would take in a directory either local to the server (like /web/graphics/home/) or with a drive letter (like g:/www/web/graphics/home/)Can anyone point me in the right direction?
07:25 pm - clemenceau - Java. Joke? First, I've taken a semester of C++ programming before.In my university computer science class (101), they teach Java.Now, since all the Java applications I've used have been slow and buggy (i.e. LimeWire, to name one, but also Java applets), I'm biased against Java programming. However, I was willing to give it a try and learn something.When it comes to programming, I'm pretty proficient, but when we were assigned to develop a cash register program for class, the floating-point inaccuracies of Java got so ridiculous that, with all double identifiers, 1.00 - 0.99 = 0.00.Considering that such a function is a simple subtraction problem and that Java's execution of that problem is flawed, I'd seriously like to know why Java even exists. Basically what I'm saying is that since Java can't even subtract correctly, why should anyone take it seriously?