comp.lang.java.programmer
http://groups-beta.google.com/group/comp.lang.java.programmer
[EMAIL PROTECTED]

Today's topics:

* Getting DCT Coefficients from JPEG File using Java ? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bda8f17ff0550b71
* Beginning EJB - 7 messages, 4 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d49babfdb472b21c
* Searching for (and remove) unreferenced methods - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6cf6cff59129ad70
* javax.comm - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4b1823ed49da2e4b
* how to fix the JFrame size? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ebe9bc0e6b94d453
* Tomcat 4.1.31 - huge count of webapps, Tomcat hangs up - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/51e7f717d6cd4b8a
* request directory in server - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e5e516bd06745ac3
* Update your VM gentlemen, sun made a mistake. - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/0d5689b8341eb5c3
* Finding Date Difference - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b9df8bc4e9c538dd
* Laptop with Websphere - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6926ee85fd956588
* Struts: Proper way to escape "bean:write" - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a3ca9dcfd0d6654d
* JSP compilation time difference? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/71db042e9bc46415
* String.split() - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3362a3ab6d6ba8ba
* What the different between form ".this" and ".class"? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cc0d4d78310386ca
* search(Object criteria) - to vague? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8c9970db76f9ab70
* Sun's JMS API Tutorial: just hangs - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ffd2dbf4cfdc3ba9
* opinion on coding standard - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1f96751a1d317c1a

==============================================================================
TOPIC: Getting DCT Coefficients from JPEG File using Java ?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bda8f17ff0550b71
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 2 2004 3:47 pm
From: "Jackson"  

I'm currently doing some development in Java and I need to be able to
extract the DCT Coefficients from a JPG file.

I've done some research and found that Java does include a JPEG Decoder
(com.sun.image.codec.jpeg.*), but I'm not sure how I could leverage
this to grab the DCT Coefficients.

It is my understanding that I would have to first, for each 8x8 block,
decode the  huffman values, decode the RLE values, decode the DPCM
values, and undo zig-zag coding.  I'm just not sure how I could get
this concept into my Java program.

Thanks!
-Jackson





==============================================================================
TOPIC: Beginning EJB
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d49babfdb472b21c
==============================================================================

== 1 of 7 ==
Date: Thurs, Dec 2 2004 7:01 pm
From: Andrew Thompson  

On Thu, 02 Dec 2004 20:33:36 GMT, Collin VanDyck wrote:

> Andrew Thompson wrote:
>> As as aside, I have noticed a spate of postings from Google groups 
>> where the message is repeated.  ..

> Classic double clicky web browser problem?

That might explain one 'every so often', but I have seen 3 in 
the last 24 hours.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



== 2 of 7 ==
Date: Thurs, Dec 2 2004 5:55 pm
From: "Ann"  


"Nagu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello All,
>
> I have interests to pursue career in components development (EJB ).
> Where do I start. I have good knowledge about JAVA language but not on
> any other J2EE or J2Se technologies? What are the prerequisites to
> learn EJB?
>
> Thanks Much
>
> Nagendra
>
I heard a rumor that EJB is now "old hat." Can anyone confirm?





== 3 of 7 ==
Date: Fri, Dec 3 2004 4:10 am
From: "Darryl L. Pierce"  

Nagu wrote:

> I have interests to pursue career in components development (EJB ).
> Where do I start. I have good knowledge about JAVA language but not on
> any other J2EE or J2Se technologies? What are the prerequisites to
> learn EJB?

Start off by using a good text reference. I recommend _Enterprise Java 
Beans_ from O'Reilly, along with a copy of Eclipse, JBoss and JBoss-IDE. 
Those together make for an excellent learning environment.

-- 
Darryl L. Pierce <[EMAIL PROTECTED]>
Visit my webpage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth."
     - Peter Abelard



== 4 of 7 ==
Date: Fri, Dec 3 2004 4:16 am
From: "Darryl L. Pierce"  

Andrew Thompson wrote:

> As as aside, I have noticed a spate of postings from Google groups 
> where the message is repeated.  Is there some problem with the 
> Google interface?  Are you using the beta-groups or the standard 
> groups interface?

I noticed that as well. The first post is also posted as the first 
response to the post. Maybe they just had a new release and this was a 
bug that slipped through QA?


-- 
Darryl L. Pierce <[EMAIL PROTECTED]>
Visit my webpage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth."
     - Peter Abelard



== 5 of 7 ==
Date: Thurs, Dec 2 2004 12:13 pm
From: Andrew Thompson  

On 2 Dec 2004 11:52:50 -0800, Nagu wrote:

> I have interests to pursue career in components development (EJB ).
> Where do I start. I have good knowledge about JAVA language ..

Apparently not good enough to realize that Java is not an acronym
(JAVA -> Java).

As as aside, I have noticed a spate of postings from Google groups 
where the message is repeated.  Is there some problem with the 
Google interface?  Are you using the beta-groups or the standard 
groups interface?

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



== 6 of 7 ==
Date: Fri, Dec 3 2004 4:17 am
From: "Darryl L. Pierce"  

Ann wrote:

> I heard a rumor that EJB is now "old hat." Can anyone confirm?

I heard that FUD in Java newsgroups is now "old hat". Can anyone confirm?

-- 
Darryl L. Pierce <[EMAIL PROTECTED]>
Visit my webpage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth."
     - Peter Abelard



== 7 of 7 ==
Date: Thurs, Dec 2 2004 12:33 pm
From: Collin VanDyck  

Andrew Thompson wrote:
> As as aside, I have noticed a spate of postings from Google groups 
> where the message is repeated.  Is there some problem with the 
> Google interface?  Are you using the beta-groups or the standard 
> groups interface?
> 

Classic double clicky web browser problem?




==============================================================================
TOPIC: Searching for (and remove) unreferenced methods
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6cf6cff59129ad70
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 2 2004 11:55 pm
From: Martin Egholm Nielsen  

> Is there a simple (perhaps automated) way to find all methods in a
> project that are not referenced by any other methods/classes?  I'm sure
> that there are some in our project, but short of checking each method
> individually, I don't know how to get at them.
You should look at ProGuard - it's an optimisation tool that does that - 
but to the compiled class-files, though. However, I reckon you can ask 
it to tell which methods are unused...

// Martin Egholm




==============================================================================
TOPIC: javax.comm
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4b1823ed49da2e4b
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 2 2004 6:28 pm
From: "lin shen"  

Has anyone out there tried to use javax.comm to communicate with a rfid
reader?

lin






==============================================================================
TOPIC: how to fix the JFrame size?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ebe9bc0e6b94d453
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 2 2004 8:51 pm
From: "Woebegone"  

"nick" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>i want to fix the JFrame size , make it can't resize
>
> thanks!
>

Dimension d = new dimension(x, y);
JFrame f = new JFrame("Not resizable");

f.setSize(d);
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html#setSize(java.awt.Dimension)

f.setResizable(false);
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Frame.html#setResizable(boolean)

hth,
Sean. 






==============================================================================
TOPIC: Tomcat 4.1.31 - huge count of webapps, Tomcat hangs up
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/51e7f717d6cd4b8a
==============================================================================

== 1 of 2 ==
Date: Fri, Dec 3 2004 1:25 am
From: Andrea Desole  

25 applications sounds a bit high, but what makes you think it's Tomcat? 
It's also possible that one of your 25 applications has a leak


Martin Eberle wrote:
> Hi everybody and java experts, 
> 
> i have a huge count of webapps (approximately 25) in my Tomcat here,
> running on Suse Linux 9.1. After a few connection requests, Tomcat
> just hangs up and doesn't accept anymore connection. I can't kill the
> process anyway, only "killall -9 java" helps. Well, beneath the fact
> that my server has 2 gigabytes of ram, only 40MB are available after
> starting tomcat. So, tomcat allocates 1.96 gigabytes of ram.
> 
> Question is: what is the maximum count of webapps, Tomcat is able to
> handle? Or are there any other configuration hints?
> 
> System is
> - Suse Linux 9.1
> - 2GB of RAM
> - 3.0 Ghz Machine
> - JDK1.4.2_06 and JRE1.4.2_05 (same effect on every Java version)
> - Tomcat 4.1.31 or Tomcat bundle with TDK-2.2 (TurbineDevelopmentKit)
> ..
> 
> This is an absolut urgent issue! Please reply asap .. 
> Thx a lot ....



== 2 of 2 ==
Date: Fri, Dec 3 2004 12:32 am
From: [EMAIL PROTECTED] (Martin Eberle) 

Hi everybody and java experts, 

i have a huge count of webapps (approximately 25) in my Tomcat here,
running on Suse Linux 9.1. After a few connection requests, Tomcat
just hangs up and doesn't accept anymore connection. I can't kill the
process anyway, only "killall -9 java" helps. Well, beneath the fact
that my server has 2 gigabytes of ram, only 40MB are available after
starting tomcat. So, tomcat allocates 1.96 gigabytes of ram.

Question is: what is the maximum count of webapps, Tomcat is able to
handle? Or are there any other configuration hints?

System is
- Suse Linux 9.1
- 2GB of RAM
- 3.0 Ghz Machine
- JDK1.4.2_06 and JRE1.4.2_05 (same effect on every Java version)
- Tomcat 4.1.31 or Tomcat bundle with TDK-2.2 (TurbineDevelopmentKit)
..

This is an absolut urgent issue! Please reply asap .. 
Thx a lot ....




==============================================================================
TOPIC: request directory in server
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e5e516bd06745ac3
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 3 2004 12:50 am
From: Andrew Thompson  

On Fri, 03 Dec 2004 02:41:25 -0500, juicy wrote:

> How to do if client specify a path of a directory and server will tell the
> client that directory is exist or not

As a servlet or JSP?

// be careful how you use this..
File file = new File(
   getServletContext().getRealPath("/WEB-INF/passwords/") );
// then you can
if ( file.exists() ) {
  ...

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane




==============================================================================
TOPIC: Update your VM gentlemen, sun made a mistake.
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/0d5689b8341eb5c3
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 3 2004 3:20 am
From: "MaSTeR"  

http://sunsolve.sun.com/search/document.do?assetkey=1-26-57591-1&searchclause=






==============================================================================
TOPIC: Finding Date Difference
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b9df8bc4e9c538dd
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 3 2004 4:25 am
From: "Tim Ward"  

"Jacob" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> No there isn't. You can find the difference between two
> moments in time, but make sure the two are represented
> by Calendars of the same reference (i.e. TimeZone).
> The difference is measured in milliseconds so it still
> takes some effort to convert it to something useful
> depending on your context.

Oh yes, this is a fun problem regardless of language. Compare a date in July
with one in December - depending on where you live there's likely to be an
odd hour in the difference, because of seasonal clock changes, which can
really srew things up if you're not expecting it.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk






==============================================================================
TOPIC: Laptop with Websphere
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6926ee85fd956588
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 2 2004 12:54 pm
From: Chris Smith  

Raymond Lee <[EMAIL PROTECTED]> wrote:
> I am using IBM WSAD in work environment. It is a really good 
> IDE for Java web application development and I highly recommend it. 
> It has built-in refactoring features.

Yes, it inherits those from Eclipse, which it's based on.  The choice 
whether to use WSAD would depend on the use of additional tools provided 
beyond the base Eclipse platform, and a comparison to the available 
Eclipse plugins aside from WSAD.

> You can debug and test your
> applications locally by creating new server inside WSAD. If you use
> Tomcat (web applications) and JBoss (EJB applications), you need a separate
> IDE to do the coding.

Nope, WSAD (and Eclipse) can be used to develop for Tomcat and JBoss.  
The integration with WSAD probably isn't as good as it would be with 
WebSphere.  Using Tomcat or JBoss also saves you something like tens of 
thousands of dollars, at a minimum.

-- 
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation




==============================================================================
TOPIC: Struts: Proper way to escape "bean:write"
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a3ca9dcfd0d6654d
==============================================================================

== 1 of 2 ==
Date: Thurs, Dec 2 2004 5:57 pm
From: Sudsy  

Mike wrote:
> I'm using "bean:write" inside a hidden field's value.
> How can I escape strings so that I do not get errors?
> 
> Thanks
> 
> I have:
> 
> <html:hidden property="division" value="<bean:write
> name="scoreform_bean" property="division"/>"/>

Why not just this?
<html:hidden property="division" name="scoreform_bean"/>

Refer to the javadocs for more, vis:
<http://struts.apache.org/userGuide/struts-html.html#hidden>

-- 
Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development.




== 2 of 2 ==
Date: Thurs, Dec 2 2004 2:36 pm
From: [EMAIL PROTECTED] (Mike) 



I'm using "bean:write" inside a hidden field's value.
How can I escape strings so that I do not get errors?

Thanks


I have:



<html:hidden property="division" value="<bean:write
name="scoreform_bean" property="division"/>"/>




==============================================================================
TOPIC: JSP compilation time difference?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/71db042e9bc46415
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 2 2004 3:58 pm
From: [EMAIL PROTECTED] (jdhovland) 

I'm currently experiencing a problem while viewing a JSP page
immediately after restarting.  I log into the web front and view the
pages, wherein I experience a problem of expected data/object not
displaying. However, if I refresh the page the data is displayed. I'm
trying to fathom if this is due to an interaction between the
container and certain children compiling and displaying faster than
the inline content (being generated by a server-side application
method).  Has anyone else experienced something similiar?




==============================================================================
TOPIC: String.split()
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3362a3ab6d6ba8ba
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 3 2004 12:46 am
From: Starshine Moonbeam  

In article <[EMAIL PROTECTED]>, Ike 
([EMAIL PROTECTED]) dropped a +5 bundle of words...

> Can anyone please tell me why the following:
> 
> 
> String rxsl="1}{2}{3}{4}{5}{6}{7}{9}{10}{12}{13}{14}{15}{17";
>  String rsxla[] = rxsl.split("^.*\\}\\{.*$");
> 
> produces rxsla[0]="1}{2}{3}{4}{5}{6}{7}{9}{10}{12}{13}{14}{15}{17";
> 
> ???
> 
> and not
> rxsla[0]="1";
> rxsla[1]="2";
> ...
> rxsla[13]="17";
> 
> clearly I have something (simple and stupid) wrong -- but for the life of
> me, cannot find it here.

String[] something = new String[var]

if var = 2

something[0] is set to "null"
something[1] is set to "null"
something[2] is set to "null"

You could just assign them normally or you can declare the array values 
right off the bat 

String[] something = {"blue", "red", "orange"};


> Thanks, Ike
> 
> 
> 

-- 
Starshine Moonbeam
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM













==============================================================================
TOPIC: What the different between form ".this" and ".class"?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cc0d4d78310386ca
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 2 2004 10:15 pm
From: Starshine Moonbeam  

In article <[EMAIL PROTECTED]>, 
Bruce Sam ([EMAIL PROTECTED]) dropped a +5 bundle of words...

> Here ".class" not means the class file.For example,in
> "String.class.toString();".What does the ".class" and ".this" means?

this.
 means this particular instance of a variable.

int something = 0;
int i = 3;

public void setSomething(int i) {

this.something = i;

}

Your something, that was initialized to zero, is now set to 3.

something = 2;
is the same as
this.something = 2;

return something;
is the same as
return this.something;

-- 
Starshine Moonbeam
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM













==============================================================================
TOPIC: search(Object criteria) - to vague?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8c9970db76f9ab70
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 3 2004 3:56 am
From: Michael Borgwardt 
 

VisionSet wrote:

> I have a series of input components, text fields, check boxes etc in a
> series of view subclasses.
> When a user presses search, a method collects the inputs and forwards them
> to a controllers search(Object criteria) method.
> So it may get a String[] or perhaps a single String or maybe an Object[]
> with Boolean and String etc.
> Each view has its own controller so the search method is tailored to that
> view, but it is being called via an interface method search(Object criteria)
> Is there a better way to design this?

Sounds to me like you might be able to apply generics and type-parametrize the
search method.




==============================================================================
TOPIC: Sun's JMS API Tutorial: just hangs
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ffd2dbf4cfdc3ba9
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 2 2004 7:07 pm
From: Andrew Thompson  

On Thu, 02 Dec 2004 21:15:05 GMT, TC wrote:

> One other thing.  The orb.properties file has:
> 
> port=1050
> host=localhost
> 
> Should these be the same on both machines?

While you provided extra information that was useful, it was neither 
of the things I requested that you provide.  Please return to the 
link I gave (or *go* to the link I gave) and read it carefully.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane




==============================================================================
TOPIC: opinion on coding standard
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1f96751a1d317c1a
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 3 2004 2:08 am
From: Michael Borgwardt 
 

Tim Jowers wrote:
> Second, I've worked on lots of projects and the occassions for
> multiple people to touch the same source are alot less than imagined.
> Maybe two and possibly three people will ever change a block of code.

My experiences are quite different. This depends very much on the size
of the project, and the development process. For example, extreme
programming strongly discourages "code ownership".


> The two cases I've seen are persons leaves and newbie takes over.
> Formatting can help because the task of reading and understanding the
> code is daunting. Other case is fixing some bug. IME, stupid variable
> names and plain poor coding are MUCH harder to fix than weird
> formatting.

Variable names are *part* of the coding standards, and a more important one
than formatting.



==============================================================================

You received this message because you are subscribed to the Google
Groups "comp.lang.java.programmer" group.

To post to this group, send email to [EMAIL PROTECTED] or
visit http://groups-beta.google.com/group/comp.lang.java.programmer

To unsubscribe from this group, send email to
[EMAIL PROTECTED]

To change the way you get mail from this group, visit:
http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

To report abuse, send email explaining the problem to [EMAIL PROTECTED]

==============================================================================
Google Groups: http://groups-beta.google.com 

Reply via email to