Mark Hanfland

Greenhorn
+ Follow
since Oct 19, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mark Hanfland

I never ended up getting this to work correctly through Spring and ended up creating my own JDNI Datasource provider to feed the Spring bean, rather than using their built in one.
9 years ago
I have a strange Spring error I have been stuck on for several days.

I have a Spring bean I am trying to bind to a JNDI resource in Tomcat 8 as follows




I am certain that the resource is available because I added test code which works in the same webapp which looks up and uses the JNDI resource

//This works


Here is the Stacktrace




The only thing I can think of is that the Spring version I am using, 2.5.6.SEC02, is using a different set of classes for the JNDI lookup.

Hoping someone has some ideas of what else to try. Thanks.
9 years ago
Updated Swing approach (many thanks to Parag)

Swing Client-->Biz Delegate (POJO Client Side)-->Front Controller(Stateful Session Server Side)--> SessionFacade(Stateless Session Server Side)-->DAO
Thanks for the thoughts. Sounds like this is acceptable

Swing Client->Biz Delegate (Stateful Session Bean)->Session Facade(Stateless Session Bean)->DAO

My web UI would be Controller(Servlet)->Command->ViewHelper->Biz Delegate->etc..
I am trying to do part two and am confused on the correct implementation of Business Delegate and Session Facade.

1) My main issue is that business delegate objects are not remote so do not support talking to the thick client. So where should the fat client connect to the server?

One idea would be for a stateful session bean before business delegate layer that acts as a controller. Seems strange looking with SessionBean(controller) to Biz Delegate to SessionBean(facade) to Data Access Layer.

Another idea was to scrap biz delegate and have the fat client talk to the session facade directly.

2) Should the Session Facade objects be stateless when using business delegate. I don't see in the J2ee pattterns examples any state management. If they are stateless then why use session facade with biz delegate? What is the advantage.

Thx,

Mark