Re: how to lock the access to an array till a method is finished ...

2002-11-07 Thread Ionel Condor
; the loop. > > public void populateBigArray ( long[] bigArray ) > { > for (i = 0 ; i< VERY_BIG_NUMBER ; i++) > { > syncronized (bigArray) > { > bigArray[i] = i; > } > } > }

Re: how to lock the access to an array till a method is finished ...

2002-11-07 Thread Ionel Condor
e Eckel's book: "Thinking in Java" and read chapter > 14. > > > > > -Original Message- > > From: Ionel Condor [SMTP:[EMAIL PROTECTED]] > > Sent: 07 November 2002 02:43 > > To: [EMAIL PROTECTED] > > Subject: how to lock the acc

how to lock the access to an array till a method is finished...

2002-11-07 Thread Ionel Condor
Hi, I have the following situation: In a bean, I have a method that populates an array with a large, very large amount of data (required for some operations). >From my jsp page I do not want to allow any web clients to see the length of this array, till the process of population is finishedI m

Re: Thread dumps with weblogic

2002-10-28 Thread Ionel Condor
the prove that the core file is generated just do a 'ls -latr' Regards, Ionel Condor. - Original Message - From: "Shahata, Ash" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 3:45 PM Subject: Re: Thread dumps with weblogic

Re: Thread dumps with weblogic

2002-10-28 Thread Ionel Condor
Hi, IF you have done a 'kill -3 PID' than the core dump of the memory will be in a file called 'core' that is located in the directory from where the killed process (java) was started. So if your process was started (just an example) from /usr/bin/... and you are trying to kill it from /home/myacco

Re: obtaining date and time in suitable format for MySQL

2002-10-18 Thread Ionel Condor
reference, please consult http://java.sun.com/j2se/1.3/docs/api/java/util/GregorianCalendar.html and you will find all the methods() that you need. Regards, Ionel Condor. - Original Message - From: "hugo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday,

Re: Pausing execution?

2002-10-17 Thread Ionel Condor
Hi, beyween two consecutive 'send mail' you may introduce a sleep, as follows: Thread.currentThread().sleep(time_in_miliseconds); Regards, Ionel Condor. - Original Message - From: "David Castro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Th

Re: javamail and carriage return

2002-10-10 Thread Ionel Condor
Concatenate the text with: System.getProperty("line.separator") and, if necessary, with some other system properties Regards, Ionel Condor. - Original Message - From: "Ronny Van der Perre [Smart IT Systems]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED

Re: jsp editor

2002-10-10 Thread Ionel Condor
No way !!! HomeSite is neither free, nor opensource regards, ionel. - Original Message - From: "Sanjika Abeyratna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 10, 2002 12:55 PM Subject: Re: jsp editor > Home site > > - Original Message - > From: "Sha

Re: Tomcat on Linux

2002-10-10 Thread Ionel Condor
t: Re: Tomcat on Linux > would I just add /catalina/bin/startup.sh as an entry to rc.local? > > Thanks > > -----Original Message- > From: Ionel Condor [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 10, 2002 10:21 AM > To: [EMAIL PROTECTED] > Subject: Re: Tomcat

Re: Tomcat on Linux

2002-10-10 Thread Ionel Condor
in linux: init calls /etc/rc.d/rc . This one executes all the scripts that are in the folder /etc/rc.d/rcN.d, where N is the number of the level. Than the rc.local is executed. You may put your stuff there "if you don't # want to do the full Sys V style init stuff." Regard

Re: share objects

2002-09-25 Thread Ionel Condor
Hi, Probably he wants to say primitive types (int, char, ...) for 'variables'. Ionel Condor. - Original Message - From: "Adrian Janssen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 11:00 AM Subject: Re: share objects

Re: TEXTAREA behavior in IE and Netscape

2000-09-08 Thread Ionel Condor
> Ok, I have found a solution for IE: I just put wrap="hard" as attrib of the textarea and everything is OK, I can't understand why, as wrap is said to be used only for alignment. Any comments Ionel C. > > > -Original Message- > From: Ionel Condor [ma

TEXTAREA behavior in IE and Netscape

2000-09-08 Thread Ionel Condor
Hi, Here is my problem: In a textarea a user must be able to inputs (to paste) a text document than sends the form (which contains some other Input elements) to the server using post. In Netscape the textarea limits myself to introduce more than approx. 24376 chars (I can't TYPE more chars). But

Re: UML Tutorial Pointers

2000-08-09 Thread Ionel Condor
Hi, I think that www.rational.com is (Rational Rose) the best of the web related to UML. Regards, Ionel Condor. Khem Chand Sachdeva wrote: > Hi Everybody > This is slightly offtopic. > Could anybody tell me how should i go abt learning UML. > I want some site where i can find me

Re: How do I Change the Sort Order?

2000-08-07 Thread Ionel Condor
Hi, I am not absolutely sure but I think that in the class which inherits this class you should explicitly write "<" or " >" in the overriden method compareElementAt(...) ex. public int compareElementsAt(int beginLoc, int endLoc) { if(beginLoc>endLoc) return -1; else return 1; } or for re

Re: SQL server and JDBC under WinNT

2000-08-07 Thread Ionel Condor
Hi, A solution is to use the Bea JDBC driver (4 type driver) : http://www.bea.com/products/weblogic/drivers_platforms.html or http://www.bea.com/products/ Regards, Ionel CONDOR. Oscar Silván wrote: > How can I access SQL Server database under Win NT without ussing the > JDBC-ODBC

Re: MD5 Hash

2000-08-04 Thread Ionel Condor
Millis(); md.init(); for (int k = 0; k < i; k++) md.update(testdata); md.finish(); times[i] = System.currentTimeMillis() - t1; rates[i] = ((double) (i*testdata.length) * 1000.0)/ (double) times[i]; System.out

Re: OLE DB drivers for Java ?

2000-08-04 Thread Ionel Condor
Hi, A solution is to use the JDBC driver provided by Bea: http://www.bea.com/products/weblogic/drivers_platforms.html Regards, Ionel CONDOR. Franck Rageade wrote: > Dear JSP gurus, > > I tried to use ODBC JDBC drivers to upload a blob in a SQL Server database. >Unfortunatel

Re: minutes ,seconds????

2000-08-04 Thread Ionel Condor
JDBC Date object does not contain time information, only date. For the time information you must use the java.sql.Timestamp class. Have a nice day, Ionel CONDOR. subramanian Athimoolam wrote: > hi > > in jsp some methode getMinutes, getHours its not working why?

using any crypt algorithms in JSP

2000-08-04 Thread Ionel Condor
Hi, For all that want to use some crypt algorithms in your Java applications (JSP) I have found an interesting site: http://www.cryptocd.net/cryptocd/ Hope it helps. Have a nice day, Ionel CONDOR. === To unsubscribe

Re: problem with msacess

2000-07-31 Thread Ionel Condor
MSAccess keeps its info in winnt\catroot directory. Open that database and in options select to show also the system tables. There is a table which contains accounts. The mdb is called lcatalog.mdb. Ciao, Ionel. Srinivas Rao Eadhara wrote: > I have a typical problem , I am using MS-acess as

JSP & DB2

2000-07-31 Thread Ionel Condor
order to succeed... I mean one of the DB to see also the tables from the other DB. I have done the same thing in Oracle by allowing rights on a scheme but I don't know how can be done in DB2. Please give me an example. Thanks, Ionel C

Re: Can I read a text file thru a bean

2000-07-28 Thread Ionel Condor
if (is != null) { try { is.close(); } catch (java.io.IOException ioex1) { ioex1.printStackTrace(); } is = null; } } than even you use an: Enumeration e = p.keys(); or simply get a value of a property as I have shown you above. Ciao, Ionel Condor. Xing guohong wrote: > Hi, &g

A design tool (Visio 5)

2000-07-26 Thread Ionel Condor
Hi, Have anyone used Visio 5 for Web page design and for other diagrams. Does anyone know a website from where I may download an evaluation copy of Visio 5, I as not able to find any correct link. Sorry if it's a little bit out of the topic. Many thanks, Ionel. ===

Re: This is very ***important*** for me ..please help.

2000-07-25 Thread Ionel Condor
rollback... (and other jdbc objects) or better use a connection pool. Ionel Condor. Pradeep Roy wrote: > Hi All > > I am enclosing a complete code for database accessing. It would help > beginners to know how to access the database from JSP. > But I don't want the JSP to ac

JRun233 vs JRun3

2000-07-24 Thread Ionel Condor
Hi, Does anyone know what version of Servlet's API does know JRun233 ? Shall I upgrade to version 3 ? Has version 3 significant improvements? Many thanks, Ionel Condor. === To unsubscribe: mailto [EMAIL PROTECTED] with

Re: Prob of Servlet objects in JSP functions

2000-07-17 Thread Ionel Condor
. Ionel Condor. "Rath, Dipak (Dipak)" wrote: > Hi: > I'm new to the world of JSP/Servlet. I'm about to be a part of a project and > we intend to use jsp and servlet. We ordered Visual Cafe (expert edition) > and realized that it does not support jsp and servlet dev

Re: Prob of Servlet objects in JSP functions

2000-07-17 Thread Ionel Condor
Hi, the code from declarations is inserted in the body of the servlet class, outside of the service(...) method (for which the request/response objects are defined). Gerard Menezes wrote: > Hi all, > > I have a problem while defining JSP functions in the > Declarative tag <%! %>. > I cannot acc

sending via POST

2000-07-17 Thread Ionel Condor
ation, something like C raw sokets I think... Do you know such a method or a utility program that does such a job of showing the query as it was send by a get method? (I don't need a sniffer application for reading pwd and so on). Many thanks, Io

Re: how to detect a browser closing

2000-07-13 Thread Ionel Condor
losed. > > > > The only way I know would be to set a time out on the session and do the > > logic when the session time out occurs. > > > > Hope that helps. > > > > Shane Duan > > [EMAIL PROTECTED] > > > > -Original Message- > >

how to detect a browser closing

2000-07-10 Thread Ionel Condor
Hi, I have the following problem: I want to detect on the server side when a user (which has an open session on the server) has closed his browser by pressing the "X" close button of the window. I know that using http sessions is probably the unique way, but I don't know how, as I don't know if th