[jboss-user] [EJB 3.0] - design scenario, session bean usage

john_woo@canada.com do-not-reply at jboss.com
Sun Jul 8 09:59:28 EDT 2007


Using swing client talks to ejb 3 server.

The swing UI consists of 2 major panels: menu tree nodes panel and content panel, which display the detail for the selected sub menu nodes.

The server provides ex. 3 tpyes of services (thus the swing UI has 3 sub menu), using session bean talks with entity beans.

some of the requirements are:
session time out is configurable on the fly (by admin role), every content panel should be able to auto-refresh every 2 minute.

As to the design scenario, I'm wondering:

1. Which is better in the following designs:

A. one remote session bean per service, thus there are 3 session beans;
B. a remote session bean talks with 3 local session beans, thus totally 4 session beans

2. using stateless or stateful bean(to satisfy time out), why, how?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061715#4061715

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061715

More information about the jboss-user mailing list