• Post Reply Bookmark Topic Watch Topic
  • New Topic

Do I need EJBs?  RSS feed

 
Thomas Turser
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My architecture:

1) I have 3 EARs containing business services (basically DAO's retrieving data from differente repositories). No GUI at all.

2) I have other EARS containing web applications (thin applications providing web interfaces). They should call the services provided by the three business ears.

I don't want to package the business services within the different interface applications (if a "business ear" needs to change, I'd have to rebuild all the "client ears")

I've been encouraged to use a business container. I like the advice, but I think EJB's may be over the top (all the ears run in the same application server, so I'd like to avoid remoting interfaces...)

I've read something about Spring and it's lightweight container, but I can't find anywhere how to invoke a business object ubicated in a different ear without remoting

Your opinion would help. Thanks in advance,

Tuser
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"T. Tuser",
Welcome back to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted, often without warning

thanks,
Dave
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if you package your web war files with your ejb jar files into an ear and deploy it, it will use Local lookups, or you should have them doing local lookups, and they will be loaded by the same classloader and will not do remote lookups.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!