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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by alebu

  1. alebu

    How to (if it possible) limit amount of allowed memory for code block?

    Heh, it was actually more theorical question. Imagine, today we have a huge zoo of application servers and any custom component can actually kill a whole app-server with simple endless loop. The same goes to any IoC container. A simple, 100 of years know bug with endless loop can kill any...
  2. alebu

    How to (if it possible) limit amount of allowed memory for code block?

    Hi all, is it possible to limit somehow allowed memory for some code block (method for example)? For example, I am going to run some code but it is possible that it can try to use too much memory (heap or stack). The practical usage of such limitation can be: preventing some plugin to suck all...
  3. alebu

    how to return records set from SP (SF) in v5.0?

    Hi, i have stored procedure (or function) and I need to return records set from it. This result set is generated inside SP, so simple select <some columns> from <somewhere> will not work. In postgresql this is done using SET OF construction, but how to do it in MySQL?
  4. alebu

    How to return with error from trigger?

    Hello! I have trigger and in some condition I want to inform calling system that some error occured (rise error). How can I do it? And where can I read about it? Official documentation is not very helpful, at least I didn't found anything about it in section triggers. :(
  5. alebu

    XML tag and attributes naming conventions

    Hi, Currently I am involved in writing code standarts for my company and there is serious question about XML tags and attributes naming conventions. There is three types of them: 1) Camel case - new word starts from Capitalized character. Apache uses such approach. 2) Use minus (-) sign. For...
  6. alebu

    How to use hbm2java and cfg2hbm in HIBERNATE

    Are they part of hibernate distribution? As I know they are not.
  7. alebu

    how to configure hibernate3 to use user login in queries?

    Well, I like tek-tips, but there is no specialized forum here for hibernate. If I can ask here about jdbc, then I think it is naturally to ask about hibernate too.
  8. alebu

    how to configure hibernate3 to use user login in queries?

    Uhh, sorry, I mean HOW TO FORCE hibernate to use username in queries :) My bad
  9. alebu

    how to configure hibernate3 to use user login in queries?

    Hi! I have database where some tables are owned by different then database owner user. To accesss those tables I need to specify username before tablename. So, simple select looks like : SELECT * FROM <username>.<tablename>. This is a test database and in production will be used only one user (...
  10. alebu

    Bytecode changes from SE1.4 to SE5

    I just remember that in some article on IBM site I saw somethink about the reasons why SE5 generics are not so cool as they could be. It was some compatibility reason as I understood, so if specs WAS changed, then compatibility is already broken and there is no need to worry about it. But there...
  11. alebu

    Bytecode changes from SE1.4 to SE5

    As I know, java .class file specification was unchanged until version 1.4 but because of new features in version 5 ( autoboxing, enums, ... ) there was discution about changes in java bytecode specification. I found JSR 201 http://www.jcp.org/en/jsr/detail?id=201 and it seems that specs WAS...
  12. alebu

    Some questions about hashCode method

    Do I understand correctly that 2 equals objects MUST return the same hashCode() value BUT if 2 objects has the same hashCode it is DOES'NT mean that they are equals?
  13. alebu

    mod_jk setup help. Tomcat 5 + Apache2

    Don't know whats wrong in your case but here is my configs ( tomcat-5.0.28 ): ---httpd.conf--- <IfModule !mod_jk.c> LoadModule jk_module "modules/mod_jk.so" </IfModule> JkWorkersFile "conf/workers.properties" JkLogFile "logs/mod_jk.log" JkLogLevel info JkMount /servlets-examples/* worker1...
  14. alebu

    How to get computer LAN IP?

    Computers in LAN access internet thru special server and for all other internet they looks like single computer ( same IP ). How can I know, is there only one computer using that IP or there is more of them, and if there is more, then which of them exactly ( IP ) uses it now? I mean...
  15. alebu

    Question on Tomcat db connection pool

    java.sql.Connection is interface, not a class, so the thing you got from pool is not actually the same what you got directly creating connection. When you call close on connection from pool, pool returns REAL connection to pool, so it become available for further reuse.

Part and Inventory Search

Back
Top