Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21738

Re: The Revenge of the Geeks

Date 2013-01-26 09:12 -0500
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.os.linux.advocacy, comp.sys.mac.advocacy, comp.databases.oracle.server, comp.lang.java.programmer
Subject Re: The Revenge of the Geeks
References (10 earlier) <kdst63$eq8$1@news.albasani.net> <5101f8d3$0$293$14726298@news.sunsite.dk> <kdt1t7$m7e$1@news.albasani.net> <5103480d$0$284$14726298@news.sunsite.dk> <kdvppm$80q$1@news.albasani.net>
Message-ID <5103e445$0$288$14726298@news.sunsite.dk> (permalink)
Organization SunSITE.dk - Supporting Open source

Cross-posted to 4 groups.

Show all headers | View raw


On 1/26/2013 12:31 AM, BGB wrote:
> On 1/25/2013 9:05 PM, Arne Vajhøj wrote:
>> On 1/24/2013 11:31 PM, BGB wrote:
>>> I actually have little idea how DCOM or CORBA fits into this, as they
>>> are network protocols (like for doing RPC),
>>
>> They are not.
>>
>> CORBA is a component model that uses IIOP as network protocol.
>>
>> DCOM is a component model that uses ncacn_tcp as network protocol.
>>
>
> fair enough...
>
> I haven't really used either of them personally, FWIW.
>
> I will assume then that they are probably for inter-operation with other
> servers or similar?
>
> (though I guess client/server communication was mentioned earlier, like
> the end-user clients could call back to the server).

They are really fir inter-operation between components,

But it will typical be some application on a server that host those
components.

> FWIW: I once messed briefly with XML-RPC, but never really did much with
> it since then, although long ago, parts of its design were scavenged and
> repurposed for other things (compiler ASTs).

XML-RPC never really took off. Instead we got SOAP.

>>> but, for most client/server apps I am familiar with are more like:
>>> server runs somewhere (opening a listen port, for example, port 80 for
>>> HTTP, ...);
>>> user downloads and runs client;
>>> client opens socket to connect to server (such as TCP or UDP);
>>> then they share whatever data is relevant over the socket, using the
>>> relevant protocol (often application-specific).
>>>
>>> say, the protocol does structured message delivery, either using globs
>>> of XML (like Jabber/XMPP or similar), or maybe some specialized binary
>>> message format, and sometimes with a "multiplexer" to avoid clogging up
>>> TCP sockets with large messages (by breaking large messages into smaller
>>> pieces), ...
>>>
>>> then each end sees the messages, and handles them as appropriate (or
>>> reassembles the pieces, and handles complete messages when they arrive),
>>> ...
>>
>> Let me give you a very simple example.
>>
>> You want to allow browsers to connect to your code and be
>> told what the time is.
>>
>> You could write that in Java SE. You listen on port 80, accept
>> a connection, start a thread that parse the request and outout
>> the response.
>>
>> With Java EE you could write now.jsp:
>>
>> <%=new Date()%>
>>
>> and Java EE would handle sockets, threads, reading and writing for
>> you.
>>
>> The JSP get compiled to Java that get compiled to byte code that
>> get JIT compiled.
>>
>
> ok, so it does something sort of like a web-server then, but with Java
> taking the role of PHP or similar?
>
> I guess maybe that has to do with the whole "application server" thing,
> which was another part I didn't really understand what it was doing
> exactly...

A full Java EE server comes with a web container and an EJB container.

Tomcat etc. only comes with web container.

The web container part of Java EE is for writing web applications
and web services in Java EE similar to PHP and ASP.NET.

The EJB container part does not speak HTTP(S). Instead
it uses binary calls over sockets, message queues and
allows for custom TCP and UDP traffic (via JCA).

>>> I am confused as well...
>>>
>>> the whole Java SE vs Java EE thing has taken a turn into the
>>> confusing...
>>>
>>> the former makes sense, because that is what a person gets when they go
>>> download and install the JDK or the JRE.
>>>
>>> but the latter?... dunno. it sounds like something a bit different (not
>>> just an alternate version of the JDK or JRE).
>>
>> Correct.
>>
>> Let us say that the Java SE model is:
>> - you write some classes and build them with JDK
>> - you start the JVM with a main method in one of your classes
>> - your main code calls some code
>>
>> The Java EE model is:
>> - you start the JVM with the Java EE app server
>> - you write some classes and build them with JDK
>> - you deploy your classes (no main method) to the server
>> - the server calls your code
>>
>> In Java SE terms you can consider the Java EE server to be the
>> program and your Java EE application to be a plugin to the
>> server.
>>
>
> ok.
>
> this much makes sense at least.

The concept is sometimes call the Hollywood
Principle.

Arne

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

The Revenge of the Geeks Ramon F Herrera <ramon@conexus.net> - 2013-01-22 06:41 -0800
  Re: The Revenge of the Geeks Melzzzzz <mel@zzzzz.com> - 2013-01-22 14:55 +0000
    Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-22 22:29 -0500
  Re: The Revenge of the Geeks Ramon F Herrera <ramon@conexus.net> - 2013-01-22 06:58 -0800
  Re: The Revenge of the Geeks joel garry <joel-garry@home.com> - 2013-01-22 08:54 -0800
    Re: The Revenge of the Geeks cipher <cipher@nospamforme.org> - 2013-01-23 00:07 +0000
      Re: The Revenge of the Geeks Lew <lewbloch@gmail.com> - 2013-01-22 17:02 -0800
        Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-22 22:23 -0500
        Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-22 21:30 -0600
      Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-22 22:26 -0500
        Re: The Revenge of the Geeks cipher <cipher@nospamforme.org> - 2013-01-24 00:51 +0000
          Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-23 20:01 -0500
            Re: The Revenge of the Geeks cipher <cipher@nospamforme.org> - 2013-01-24 01:10 +0000
              Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-23 20:20 -0500
                Re: The Revenge of the Geeks cipher <cipher@nospamforme.org> - 2013-01-24 12:15 +0000
                Re: The Revenge of the Geeks "Ezekiel" <zeke@nosuchemail.com> - 2013-01-24 07:37 -0500
                Re: The Revenge of the Geeks lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-24 12:55 +0000
                Re: The Revenge of the Geeks cipher <cipher@nospamforme.org> - 2013-01-24 14:40 +0000
                Re: The Revenge of the Geeks "Ezekiel" <zeke@nosuchemail.com> - 2013-01-24 10:01 -0500
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 10:24 -0500
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 10:35 -0500
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 10:56 -0500
                Re: The Revenge of the Geeks Stuart <DerTopper@web.de> - 2013-01-30 23:54 +0100
  Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-22 22:32 -0500
  Re: The Revenge of the Geeks Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2013-01-22 21:33 -0800
    Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-23 00:21 -0600
      Re: The Revenge of the Geeks Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-23 05:25 -0400
        Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-23 04:35 -0600
          Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-23 20:17 -0500
            Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-23 22:47 -0600
              Re: The Revenge of the Geeks Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-24 06:03 -0400
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-24 04:44 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 11:10 -0500
                Re: The Revenge of the Geeks lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-24 10:49 +0000
              Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 11:06 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-24 16:10 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 17:30 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-24 17:44 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 17:49 -0500
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 17:58 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-24 21:10 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 22:15 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-24 22:31 -0600
                Re: The Revenge of the Geeks Lew <lewbloch@gmail.com> - 2013-01-24 23:57 -0800
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-25 22:05 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-25 23:31 -0600
                Re: The Revenge of the Geeks Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-26 07:25 -0400
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-26 12:40 -0600
                Re: The Revenge of the Geeks Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-26 21:34 -0400
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-26 22:06 -0500
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-26 09:12 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-26 14:47 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-26 16:23 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-26 15:24 -0600
                Re: The Revenge of the Geeks Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-26 21:47 -0400
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-26 22:11 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-26 22:54 -0600
                Re: The Revenge of the Geeks Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-27 07:46 -0400
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-27 12:47 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-27 19:40 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-27 21:16 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-29 22:05 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-30 03:22 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 20:12 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-31 02:22 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 20:12 -0500
                Re: The Revenge of the Geeks Gene Wirchenko <genew@telus.net> - 2013-02-04 14:09 -0800
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-02-04 18:28 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-02-05 01:57 -0600
                Re: The Revenge of the Geeks Gene Wirchenko <genew@telus.net> - 2013-02-05 09:55 -0800
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-27 19:37 -0500
                Re: The Revenge of the Geeks lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-27 10:38 +0000
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-27 13:09 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-27 19:47 -0500
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-27 19:45 -0500
                Re: The Revenge of the Geeks Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-26 07:26 -0400
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-26 13:22 -0600
                Re: The Revenge of the Geeks Lew <lewbloch@gmail.com> - 2013-01-26 12:57 -0800
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-26 16:15 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-26 22:04 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-27 00:38 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-27 19:35 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-27 21:04 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-26 16:34 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-26 17:04 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-26 22:14 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-27 01:38 -0600
                Re: The Revenge of the Geeks Martin Gregorie <martin@address-in-sig.invalid> - 2013-01-27 13:13 +0000
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-27 13:59 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 22:17 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-24 23:06 -0600
                Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-25 22:10 -0500
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-26 00:31 -0600
                Re: The Revenge of the Geeks Lew <lewbloch@gmail.com> - 2013-01-24 19:42 -0800
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-24 23:22 -0600
                Re: The Revenge of the Geeks Lew <lewbloch@gmail.com> - 2013-01-25 00:03 -0800
                Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-25 02:41 -0600
                Re: The Revenge of the Geeks Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-24 19:31 -0400
              Re: The Revenge of the Geeks Lew <lewbloch@gmail.com> - 2013-01-24 11:30 -0800
        Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-23 20:13 -0500
          Re: The Revenge of the Geeks Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-24 15:31 -0400
            Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 14:37 -0500
    Re: The Revenge of the Geeks Arne Vajhøj <arne@vajhoej.dk> - 2013-01-23 20:09 -0500
  Re: The Revenge of the Geeks Roedy Green <see_website@mindprod.com.invalid> - 2013-01-24 04:30 -0800
    Re: The Revenge of the Geeks BGB <cr88192@hotmail.com> - 2013-01-25 02:45 -0600
      Re: The Revenge of the Geeks Roedy Green <see_website@mindprod.com.invalid> - 2013-01-27 23:33 -0800

csiph-web