Hi,
I am new to WebSphere and am having a heck of a time trying to setup something similar to a WebLogic cluster. I tried to setup a server group but cannot get round-robin nor fail-over to work. In WebLogic, I can be connected to one of the cluster servers and if I shut the server I am on, I...
btw, if you are interested, the answer to your original question is yes. Function pointer functionality can be achived via reflection. Method name or id can be passed to an object and via reflection, an object can instantiate a class and or execute a method. Take a look at the Sun tutorial.
Dix
Hi,
Using the example provide by Microsoft, I created a a databound template control that iterates through a custom collection. When I test this control using an aspx, I can see the the control is iterating. I can see the format I put into the template being generated i times for i equals the...
what kind of problems? Swing will work fine on almost all computers today. It has a pluggable look and feel. It's can multithread using swing workers. It can be converted to an applet easily for web delopyment. Or if you want, a computer with Java Web Start can download the program on the...
You should be able to just add the id attribute back into the applet tag. Just leave all the fluff around before and after the applet tag alone. Add the id attribute back where ever you see a <applet> tag.
Dix
Being lazy, i didn't read all your applet code yet. I did noticed that you are using a straight <applet> tag in IE... which means that you will be running the MS crap vm... download the HtmlConverter from java.sun.com and run your html page code that contains the applet tag on it. It will add...
good point, now that's what a real programmer would do. While we are at it, may I suggest stored proc data access and/or resource bundle storage of sql str.
Dix
hummm... the 50/50 split is just an example. Let's just say you have 200 concurrent connection to your db right now and you have thousands of concurrent users at peak times. I would assume, if it is a data intensive application, that most of the time will be spent waiting for connections...
I am just brain storming out loud here...
I think that you can achieve this my first doing validation, using whatever method you like to use. Then perhaps a session or an entity bean that can check privilege of the user. Based on the privilege, you can instantiate different session or entity...
if you are talking about console app then just use
System.Out
but if you want to do some formating of the text output, it's a little harder to do in Java. I suggest you use a Swing table...
Dix
You are trying to call dll methods from a Java program?
And you are trying to do this by import myDll.dll...
You might want to take a look at JNI, Java Native Interface...
What you are doing is so wrong that... well, not possible.
Check out JNI in java.sun.com
Dix
remember the java package directory structure...
from what i understand you unarg'ed the jar.
make sure the class files are in
/org/gjt/mm/mysql directory
and not
mm.mysql-2.0.11\org
as for ext... i am not sure by default ext is in the classpath
be safe and put the jar somewhere else and...
maybe it would, but from what i have seen and used to date, prepared statements are pretty iffy... it works if it is used perfectly... otherwise it dies pretty badly... it maybe easier to use resource bundler and get your sql pieces and build up the sql str yourself. a better practice yet is to...
you do know that the "?" is required... that's the syntax... check out the doc on java.sql package
the method is implemented to look for '?' char, how can you just change the pre-condition of the method.
Humm...
Sun had been arguing that need for "write once, run anywhere" for years now. And MS lovers had always said that it is a load of cr"p. I guess you just found out first hand that it is not....
Anyway, currently as it stands, there is no way to port to solaris. Even...
Notice how you never imported the Oracle driver. You are trying to use a class that the compiler does not understand - oracle.jdbc.driver.OracleDriver
the correct way to write this section is...
import java.sql.*;
class JdbcCheckup
{
Connection conn;
JdbcCheckup() throws...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.