Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Application written with Servlets

Reply
Thread Tools

Application written with Servlets

 
 
John
Guest
Posts: n/a
 
      01-17-2007
Hi all:

I used to use Java quite a bit but it was a while ago and before J2EE became
mainstream. A customer presented me with a situation recently where he said
they have written their entire application using servlets, and I am
wondering if someone out there can tell me if this is an acceptable
approach, or would it be better to use EJBs? Please note my EJB experience
is nil, but I did work with servlets a bit, I am just not sure if servlets
alone should be used to build a viable solution.

Thanks.

John.

--
This message sent from Windows Vista Ultimate
http://mscrmguy.blogspot.com/

 
Reply With Quote
 
 
 
 
Daniel Pitts
Guest
Posts: n/a
 
      01-17-2007

John wrote:
> Hi all:
>
> I used to use Java quite a bit but it was a while ago and before J2EE became
> mainstream. A customer presented me with a situation recently where he said
> they have written their entire application using servlets, and I am
> wondering if someone out there can tell me if this is an acceptable
> approach, or would it be better to use EJBs? Please note my EJB experience
> is nil, but I did work with servlets a bit, I am just not sure if servlets
> alone should be used to build a viable solution.
>
> Thanks.
>
> John.
>
> --
> This message sent from Windows Vista Ultimate
> http://mscrmguy.blogspot.com/

Most of the webapps we create at my work are created without EJBs.

Generally, Servlets aid in writing applications, but instead
applications are written as Servlets.

Many of our apps are created using Spring, Tiles, Hibernate/iBatis,
JSPs, etc...

So, yes, it is possible to do things without EJB. EJB's tend to be
extremely heavyweight from what I hear, but I don't have any real
experience, so I can't give you any more opinion than that.

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      01-20-2007
John wrote:
> I used to use Java quite a bit but it was a while ago and before J2EE
> became mainstream. A customer presented me with a situation recently
> where he said they have written their entire application using servlets,
> and I am wondering if someone out there can tell me if this is an
> acceptable approach, or would it be better to use EJBs? Please note my
> EJB experience is nil, but I did work with servlets a bit, I am just not
> sure if servlets alone should be used to build a viable solution.


EJB is not a replacement for servlets.

If you need a web GUI then servlets is a possibility, but
nowadays I would recommend JSP with JSF and possible
an AJAX taglib.

If you have big transactional and scalability requirements,
then consider putting EJB's behind your web app.

Arne
 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      01-20-2007
Arne Vajh°j wrote:
> EJB is not a replacement for servlets.
>
> If you need a web GUI then servlets is a possibility, but
> nowadays I would recommend JSP with JSF and possible
> an AJAX taglib.


JSP are really servlets, but that aside, there is still a need for a few
servlets in many Web projects. If you follow the MVC pattern, there is a
controller servlet (possibly provided by the Struts framework, e.g.), there
might be a few helper servlets for special purposes.

> If you have big transactional and scalability requirements,
> then consider putting EJB's behind your web app.


EJBs scare me, but Java 6 offers hope to make it easier. But that only has to
do with the implementation details - they clearly serve a useful architectural
niche.

- Lew
 
Reply With Quote
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      01-23-2007
Lew wrote:
> Arne Vajh°j wrote:
>> EJB is not a replacement for servlets.
>>
>> If you need a web GUI then servlets is a possibility, but
>> nowadays I would recommend JSP with JSF and possible
>> an AJAX taglib.

>
> JSP are really servlets,


Yes. Implementation wise/internally. Which is very relevant
for the question about comparing performance og JSP and servlet.
Not so relevant if the question is about what to write.

> but that aside, there is still a need for a few
> servlets in many Web projects. If you follow the MVC pattern, there is a
> controller servlet (possibly provided by the Struts framework, e.g.),
> there might be a few helper servlets for special purposes.


It is rather rare to write those one self now a days.

JSF comes with a controller servlet as well.

The only good usage I can see for a user written servlet
is one for displaying graphics.

>> If you have big transactional and scalability requirements,
>> then consider putting EJB's behind your web app.

>
> EJBs scare me, but Java 6 offers hope to make it easier. But that only
> has to do with the implementation details - they clearly serve a useful
> architectural niche.


Java 6 does not have anything about EJB.

Do you mean J2EE (or JEE) 5 ?

EJB is a rather big niche in J2EE.

Arne
 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      01-23-2007
Arne Vajh°j wrote:
>> EJBs scare me, but Java 6 offers hope to make it easier. But that only
>> has to do with the implementation details - they clearly serve a
>> useful architectural niche.

>
> Java 6 does not have anything about EJB.
>
> Do you mean J2EE (or JEE) 5 ?


Uh, right. I tend to lump the two together in my mind. I was referring to the
elimination of that home/remote interface mechanism and the other streamlining
that's been done to EJBs in *JEE 5*.

> EJB is a rather big niche in J2EE.


Yes, big, useful, and now somewhat less scary.

- Lew
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generally, are the programs written by C++ slower than written by C10% ? KaiWen C++ 102 09-14-2011 11:12 PM
Java servlets: Hi All! I want to display xml file in browser using servlets datta.saru Software 0 05-15-2006 03:30 PM
Re: Can a usercontrol written in C# be used in Web Forms that is written in VB.Net? Steve C. Orr, MCSD ASP .Net 1 08-24-2003 12:06 AM
Re: servlets - application level object Phil Hanna Java 0 07-02-2003 02:37 AM
Re: servlets - application level object Wendy S Java 0 07-01-2003 01:07 AM



Advertisments