• Post Reply Bookmark Topic Watch Topic
  • New Topic

When web lay uses struts frameset , Which frameset I should use for ejb lay

 
liang sun
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use struts Framework for web lay , then I want to know which Framework I should use for Ejb that belongs business lay.
Thanks very much!
Evan Sun
 
Bikramjit Singh Bajwa
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your struts framework, ther ewill be an action class... from which you will call your EJBs thru JNDI names and can use EJBs. Kindly lety me know, this is what you wanted to know ?
Chakk de
Bikram
 
liang sun
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,firstly, thank for your reply.
In fact , I know what you said. What I really want to know is as below:
Example:
how many lay should ejb be divided into? How is these lay's relation each other? Have such example?
 
Bikramjit Singh Bajwa
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Buddy
Well dividing EJB into several layers thats all depends upon your requirement. Following is the address for the J2EE design patterns.
http://java.sun.com/blueprints/patterns/catalog.html
Lets take an example of Session Facade design pattern:
Session Fa´┐Żade is a stateless session bean which would interact with different entity bean components, compile the result set for a request, process the output and returns it back to the Struts actions to be presented to the user.
For more clarification. visit the above link.
Chakk de
Bikram
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!