Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Injecting components into an EJB  RSS feed

 
Elio Marcolino
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

I was searching for possible architectures for a new J2EE project and a doubt came to my mind. I would like you to help me find some opinions about this subject.

The scenario is: I have a facade layer composed by EJBs, a service layer composed by POJOs and Interfaces and a DAO layer composed by POJOs too. I was designed to find, between all other candidate architectures that i have already suggested, one that uses J2EE components only, a pure J2EE archtecture without any frameworks like Spring, Seam or any other.

Given this scenario, in your opinion, what is the best way to inject these service and data access components into an EJB without use third part frameworks?

Thanks!
 
Elio Marcolino
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no replies?

Is there something wrong with my doubt? There is no way to do this kind of dependency injection using pure J2EE components?
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Elio Marcolino wrote:no replies?

Is there something wrong with my doubt?


Expecting a reply within 30 minutes of posting the question? You have to be patient when you are in the communities which are driven by volunteers
 
Elio Marcolino
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the advice. The answer can take time and I should know that. My fault.

I have sent the second post to give more information about my doubt too. I dont even know if what I want is possible to be done.

Thanks.
 
Devaka Cooray
Marshal
Posts: 5512
687
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understood your scenario correctly, you may convert them in to SLSB if all of those are POJOs.
 
Elio Marcolino
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Devaka Cooray wrote:If I understood your scenario correctly, you may convert them in to SLSB if all of those are POJOs.


Right, I understood that what a want to do will be possible after conversion but, just to hava a complete view about this new scenario, what would be the negative consequences of converting them into SLSB?

Which one do you think is better, this approach where every server side component is an EJB OR use EJB just on facade layer and a DI framework to inject POJOs into them?

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