Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. maxpower1

    oracle jdbc loses network connection after a while

    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...
  2. maxpower1

    converting connection list from PCanywhere 11 to 10.5

    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!
  3. maxpower1

    how count active users

    ><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...
  4. maxpower1

    window.confirm default to Cancel button

    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...
  5. maxpower1

    window.confirm default to Cancel button

    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!
  6. maxpower1

    how count active users

    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...
  7. maxpower1

    global JNDI resources tomcat5

    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...
  8. maxpower1

    global JNDI resources tomcat5

    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!
  9. maxpower1

    change findByPrimaryKey

    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!
  10. maxpower1

    Java Beginner

    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!
  11. maxpower1

    Binding subcontexts to JNDI read-only Context in Tomcat

    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(&quot;java:comp/env/jdbc/MyJdbc&quot;); in the DD:- <entity> ... <resource-ref>...
  12. maxpower1

    Binding subcontexts to JNDI read-only Context in Tomcat

    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 = &quot;java:comp/env&quot;; public static String sJDBC = &quot;jdbc/My_App&quot;; //This is how I...
  13. maxpower1

    Difference between Vector and ArrayList

    opp.. all these items fall under Collections Collection | List / / Vector ArrayList ~za~ You can't bring...
  14. maxpower1

    Difference between Vector and ArrayList

    1. Vector and ArrayList are lists implementation. Synchronized means &quot;thread safe&quot; which adds a performance hit(heavy weight). On the other hand, ArrayList is not &quot;thread safe&quot;. I use arrayList a lot more because I usually need it to display a bunch of read-only database...
  15. maxpower1

    Okay, Now I'm frustrated!!!!!

    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!
  16. maxpower1

    newbie! installing java and other programs on RedHat Linux 9

    thanks gloups ~za~ You can't bring back a dead thread!
  17. maxpower1

    newbie! installing java and other programs on RedHat Linux 9

    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...
  18. maxpower1

    New to Java question

    you mean wireless apps? http://java.sun.com/j2me/index.jsp ~za~ You can't bring back a dead thread!
  19. maxpower1

    Java 101

    dooppp!!(Homer Simpson) i mean, try C:\Java Samples>javac AccountDemo.java ~za~ You can't bring back a dead thread!
  20. maxpower1

    Java 101

    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!

Part and Inventory Search

Back
Top