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
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?
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
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
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
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
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
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
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
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
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
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
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){
().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
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
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
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
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
; 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
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
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
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
> 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
}
-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
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
> 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
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
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
28 matches
Mail list logo