hi,
I have a java program that uses oracle thin driver to connect to Oracle 9i db on unix box. If there is only 2000 records to process, the program works like a charm. However, when I tried to process 30000, after 5 minutes or so, I get a sqlexception:network adapter cannot establish connection...
does anyone know how to do this? I have about 50 PC Anywhere Connections and I need to have it working on my friend's pc that has pcanywhere 10.5.
thanks
~za~
You can't bring back a dead thread!
><body onUnload="logout()">
Sedj,
In my humble opinion, body unLoad will be called everytime a page unloads. It will work fine if you have this script of logout.jsp page and a user happens to click on the 'X' button instead of gracefully exiting through the application exit's function. However...
thanks for the reply. I let you know if I find anything.
>Are the results that dramatic if they accidentally hit 'OK' when they meant to hit 'Cancel'?
The web-based app that I wrote is used to move heavy items (a couple of thousand lbs each) by cranes. It's an equipment-managed app. Yes the...
hi there,
I need to default the focus on the Cancel button instead of OK to prevent some 'fat fingering'. Any advice is appreciated on how to accomplish this.
thanks
~za~
You can't bring back a dead thread!
If I learned form my experience, using session variables to keep track of things(# of user logins) are painful. What if a user clicks on the 'X' button instead of exiting gracefully through your app 'exit' function. That means, the # of users logged in and log out will not be correct, until the...
J2EE offers a more suitable implementation where you can define all your <env-entry> in ejb-jar.xml at the <enterprise-bean> level. I'm not sure whether you're using J2EE or not.
Think about it though, only starting JDK 1.4, JNDI is incorporated into java. SDK 1.3 doesn't have this feature...
may be this is what you mean. I have db JNDI resource declared at the server.xml level. Then I use InitialContext object to retrieve it.
<ResourceParams name="jdbc/MyDB">
This way, multiple web apps can access server.xml for the values.
~za~
You can't bring back a dead thread!
shoudn'y findByPrimaryKey() only be defined in your home method, not in your abstract entity bean class? No, it cannot be changed.
~za~
You can't bring back a dead thread!
the best book ever is head first java by kathy sierra and bert bates. I know there are a lot of free stuff out there but this book is really great. Kathy also hosts the site javaranch.com
~za~
You can't bring back a dead thread!
i am currently preparing for my EJB exam. I finished my JNDI section and if I'm not mistake, you can remove/add the string
ONLY after java:/comp/env. I.e,
DataSource ds = (DataSource)ic.lookup("java:comp/env/jdbc/MyJdbc");
in the DD:-
<entity>
...
<resource-ref>...
ben,
I'm not sure whether you can use the 'java:' alone. I never tried to bind but here is the call that I usually use when using JNDI(it works all the time):-
public static String sEnvConst = "java:comp/env";
public static String sJDBC = "jdbc/My_App";
//This is how I...
1. Vector and ArrayList are lists implementation. Synchronized
means "thread safe" which adds a performance hit(heavy weight). On the other hand, ArrayList is not "thread safe". I use arrayList a lot more because I usually need it to display a bunch of read-only database...
it may sound dumb but do you have:-
.;(period semi colon) in your CLASSPATH(the one that you defined in the bat file?)
~za~
You can't bring back a dead thread!
I finally managed to set up my linux server to connect to the internet(the first step on abandoning MS!).
I want to learn how to setup/run programs on linux from the command prompt.
I have created a 'developer' user so I can customize all the java development tools to run under this user...
opps.good point. i overlooked something.
thx sedj!
MJV, instead of
>C:\Java Samples>javac accountdemo.java
try
C:\javac AccountDemo.java
~za~
You can't bring back a dead thread!
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.