Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JINI ARCHITECHTURE

 
MAGESH
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai i downloaded jini from sun site.I read it. i Feel that JINI
MAY REPLACE SOME OF THE CONCEPTS OF EJB .
I WOULD LIKE TO KNOW WHICH IS BETTER AND EASY TO IMPLEMENT EJB OR JINI.
CAN ANYONE TELL ME AN REAL TIME PROJECT WHERE JINI WAS IMPLEMENTED.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB is somewhat easier to implement right now, as there are a lot of available off-the-shelf EJB containers and value added application servers to choose from. With Jini at the moment you have to "roll your own".
Jini and EJB are really complementary rather than competetive. They cover different areas. EJB is all about encapsulating transactional access to databases and legacy systems in a structured and re-usable manner. Jini is all about amorphous networks which discover what they contain, and adjust to the appearance and disappearance of services dynamically.
 
Keith Edwards
Author
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by MAGESH GOVINDARAJAN:
I WOULD LIKE TO KNOW WHICH IS BETTER AND EASY TO IMPLEMENT EJB OR JINI.

Frank Carver already posted a great reply to this question, but I thought I'd add just a little more.
Jini and EJB are complimentary technologies--you could, for example, use Jini "behind the scenes" to interconnect backend EJBs together.
A couple of common scenarios that might indicate when or how to use Jini in an EJB scenario are:
- When you want to be able to dynamically add and remove EJB components, it may make sense to use Jini so that they can discover and use each other easily, with no prior configuration. Jini will let you add redundant components, and will allow components to come and go, all without explicit configuration on the part of the programmer or administrator.
- When you want a non-web front end to an EJB app, Jini can be a great way to connect your client application to your server. Not only can the client dynamically discover the server (allowing you to move it without reconfiguration), but the server also provides the client-side code necessary to use it. So there will never be any problems with the client and server getting "out of sync" version-wise.
There are more complicated scenarios, of course, but these are two of the most common.
Cheers,
-keith


------------------
Keith Edwards
xerox palo alto research center
author of: Core Jini
Which is also available as A Video Course
Read an Example Chapter - Chapter 3 or Chapter 10.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic