Re: [jug-discussion] presentation drive

2005-04-13 Thread Nicholas Lesiecki
Regrettably I cannot offer my services. As some of you already know I 
will be joining the ranks of the TJUG expatriates in the near future. 
I've just taken a job at Google as a Programming Instructor and will be 
moving to Mountain View, CA to work at the Googleplex.

On the plus side, I could come back and give a talk on Google's search 
architecture: where their datafarms are, how many queries they handle, 
the exact size of their index, etc.

Just kidding. If I did that, I'd have to kill you.
(It's fun knowing secrets!)
Standard disclaimer:
apologies for the terseness of this email, I'm typing with a broken 
wrist.

Nicholas Lesiecki
Software Craftsman, specializing in J2EE,
Agile Methods, and aspect-oriented programming
m: 650 793-5734
Books:
* Mastering AspectJ: http://tinyurl.com/66vf
* Java Tools for Extreme Programming: http://tinyurl.com/66vt
Articles on AspectJ:
* [EMAIL PROTECTED] Series: http://tinyurl.com/3s3pk,
* Intro: http://tinyurl.com/66vu
On Apr 13, 2005, at 5:47 PM, Warner Onstine wrote:
Sorry for interrupting this episode of "Spring-time in Javaland" for 
our semi-annual presentation drive. We here at the Tucson JUG are 
looking for your help. With only one one hour presentation you can 
keep the Tucson JUG going strong. Plus, act now, and get a hearty 
thank you from all of those who don't have to listen to a mangled 
Maven preso (again ;-).

Also, if you know of companies that do Java but aren't attending the 
meetings let me know who they are and who to contact and I'll send 
over our friendly meeting enforcer, Guido, err our friendly meeting 
reminder.

-warner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [jug-discussion] "Simple" Spring question

2005-04-13 Thread Nicholas Lesiecki
I bet your solution would be enough, since the version file could  
probably be modified into properties file format.

Standard disclaimer:
apologies for the terseness of this email, I'm typing with a broken  
wrist.

Nicholas Lesiecki
Software Craftsman, specializing in J2EE,
Agile Methods, and aspect-oriented programming
m: 650 793-5734
Books:
* Mastering AspectJ: http://tinyurl.com/66vf
* Java Tools for Extreme Programming: http://tinyurl.com/66vt
Articles on AspectJ:
* [EMAIL PROTECTED] Series: http://tinyurl.com/3s3pk,
* Intro: http://tinyurl.com/66vu
On Apr 13, 2005, at 5:12 PM, Thomas Hicks wrote:
At 02:09 PM 4/13/2005, you wrote:
I have a file on my classpath that has a single string in it, no  
spaces, nothing else in the file.

 I also have a bean defined in Spring which takes a string property.
 What is the absolute easiest way to get this number out of the file,  
and passed as a String into my bean?

 Every idea I have seems way too complex for this seemingly simple  
task.

 Thanks,
 Chad
 P.S. For background info, the number is a version number maintained  
by AnthillPro, and the string property of the bean is displayed on the  
GUI as the version number.

 Interesting questionI'd like to know the answer, too.
 I suspect you already know that *if* the file was in Java Properties  
(i.e. key=value) format
 that you could have Spring inject the value directly into your bean,  
as illustrated below
 where I am assuming that the file 'AntHillPro.properties' contains a  
line like:
 anthillpro.version=5.6

Perhaps there is some similar way to just retrieve a single value. If  
so, I'd like to know, too.
 regards,
-tom

  
   
   
   
      
class="org.springframework.beans.factory.config.PropertyPlaceholderConf 
igurer">
     
   
     classpath:AntHillPro.properties
     classpath:db.properties
   
     
   

 .
 .
   
   
   
   
     ${anthillpro.version}
   
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[jug-discussion] presentation drive

2005-04-13 Thread Warner Onstine
Sorry for interrupting this episode of "Spring-time in Javaland" for 
our semi-annual presentation drive. We here at the Tucson JUG are 
looking for your help. With only one one hour presentation you can keep 
the Tucson JUG going strong. Plus, act now, and get a hearty thank you 
from all of those who don't have to listen to a mangled Maven preso 
(again ;-).

Also, if you know of companies that do Java but aren't attending the 
meetings let me know who they are and who to contact and I'll send over 
our friendly meeting enforcer, Guido, err our friendly meeting 
reminder.

-warner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [jug-discussion] "Simple" Spring question

2005-04-13 Thread Thomas Hicks


At 02:09 PM 4/13/2005, you wrote:
I have a file on my classpath
that has a single string in it, no spaces, nothing else in the
file.
I also have a bean defined in Spring which takes a string
property.
What is the absolute easiest way to get this number out of the file, and
passed as a String into my bean?
Every idea I have seems way too complex for this seemingly simple
task.
Thanks,
Chad
P.S. For background info, the number is a version number maintained by
AnthillPro, and the string property of the bean is displayed on the GUI
as the version number.
Interesting questionI'd like to know the answer, too.
I suspect you already know that *if* the file was in Java Properties
(i.e. key=value) format
that you could have Spring inject the value directly into your bean, as
illustrated below
where I am assuming that the file 'AntHillPro.properties' contains a line
like:

anthillpro.version=5.6
Perhaps there is some similar way to just retrieve a single
value. If so, I'd like to know, too.

regards,
-tom

  
  
  
  
   
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    
  
   
classpath:AntHillPro.properties
   
classpath:db.properties
  
    
  
.
.
  
  
  
  
    ${anthillpro.version}
  




[jug-discussion] "Simple" Spring question

2005-04-13 Thread Chad Woolley
I have a file on my classpath that has a single string in it, no spaces, 
nothing else in the file.

I also have a bean defined in Spring which takes a string property.
What is the absolute easiest way to get this number out of the file, and 
passed as a String into my bean?

Every idea I have seems way too complex for this seemingly simple task.
Thanks,
Chad
P.S. For background info, the number is a version number maintained by 
AnthillPro, and the string property of the bean is displayed on the GUI 
as the version number.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [jug-discussion] April Presos

2005-04-13 Thread Warner Onstine
Mmmm, too much coffee man. A friend of mine introduced me to him a long  
tim ago. What can you say about a superhero that gets his strength from  
nicotine and caffeine ;-).

-warner
On Apr 13, 2005, at 10:38 AM, Robert Zeigler wrote:
Tim Colson (tcolson) wrote:
Hey gang -
I just wanted to say thanks again to Ray and Robert for the preso's
tonight, and Duffy for getting us access to the bldg/room. I'm
inspired... I now want to build a multi-user server with two threads
that has "purdy" buttons. :-)
Some interesting code snippets to gaze upon:
http://javaalmanac.com/egs/java.nio/pkg.html
http://www.onjava.com/pub/a/onjava/2004/09/01/nio.html
That's a good article; I used it as a reference point last year when
working on the whiteboard server. I do have one issue with it, though.  
;)
"Unfortunately, there is a price to pay: an architecture based on I/O
multiplexing is significantly harder to understand and to implement
correctly than one based on thread pooling."

I actually disagree with that quite a bit. There are /some/ complexity
issues that come along with nio, but the perception that it is harder  
to
understand and to implement, imo, sound like the perception of someone
used to doing things the "java way"; I find multiplexed-i/o servers
cleaner to implement and easier to understand when all is said and  
done,
especially if you're dealing with any sort of shared resources.
See also:
http://grexengine.com/sections/externalgames/articles/Adam%20Martin- 
Java%20NIO%20Networking%20for%20Games-1.html
(3 part article dealing with nio servers)
By the same author:
http://grexengine.com/sections/people/adam/adamsguidetonio.html

And... I though it proper to give appropriate credit for last night's
"comic relief slide". The original (undoctored) comic is here:
http://ringlord.com/people/walrus/tmcm/006-spaghetti.jpg
Robert
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [jug-discussion] April Presos

2005-04-13 Thread Robert Zeigler
Tim Colson (tcolson) wrote:
> Hey gang -
> I just wanted to say thanks again to Ray and Robert for the preso's
> tonight, and Duffy for getting us access to the bldg/room. I'm
> inspired... I now want to build a multi-user server with two threads
> that has "purdy" buttons. :-)
> 
> Some interesting code snippets to gaze upon:
> 
> http://javaalmanac.com/egs/java.nio/pkg.html
> 
> http://www.onjava.com/pub/a/onjava/2004/09/01/nio.html

That's a good article; I used it as a reference point last year when
working on the whiteboard server. I do have one issue with it, though. ;)
"Unfortunately, there is a price to pay: an architecture based on I/O
multiplexing is significantly harder to understand and to implement
correctly than one based on thread pooling."

I actually disagree with that quite a bit. There are /some/ complexity
issues that come along with nio, but the perception that it is harder to
understand and to implement, imo, sound like the perception of someone
used to doing things the "java way"; I find multiplexed-i/o servers
cleaner to implement and easier to understand when all is said and done,
especially if you're dealing with any sort of shared resources.
See also:
http://grexengine.com/sections/externalgames/articles/Adam%20Martin-Java%20NIO%20Networking%20for%20Games-1.html
(3 part article dealing with nio servers)
By the same author:
http://grexengine.com/sections/people/adam/adamsguidetonio.html

And... I though it proper to give appropriate credit for last night's
"comic relief slide". The original (undoctored) comic is here:
http://ringlord.com/people/walrus/tmcm/006-spaghetti.jpg

Robert

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jug-discussion] April Presos

2005-04-13 Thread Tim Colson \(tcolson\)
Hey gang -
I just wanted to say thanks again to Ray and Robert for the preso's
tonight, and Duffy for getting us access to the bldg/room. I'm
inspired... I now want to build a multi-user server with two threads
that has "purdy" buttons. :-)

Some interesting code snippets to gaze upon:

http://javaalmanac.com/egs/java.nio/pkg.html

http://www.onjava.com/pub/a/onjava/2004/09/01/nio.html


Cheers,
Timo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]