• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Java Jargon

 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone provide a brief explanation of the following frameworks/features and an ideal situation where you;d want to use them please:

Enterprise Java Bean (what is the different between an EJB and a 'normal' bean)
Spring
Hibernate/Java Persistance

I have tried reading them up but I cannot find any idea situation where I'd use them.
 
author
Posts: 23958
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, I'll do the first one...

Enterprise Java Bean (what is the different between an EJB and a 'normal' bean)



EJBs is a standard that is supported by many application servers. If you write code that follows this standard, your code can be loaded into an application server and called by clients. Clients would generally use JNDI (supplied by the server) to find your bean and call your services.

Java beans is just a standard that allows code to be interchanged. With this standard, there are tools that can intropect your code (that follows this standard) and generate code that uses it. Standard Java Beans doesn't have all the stuff needed by servers to maintain it as a service -- as with EJBs.

Henry
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring provides a large set of functionality--your best bet is to look on the Spring website; some of the major stuff includes AOP, IoC/DI, transaction management, it has ORM and JDBC layers, its own web MVC, ad infinitum.

Hibernate is an ORM that bridges relational databases and objects.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wikipedia has clear explanations for almost anything:

Enterprise JavaBean
Spring Framework
Hibernate (Java)
Java Persistence API
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'll try to reply as layman and as short as possible. Because I think you don't really intend to go into the detail of these technologies, but more into a general understanding, so that you'll get a hang of the jargon.

EJB pertains to the architecture created by Sun to support enterprise-level software development. You don't really "see" an EJB. It's more of a concept (a very complex concept). Normal beans on the other hand are regular classes that are comprised of member fields plus the setters and getters for those fields.

Spring is a framework. In short, it is simply used to implement a standard structure while doing software development. Spring is a very popular framework that's why you hear it often.

Hibernate is a persistence framework. It simplifies saving data into databases by creating mappings of classes to the actual databases.
 
I'm gonna teach you a lesson! Start by looking at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic