aspose file tools*
The moose likes JSP and the fly likes java Beans, do they still use them? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "java Beans, do they still use them?" Watch "java Beans, do they still use them?" New topic
Author

java Beans, do they still use them?

william chaple
Ranch Hand

Joined: Mar 08, 2013
Posts: 125
Are java web applications still in demand in todays world? Java Beans as controllers ect.

httpserverletrequest request...ect
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

Are you kidding? That's where the vast majority of Java jobs are.

As for "beans as controllers", no. That's a pattern that died out at the turn of the millennium. Java beans themselves are still very central to Java web applications, just not misused as controllers.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 999
    
  13

Unless you are talking about the similarly named but completely different Enterprise Java Beans (EJBs), in which case the answer is, not so much anymore. They've been largely supplanted by Spring and JPA which are generally easier to use and don't require an EJB container like Websphere.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 176

the question is only mentioning java-beans and clearly generates confusion... perhaps POJOs and EJBs was a better vocabulary to narrow down the question's context.

Anyway, about Spring/JPA and EJBs, I think we can discuss about it for long... JPA replaced Entity EJB, however Session EJBs are still here and are easier to use since EJB 3.0... now with 3.1 there are more features.
I think they are necessary for different contexts,perhaps there are some blur context that could be replaced them.


http://devwebcl.blogspot.com/
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

German Gonzalez-Morris wrote:perhaps POJOs and EJBs was a better vocabulary to narrow down the question's context.

Not really. POJO != Java bean

Anyway, about Spring/JPA and EJBs, I think we can discuss about it for long...

Any further discussion of the relevance of EJBs should be taken to a new topic in the EE forum. (Unless the OP chimes in saying that EJBs were what he was asking about in the first place; in which case the whole topic will get moved.)
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 176

Are you referring to dto ?
william chaple
Ranch Hand

Joined: Mar 08, 2013
Posts: 125
Ok it lost me lol. I didnt know there were so many different formats. I am still a college student, so I am trying to grasp a field in web development to stick to. Professor said it is good to learn java, Perl, PHP, java script.

Just trying to figure out what languages are going to be used the most in the future. Ive decided to stick to web application development, but dont know what languages to learn, stick to since everything is constantly changing
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
Well, I would say that JavaScript is a must, for server side languages you can check pros and cons of the languages you mentioned.
About the future I don't think it is worth caring about it at this moment, I guess if you learn Java you are not going to be working with it all your life, the important point is to get the concepts.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

Alberto is very correct. You're not going to create a career out of one language or technology.
william chaple
Ranch Hand

Joined: Mar 08, 2013
Posts: 125
Albareto McKenzie wrote:Well, I would say that JavaScript is a must, for server side languages you can check pros and cons of the languages you mentioned.
About the future I don't think it is worth caring about it at this moment, I guess if you learn Java you are not going to be working with it all your life, the important point is to get the concepts.


Awesome guys thanks. Yeah makes sense. Once I grasp the concepts, I am sure I'll move onto that. What do you guys recommend I should learn for a college web app student then? Or practice my concepts on?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

If you're going to be working on the web, HTML, CSS and JavaScript for the front-end is a given. And there's a world of stuff to learn just there. (Anyone who tells you that HTML is easy doesn't know much about HTML.)

When it comes to the back-end, there are any number of choices. I'd recommend staying away from platform-prioprietary technologies (aka .Net) and focus on those that are multi-platform. That could be PHP, Ruby/Rails, or Java. Pick your poison.

If you want to learn Java, then the choice is obvious. If you want to get something off the ground quickly, PHP has a lower barrier to entry. If you want to land a job, either (or both) is a good choice.
william chaple
Ranch Hand

Joined: Mar 08, 2013
Posts: 125
Bear Bibeault wrote:If you're going to be working on the web, HTML, CSS and JavaScript for the front-end is a given. And there's a world of stuff to learn just there. (Anyone who tells you that HTML is easy doesn't know much about HTML.)

When it comes to the back-end, there are any number of choices. I'd recommend staying away from platform-prioprietary technologies (aka .Net) and focus on those that are multi-platform. That could be PHP, Ruby/Rails, or Java. Pick your poison.

If you want to learn Java, then the choice is obvious. If you want to get something off the ground quickly, PHP has a lower barrier to entry. If you want to land a job, either (or both) is a good choice.


i was reading asp vs php and exactly what you mentioned! I played around with PHP. Thank you so much for your advice and all the other questions you've answered from me!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java Beans, do they still use them?