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

Today's topics:

* Mouse in a applet - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/53a19cc14a2ed042
* Refreshing JTree - 3 messages, 3 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/492f41aedabbda5
* file duplication for a given user - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/47a3fed6f926897c
* Programming Languages for the Java Virtual Machine - 3 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dafae86cd33e6e7d
* database or object design first? - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ff1d14124cf18dd8
* Website for J2ME-aware hardware - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/97590ce422d382f9
* JFormattedTextField.AbstractFormatter - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5444877878231368
* CACAO JavaVM 0.91 released under GPL - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/188c96937eb4d1c4
* ConnectionPoolDataSource + MM MySQL + Tomcat4 - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2f9cbf19893d5eea
* Writing an applet - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/65200da724cd6649
* Splitting a full-duplex socket - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/51615aee9a18c299
* LAMP & J2EE as opposed to LAMP vs J2EE - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/33c89ba6522432dc

==============================================================================
TOPIC: Mouse in a applet
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/53a19cc14a2ed042
==============================================================================

== 1 of 2 ==
Date: Thurs, Dec 23 2004 7:35 pm
From: IchBin  

Andrew Thompson wrote:
> On Thu, 23 Dec 2004 13:18:18 -0500, IchBin wrote:
> 
> 
>>Be nice to see your Square.java to complete a compilation.
> 
> 
> To the OP.  I agree, check here for tips on examples.
> <http://www.physci.org/codes/sscce.jsp>
> 
> It would also be nice if you (IchBin) trimmed some of the 
> 55 lines of the message to which you are responding.
> <http://www.physci.org/codes/javafaq.jsp#netiquette>
> 
Caught again.. Keep on forgetting about the 20mph speed limit..

Sorry

IchBin
__________________________________________________________________________

'The meeting of two personalities is like the contact of two chemical 
substances:
  if there is any reaction, both are transformed.'
-  Carl Gustav Jung,  (1875-1961),  psychiatrist and psychologist



== 2 of 2 ==
Date: Thurs, Dec 23 2004 8:43 pm
From: "Michael Wong"  

"Mark" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I am trying to make an applet so that when my mouse enters the applet
> box, the text will hover around it until it leaves the applet box. I
> have tried using loops to attain this but I have had no luck. Can
> someone please explain how I can do this?


You'll want to have your applet implement the MouseMotionListener interface 
and use the "mouseMoved(MouseEvent)" method like you're using the 
"mouseEntered" method now.  Remember to use the "mouseExited" method (of 
MouseListener interface) if you want to clear the text when the mouse leaves 
the applet.

You should pay attention to the other posts about posting your code.  You 
should almost never post something that doesn't compile.  More importantly, 
learn to use the Java documentation and the Java tutorials found at 
http://java.sun.com






==============================================================================
TOPIC: Refreshing JTree
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/492f41aedabbda5
==============================================================================

== 1 of 3 ==
Date: Thurs, Dec 23 2004 4:45 pm
From: "Arun"  


> Would it be possible to make a new TreeModel from a file and when
that's
> done apply it to the JTree?
>
> I'm not sure if that's useful, but here it is anyway:
>
<http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html>
>
> Good luck! :)
>
> --
> -------------
> - ByteCoder -           ...I see stupid people
> -------------
>                     Curiosity *Skilled* the cat


I've already read that tutorial.
Would it be possible for you to give me more detail on what you said
before that please?




== 2 of 3 ==
Date: Fri, Dec 24 2004 3:54 am
From: ByteCoder  

Arun wrote:
>>Would it be possible to make a new TreeModel from a file and when
> 
> that's
> 
>>done apply it to the JTree?
>>
>>I'm not sure if that's useful, but here it is anyway:
>>
>> <http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html>
[...]
> I've already read that tutorial.
> Would it be possible for you to give me more detail on what you said
> before that please?

Unfortunately not. The TreeModel interface only has get methods. I 
didn't see any set methods.

I hoped it would work like the DefaultListModel and the JList, but 
unfortunately, it doesn't. :(

-- 
-------------
- ByteCoder -           ...I see stupid people
-------------
                    Curiosity *Skilled* the cat



== 3 of 3 ==
Date: Thurs, Dec 23 2004 8:27 pm
From: "Michael Wong"  

You *should* be using a TreeModel, but if you want to use the code you have, 
you should be removing the old tree from the frame, then adding the new one 
in it's place.  Remember that you're reassigning the variable "buildTree", 
but the frame still has a reference to the old one, which it will continue 
to display until you tell it otherwise...

class Foo {
    JFrame myFrame;
    JTree buildTree;

    void loadTree(String filename) {
        myFrame.getContentPane().remove(buildTree);
        buildTree = new XMLTree(filename);
        myFrame.getContentPane().add(buildTree);
        myFrame.validate();
    }
}


"Arun" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> My program starts by choosing an xml file, traversing it etc into a
> JTree, adding the JTree to a frame then showing this on the screen.
>
> The traversing is done in an extension of JTree named XMLTree.
> The XMLTree is created using for example
> JTree buildTree = XMLTree(filename);
>
> That is all and well.
>
> But when i wish to use another file, i load it in again by using the
> command
> buildTree = XMLTree(filename);
>
> However the tree doesnt refresh. How can i get the tree to refresh with
> the new data?
> 






==============================================================================
TOPIC: file duplication for a given user
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/47a3fed6f926897c
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 23 2004 7:52 pm
From: Albretch  



 Depending on the users the files they have access to differ and in some
cases they might even be the same ones.

 Do you know of any java application/libraries to detect duplicate files?







==============================================================================
TOPIC: Programming Languages for the Java Virtual Machine
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dafae86cd33e6e7d
==============================================================================

== 1 of 3 ==
Date: Fri, Dec 24 2004 12:55 am
From: "Tony Morris"  


<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > Your programming language for the JAVA Virtual Machine would be the
> Java
> > programming language.
>
>
> http://flp.cs.tu-berlin.de/~tolk/vmlanguages.html
> What does it mean here?
>

They are programming languages that produce Java bytecode (refer to the JVM
Specification).
The Java Programming Language (refer to the Java Language Specification)
compiles .java source files to Java .class files that contain Java bytecode.
Other programming languages compile to Java .class files that contain Java
bytecode too.

-- 
Tony Morris
http://xdweb.net/~dibblego/





== 2 of 3 ==
Date: Fri, Dec 24 2004 1:50 am
From: "Ann"  


"Tony Morris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > > Your programming language for the JAVA Virtual Machine would be the
> > Java
> > > programming language.
> >
> >
> > http://flp.cs.tu-berlin.de/~tolk/vmlanguages.html
> > What does it mean here?
> >
>
> They are programming languages that produce Java bytecode (refer to the
JVM
> Specification).
> The Java Programming Language (refer to the Java Language Specification)
> compiles .java source files to Java .class files that contain Java
bytecode.
> Other programming languages compile to Java .class files that contain Java
> bytecode too.
>
> --
> Tony Morris
> http://xdweb.net/~dibblego/
>
Is it not true that of the Java byte codes produced
some are general purpose, but many are Java specific?
For example the byte codes generated to instantiate
a new Java class object probably would not work for
another language like C++?





== 3 of 3 ==
Date: Fri, Dec 24 2004 2:30 am
From: "Tony Morris"  

"Ann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "Tony Morris" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > > Your programming language for the JAVA Virtual Machine would be the
> > > Java
> > > > programming language.
> > >
> > >
> > > http://flp.cs.tu-berlin.de/~tolk/vmlanguages.html
> > > What does it mean here?
> > >
> >
> > They are programming languages that produce Java bytecode (refer to the
> JVM
> > Specification).
> > The Java Programming Language (refer to the Java Language Specification)
> > compiles .java source files to Java .class files that contain Java
> bytecode.
> > Other programming languages compile to Java .class files that contain
Java
> > bytecode too.
> >
> > --
> > Tony Morris
> > http://xdweb.net/~dibblego/
> >
> Is it not true that of the Java byte codes produced
> some are general purpose, but many are Java specific?
> For example the byte codes generated to instantiate
> a new Java class object probably would not work for
> another language like C++?

That question appears to be way out of context.
I can only suggest having a look at the VM spec.

-- 
Tony Morris
http://xdweb.net/~dibblego/







==============================================================================
TOPIC: database or object design first?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ff1d14124cf18dd8
==============================================================================

== 1 of 2 ==
Date: Fri, Dec 24 2004 1:57 am
From: Stephen Riehm  

The Abrasive Sponge wrote:
 > fishfry wrote:

 >> I'm building a relatively small database-driven app.

 > Not me, objects first! This is particularly useful in knowing what will
 > be associations and what will be many-many relationships.  In my
 > opinion, you will be working with objects more that the database as a
 > programmer.  In addition to what I wrote, mapping tools like Hibernate
 > can do the work of building the database schema (with referential
 > integrity) automatically, so as a developer, you are moving more and
 > more from the database side to the object oriented side.

Sounds reasonable, and is pretty much the approach I've taken for my first
db-driven java app. Now I'm trying to build a dao bridge between a bunch of
inter-related classes and a similar, but different set of tables. (ie: the
objects combine data from another app (provided by read-only tables, whose
structure is fixed) and enhance that data with data from my app, which 
needs to
be stored in other tables.) If possible, I'd also like the app's objects 
not to
know anything about SQL :-)

So basically I want to merge the data from some classes into a single table,
and retrieve the contents of some classes from several tables.
Are there any tutorials for building abstraction layers like this?

I've seen this mentioned often, in terms of patterns (dao, bridge) but I've
seen very little code.

 >> Any and all viewpoints and suggestions for further reading are welcome.

likewise for me ;-)

Thanks,

Steve



== 2 of 2 ==
Date: Thurs, Dec 23 2004 5:57 pm
From: [EMAIL PROTECTED] 

fishfry wrote:
> I'm building a relatively small database-driven app. I'm accustomed
to
> first developing the schema and e/r (entity-relationship) model, then

> writing the code against the db.
>
> I'm relatively new to the OO way of doing things. Am I really
supposed
> to ignore db design and do my object design first, then use an
> object-relational mapping layer and never actually do any db design?
>
> Or is this more theory than practice, and real-world developers still
do
> their db schema design first?
>
> Any and all viewpoints and suggestions for further reading are
welcome.

Regardless of whether you use OO or not,

1. Determine the Outputs and the Inputs required to create them.
2. Determine what data will be retained in your data base.
3. Normalize the retained data.
4. Create your interface and its supporting code to interface with the
retained data.

Regards
Robert





==============================================================================
TOPIC: Website for J2ME-aware hardware
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/97590ce422d382f9
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 23 2004 8:42 pm
From: Dave Glasser  

[EMAIL PROTECTED] (Eli) wrote on 22 Dec 2004 18:25:18 -0800 in
comp.lang.java.programmer:

>Hi all,
>I've been thinking lately in buying a J2ME aware mobile phone. After a
>basic search, I failed to find a website that shows some sort of
>listing of all J2ME-aware hardware (mobile phones, PDAs, ...).
>Do you know of such a website?

http://www.jbenchmark.com


-- 
Check out QueryForm, a free, open source, Java/Swing-based
front end for relational databases.

http://qform.sourceforge.net

If you're a musician, check out RPitch Relative Pitch
Ear Training Software.

http://rpitch.sourceforge.net




==============================================================================
TOPIC: JFormattedTextField.AbstractFormatter
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5444877878231368
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 24 2004 2:29 am
From: "VisionSet"  

How do I create my own JFormattedTextField.AbstractFormatter
to handle Strings where less than or more than a certain length is invalid?

TIA
-- 
Mike W






==============================================================================
TOPIC: CACAO JavaVM 0.91 released under GPL
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/188c96937eb4d1c4
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 23 2004 9:40 pm
From: [EMAIL PROTECTED] (Andreas Krall) 

CACAO JVM 0.91 released under GPL:

http://www.cacaojvm.org/

CACAO is a JIT compiler for Java. The CACAO project started as a
research JavaVM to explore new implementation techniques. The first
version for the Alpha was released in February 1997 as a binary. After
1998 the development nearly stopped. Since two years we are actively
working on CACAO again and are proud to announce the first source
release under the GPL. CACAO is still under development and there
are still some steps to version 1.0 left. But it is already very
usable for must applications (only preliminary AWT support).

Currently CACAO is able to run on Alpha, MIPS (64-bit), x86, x86-64
and PowerPC (32-bit) architectures. Other architectures and
optimizations like inlining and linear scan register allcoation are
under developement.
--
[EMAIL PROTECTED]        Andreas Krall
www.complang.tuwien.ac.at/andi/   Inst. f. Computersprachen, TU Wien
tel: (+431) 58801/18511           Argentinierstr. 8/4/1851
fax: (+431) 58801/18598           A-1040 Wien     AUSTRIA     EUROPE




==============================================================================
TOPIC: ConnectionPoolDataSource + MM MySQL + Tomcat4
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2f9cbf19893d5eea
==============================================================================

== 1 of 1 ==
Date: Thurs, Dec 23 2004 6:42 pm
From: [EMAIL PROTECTED] 

I have encountered very similar problems / questions trying to get this
to work with Tomcat 5.0.28 and MySQL or Oracle.  I have probably spent
two weeks getting this to work and JUST NOW got it to work while
preparing followup questions to your question.  Searching for
web/newsgroup help on this topic seems to turn up contradictory
examples.

Approach #1
===========
1) define the core connection attributes in a <Resource> and
<ResourceParams> object in the server.xml config of Tomcat
and use javax.sql.DataSource as the <Resource> type and
javax.sql.DataSource as the <factory> name in the
<ResourceParams>
2) define a <resource-ref> object in your servlet web.xml
config file that points to the info in the server.xml file
3) in your servlet's startup code, retrieve the <resource-ref>
from the web.xml file as a DataSource object and preserve
it as a static variable for the servlet
4) in functions needing DB access, use the DataSource variable
to create a Connection
5) use the connection to do your SQL voodoo and process results
6) close your result sets, callable statements and connections to
return the connection to the pool managed by Tomcat and
avoid memory leaks

Approach #2
===========
1) define the core connection attributes in a <Resource> and
<ResourceParams> object in the server.xml config of Tomcat
and use javax.sql.ConnectionPoolDataSource as the <Resource> type
and
javax.sql.ConnectionPoolDataSource (???) as the <factory> name in
the
<ResourceParams>
2) define a <resource-ref> object in your servlet web.xml
config file that points to the info in the server.xml file
3) in your servlet's startup code, retrieve the <resource-ref>
from the web.xml file as a ConnectionPoolDataSource object then
use .getPooledConnection to create a PooledConnection variable
and preserve that PooledConnection as a static variable for the
servlet
4) in functions needing DB access, use the PooledConnection variable
to create a Connection via .getConnection()
5) use the connection to do your SQL voodoo and process results
6) close your result sets, callable statements and connections to
return the connection to the pool managed by Tomcat and
avoid memory leaks

Approach #3
===========
(same as #2 but use vendor specific ____ConnectionPoolDataSource and
____ConnectionPool classes instead of the generic Database Connection
Pool (DBCP) classes provided with Tomcat / Java.

I have found that if you

1) stick with using the generic DataSource class when defining
your connection attributes in server.xml and web.xml
2) stick with using the generic DataSource class in your startup
function to retrieve the attributes for use within the app
3) do not try to specify a <factory> for the DataSource in
server.xml
4) make sure you have commons-dbcp-1.2.1.jar and commons-pool-1.2.jar
in your $CATALINA_HOME/common/lib directory so Tomcat can see them
and in your CLASSPATH so your classes will compile (NOTE: your
version of Tomcat may have older versions of these files but the
names should be similar)

things seem to work (at least with MySQL, still waiting to try this
with Oracle at work).

My code snippets are provided below if they help.  I HIGHLY recommend
you include all of the advanced settings in your <ResourceParams>
configuration even if you don't think you need them right away.  You'll
probably need them eventually and you'll have them all commented and
available without more hunting later.


(signed)
[EMAIL PROTECTED]

PS -- these config / code samples look much better in long line format
rather than the compressed format on the newsgroup viewer...

CONTENTS IN web.xml
===================
<resource-ref>
<description>Reference to Test MySQL Database for Connection Pool
based access</description>
<res-ref-name>jdbc/mysqlpool2</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

CONTENTS in server.xml
======================
<Resource name="jdbc/mysqlpool2" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/mysqlpool2">
<parameter> <name>username</name>
<value>myusername</value>              </parameter>
<parameter> <name>password</name>
<value>mypassword</value>              </parameter>
<parameter> <name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value> </parameter>
<parameter> <name>url</name>
<value>jdbc:mysql://localhost:3306/genapp</value> </parameter>
<!-- maxActive = max # of active connections to allow in
pool (0=no limit)  -->
<!-- maxIdle   = max # of idle connections to allow in
pool (0=no limit)    -->
<!-- maxWait   = max time in ms to wait for DB reply
before returning error -->
<!-- removeAbandoned = true means track leaked /
abandonded connections and kill them -->
<!-- removeAbandonedTimeout = time to wait before killing
old connections -->
<parameter> <name>maxActive</name>       <value>10</value>
</parameter>
<parameter> <name>maxIdle</name>         <value>30</value>
</parameter>
<parameter> <name>maxWait</name>
<value>10000</value>                 </parameter>
<parameter> <name>removeAbandoned</name>
<value>true</value>                  </parameter>
<parameter> <name>removeAbandonedTimeout></name>
<value>300</value>           </parameter>
<parameter> <name>logAbandoned</name>
<value>true</value>                  </parameter>
</ResourceParams>

STARTUP CODE IN MY SERVLET CLASS
================================
try {
javax.naming.Context initialCtx = new InitialContext();
DataSource mysqlpoolDS = (DataSource)
initialCtx.lookup("java:comp/env/jdbc/mysqlpool2");
System.out.println("myapp loadConfiguration -- retrieved DataSource
jdbc/mysqlpool2");
Connection localConnection = mysqlpoolDS.getConnection();
System.out.println("myapp loadConfiguration -- opened local
connection from pool to jdbc/mysqlpool");

try {
PreparedStatement myselect =
localConnection.prepareStatement("select * from userlogins");
ResultSet results = null;
results = myselect.executeQuery();
if (results.first()) {
System.out.println("OK: "+ results.getInt   ("login_id") + " "
+ results.getString("login") + " "
+ results.getString("firstname") );
}
}
catch (Exception theE) {
System.out.println("saw Exception doing SELECT:
"+theE.getMessage());
}
localConnection.close();
}
catch (Exception theE) {
System.out.println("myapp loadConfiguration -- Exception for
DataSource jdbc/mysqlpool2: " + theE);
}

catalina.out ENTRIES CONFIRMING POOLING IS WORKING
==================================================
myapp loadConfiguration -- retrieved DataSource jdbc/mysqlpool2
AbandonedObjectPool is used
([EMAIL PROTECTED])
LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 300
extauth loadConfiguration -- opened local connection from pool to
jdbc/mysqlpool
OK: 1 joeblow Joe





==============================================================================
TOPIC: Writing an applet
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/65200da724cd6649
==============================================================================

== 1 of 2 ==
Date: Fri, Dec 24 2004 3:00 am
From: Andrew Thompson  

On Thu, 23 Dec 2004 18:05:30 -0500, GaryM wrote:

> Andrew Thompson <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
>> 
>> Which news-clients does that not work for?
..
> Which ones does it work for is a more valid question.

All right, we'll play your game..
"Every single one on earth."  

Prove me wrong by naming one that does not.

> Two perhaps?

The three I have thus far tested, and bring you back to the
specific question.  Can you name one that doesn't?

>> How do I turn off the word wrap in your news reader?
..
> Why do you need to?
> 
> http://groups-beta.google.com/group/rec.audio.opinion/browse_thread/thread/d0812f654e5a9fd3/d88e0f9c136dd4b3?q=usenet+%22long+urls%22&_done=%2Fgroups%3Fq%3Dusenet+%22long+urls%22%26hl%3Den%26lr%3D%26sa%3DN%26tab%3Dwg%26&_doneTitle=Back+to+Search&&d#d88e0f9c136dd4b3

Which breaks in my newsreader.  (You forgot to turn off word-wrap
in my reader, which is a good thing, 'cos that would have pissed 
me off no end.)

>> Which disappear after a few days.
..
> Sure it's volatile. So is the URL though less so. 

Good URL's don't change, and even bad ones are much more permanent 
than 'tinyurl'.

-- 
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 2 ==
Date: Thurs, Dec 23 2004 11:15 pm
From: GaryM  

Andrew Thompson <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 


> 
> All right, we'll play your game..
> "Every single one on earth."  

Ah you got me! You checked them all and here I am telling fairy 
stories. Let's hear more about this ....

> 
> Prove me wrong by naming one that does not.
> 
> The three I have thus far tested, and bring you back to the
> specific question.  Can you name one that doesn't?
> 

"Every single one on earth" eh? Three? And after three you feel it 
worthy to spout off some new usenet rule? 

OK, I'll play now ... um, here's one where it does not work: Xnews. 
It's pretty popular and your new rule won't help me, so is it still 
worth your taking umbrage at those who don't follow it for your three 
news readers?

> 
<LONG URL SNIPPED>
> 
> Which breaks in my newsreader.  (You forgot to turn off word-wrap
> in my reader, which is a good thing, 'cos that would have pissed 
> me off no end.)
>

Why are you lying? I have 40tude on another machine and although it 
wrapped it at the edge of the window, clicking integrity was 
maintained. Sheesh! If I had let Xnews wrap it, the URL would be broken 
in 40tude and every other newsreader. So now back to you again, show me 
a newsreader where my long url won't work? 

> 
> Good URL's don't change, and even bad ones are much more permanent
> than 'tinyurl'.
> 

And that's a fact? Good URLs don't change? Hey, good luck with that 
one. Oh and FWIW, makeashorterlink.com preserves its links indefinitely 
and tinyurl says it does too. Seems like you have another reality going 
here on a few levels. Regardless, surrounding with < > is not a 
universal solution. You should either test more than three newreaders 
and at least get a decent base to support your assertion, or stop 
spouting it off. 




==============================================================================
TOPIC: Splitting a full-duplex socket
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/51615aee9a18c299
==============================================================================

== 1 of 2 ==
Date: Fri, Dec 24 2004 3:42 am
From: Esmond Pitt  

ByteCoder wrote:
> Just a guess, but is it possible to run a non-blocking serversocket on 
> the server and set it te readable and writeable.

This is not only impossible but meaningless.




== 2 of 2 ==
Date: Fri, Dec 24 2004 4:20 am
From: "xarax"  

"Esmond Pitt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> ByteCoder wrote:
> > Just a guess, but is it possible to run a non-blocking serversocket on
> > the server and set it te readable and writeable.
>
> This is not only impossible but meaningless.

A server socket does not read or write. It listens
for a connection request, then an accept() will
create a new socket for reading and writing. However,
the server socket can be non-blocking and selected
via select() when a connection request is pending.
The Java way of doing a select() is with the SelectionKey
thing.






==============================================================================
TOPIC: LAMP & J2EE as opposed to LAMP vs J2EE
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/33c89ba6522432dc
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 24 2004 12:06 am
From: fishfry  

In article <[EMAIL PROTECTED]>,
 "Ross M. Greenberg" <[EMAIL PROTECTED]> wrote:

> I'm considering starting off discussing LAMP and its interpretive nature as
> opposed to J2EE's compiled nature.........
> 

Sometimes the P is interpreted as Perl, in which case one can run 
mod_perl. With mode_perl, Perl interpreter runs inside the Apache 
webserver. Everything runs inside a single process, just as servlets 
execute in a JVM in a servlet container.

It's not properly a language issue to compare a containered environment 
to a CGI environment. One could in theory write CGI programs in Java, in 
which each HTTP request would cause the webserver to spawn a new JVM. 
Needless to say this wouldn't perform very well.



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

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