RE: Java Question

2002-10-16 Thread Cox, Charlie
day, October 15, 2002 3:38 PM > To: 'Tomcat Users List' > Subject: RE: Java Question > > > A service will start without a user logged in (if the startup > mode is set to > Auto) and continue to run after they log out. Anything in the startup > folder doesn&#x

RE: Java Question

2002-10-15 Thread Wagoner, Mark
EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 2:43 PM To: '[EMAIL PROTECTED]' Subject: Java Question What is the difference or what does it gain me to run and install the jk_nt_service.exe if I am required to use JDK 1.3 vs just putting the tomcat app in the Windows Startup menu?

Java Question

2002-10-15 Thread Gaull, Kathy
What is the difference or what does it gain me to run and install the jk_nt_service.exe if I am required to use JDK 1.3 vs just putting the tomcat app in the Windows Startup menu? Kathy Gaull COUNTRYSM Insurance & Financial Services Web Services Phone: (309)821-5441 Email: [EMAIL PROTECT

Re: Java question: From one stream to another

2002-01-10 Thread Mark
At 01:17 AM 1/11/2002 -, you wrote: > >Hi, this is partially a Java question and partially a Tomcat >question. I looked through "Java Servlet Programming" and some other >books and I couldn't find a good answer. > >I am writing a program which uses Jmagick to

Java question: From one stream to another

2002-01-10 Thread Dr. Evil
Hi, this is partially a Java question and partially a Tomcat question. I looked through "Java Servlet Programming" and some other books and I couldn't find a good answer. I am writing a program which uses Jmagick to generate some images which will be sent back to the client with

RE: Java Question

2001-06-13 Thread Brandon Cruz
n the past week. I'm sorry! Thanks again for everyone's help! Brandon -Original Message- From: Hemant Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 11:22 PM To: [EMAIL PROTECTED] Subject: Re: Java Question HI Bran: There is no relation betn static and syn

Re: Java Question

2001-06-12 Thread Hemant Singh
HI Bran: There is no relation betn static and synchronize If you are synchronizing the static method than it does means you are giving him the class level lock, and not instance level lock. Hope that help Regards Hemant --- Brandon Cruz <[EMAIL PROTECTED]> wrote: > I have looked all over and can

RE: Java Question

2001-06-12 Thread Milt Epstein
hronize(getYearSync) { String newStr = str.substring(0,4); return newStr; } } (Note: Code not tested :-). [ ... ] > - Original Message - > From: "Brandon Cruz" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 12, 2001

RE: Java Question

2001-06-12 Thread Filip Hanik
Message- >From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, June 12, 2001 3:42 PM >To: [EMAIL PROTECTED] >Subject: Re: Java Question > > >Correct me if I'm wrong. But you'd only need to synchronize if the method >used data that was sha

Re: Java Question

2001-06-12 Thread Dmitri Colebatch
Correct me if I'm wrong. But you'd only need to synchronize if the method used data that was shared between threads. If you have a method: public static int getMonth(String date) { return dataFormatter.parse(date).get(Calendar.MONTH); } or something lik

RE: Java Question

2001-06-12 Thread Jann VanOver
EMAIL PROTECTED]' Subject: RE: Java Question > public static String getYear(String str){ > synchronized(str){ > newStr = str.substring(0,4); > return newStr; > } > } While your use of "synchronize" is correct, _this_ synchronization is not

Re: Java Question

2001-06-12 Thread Luba Powell
Stupid example. Should have been an array... - Original Message - From: "William Kaufman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 12, 2001 3:47 PM Subject: RE: Java Question > > public static String getYear(String st

RE: Java Question

2001-06-12 Thread William Kaufman
June 12, 2001 11:56 AM To: [EMAIL PROTECTED] Subject: RE: Java Question So would changing something simple from... public static String getYear(String str){ newStr = str.substring(0,4); return newStr; } to... public static String getYear(String str){ synchronized(str){

Re: Java Question

2001-06-12 Thread Luba Powell
().getYear("abcdefghi"); } } - Original Message - From: "Brandon Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 12, 2001 2:56 PM Subject: RE: Java Question > So would changing something simple from... > > public static S

Re: Java Question

2001-06-12 Thread Luba Powell
ay, June 12, 2001 2:59 PM Subject: Re: Java Question > You don't seem to understand the relationship between the JVM's > threads and the native OS's threads. > > > Pae > > > Actually the outcome is predictable: > > monitorenter will obtain objectr

RE: Java Question

2001-06-12 Thread Brandon Cruz
PROTECTED] Subject: Re: Java Question Actually the outcome is predictable: monitorenter will obtain objectref on this (aload_0) * if no other thread has locked the object * if the object is currently locked by another thread (monitorenter instruction) * if the current thread already owns a lock

Re: Java Question

2001-06-12 Thread Pae Choi
ensitive code > monitorexit > ... > return > end method > > - Original Message - > From: "Brandon Cruz" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 12, 2001 2:18 PM > Subject: Java Question

Re: Java Question

2001-06-12 Thread Luba Powell
returns to 0 .method static doSort([I)V aload_0 monitorenter ; sensitive code monitorexit ... return end method - Original Message - From: "Brandon Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 12, 2001 2:18 PM

Re: Java Question

2001-06-12 Thread Luba Powell
; sensitive code monitorexit ... return end method - Original Message - From: "Brandon Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 12, 2001 2:18 PM Subject: Java Question > I have looked all over and can't find the answer to this

Re: Java Question

2001-06-12 Thread Pae Choi
When you access the 'synchronized' static method, it locks its class. so this will ensure the thread-safe access. Otherwise, the result is unknown. Pae > I have looked all over and can't find the answer to this simple question. > If you use a static method, do you have to synchronize

Java Question

2001-06-12 Thread Brandon Cruz
I have looked all over and can't find the answer to this simple question. If you use a static method, do you have to synchronize it in case other people may access it at the same time. For example, I have a static Utility class to do date calculations. The method Utility.getMonth(String date) ta

Re: Java Question on Inheritance

2001-03-22 Thread William Brogden
Ryan wrote: > > Then this is my next problem. > > I currently have getThumb() returning an Image object. > > The part where I am stuck at is what to do in the toURL() method. > > my mock getThumb() method currently looks something like > public Image getThumb(){ > this.iValue = "/home/thu

RE: Java Question on Inheritance

2001-03-22 Thread Michael Wentzel
> Then this is my next problem. > > I currently have getThumb() returning an Image object. > > The part where I am stuck at is what to do in the toURL() method. > > my mock getThumb() method currently looks something like > public Image getThumb(){ > this.iValue = "/home/thumbs"; > return

Re: Java Question on Inheritance

2001-03-22 Thread Ryan
} -ryan - Original Message - From: "Michael Wentzel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 22, 2001 8:32 AM Subject: RE: Java Question on Inheritance > > Ultimately, I want to get the thumb of this Image and convert it to a

RE: Java Question on Inheritance

2001-03-22 Thread Grewal, Gary
  URL url = toURL( myImage.getThumb() ); in your SuperOne or its sub-class.   === Gary Grewal -Original Message-From: Ryan [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 22, 2001 10:38 AMTo: [EMAIL PROTECTED]Subject: Java Question on Inheritance I don't really know wh

RE: Java Question on Inheritance

2001-03-22 Thread Michael Wentzel
> Ultimately, I want to get the thumb of this Image and convert it to a URL. I want > to be able to do this efficiently and use something like the following syntax. > >myImage.getThumb().toURL() > > >Is this possible? Yes, but getThumb() must return a subclass of SuperOne. --- Michael We

Re: Java Question on Inheritance

2001-03-22 Thread Tom Horn
I don't think you can convert a gif file to anything else but other image format. gp --- Ryan <[EMAIL PROTECTED]> wrote: > I don't really know what to call what I'm having > trouble with but here is what I am trying to do. > > I have a superclass called SuperOne, it has a method > to convert a

Java Question on Inheritance

2001-03-22 Thread Ryan
I don't really know what to call what I'm having trouble with but here is what I am trying to do.   I have a superclass called SuperOne, it has a method to convert a string to a URL format called toURL().   I have an Image class that is a subclass of SuperOne. It holds a string storing the l