Friday, March 28, 2008

BlazeDS, Flex, Spring, Hibernate, Tomcat

I've been banging my head against this "stack" for a while, with some (qualified) success. I'm hoping to get some code onto code.google sooner or later, but I'm a bit busy converting my current project *away* from java and toward Cold Fusion (using ColdSpring and Transfer).

I'll post something when (if) I finally get a chance to get things working.

Brief synopsis, however (see delicious for any appropriate links):
  1. Installed Tomcat 6
  2. Configured a database (SQL Server, MSDE in this instance) with three tables (tUsers, tRoles, lkupUserRoles)
  3. Snagged the jTDS driver
  4. Configured Tomcat default realm to authenticate against the db
  5. Installed BlazeDS
  6. Made a copy of the BlazeDS folder for my new project
  7. Stuck Spring and Hibernate in it
  8. Wrote some java code for my user and role POJOs (IUserDAO, UserDAO, User, etc.)
  9. Wrote config for Spring to point to Hibernate stuff & User/Role beans
  10. Wrote config files for Hibernate to tell User/Role how to work
  11. Wrote destination config stuff into the flex services xml
  12. Wrote flex project/code to talk to the destination

Like I said... I'll post more on this later, and all the tweaks I had to do to get things working right. (although I never was able to get Security working like it should).

No comments: