Srdjan Strbanovic from Timok es, one of our clients, decided to release a project we built for him as a sample. This is a very simple project that is not integrated with Timok’s backend. It was built by Henry and took less than three weeks.
It demonstrates:
- First, the quality of our work (shameless plug) ![]()
- A project built using TDD
- Castle latest bits including JS Generation, Validation and so on
- MonoRail/Windsor
- Acceptance tests using Watin
To download it, refer to the Samples (attachments) page on our using.castleproject wiki.
Thanks to Srdjan that released the project that he paid good money for. I think newbies and seasoned Castle users will appreciate it, albeit in different levels.
May 4th, 2007 at 10:48 pm
Link Listing - May 4, 2007
Message oriented interop between WCF and Oracle App Server WSIF [Via: ] Astoria: Microsoft’s RESTful…
May 5th, 2007 at 2:36 pm
Timok’s Monorail project open sourced…
Timok’s Monorail project open sourced…
May 6th, 2007 at 12:51 pm
Hammett,
I noticed you have Services sitting between your controllers and repositories. I initially played with this idea but found that my Service objects acted like phantom objects just passing calls along. Can you describe what the benefits are of creating a service layer in this manner?
thanks for the sample! very lean code indeed.
May 6th, 2007 at 1:02 pm
Revista Mundo.net 2a edi
Revista Mundo.net 2a edi
May 6th, 2007 at 1:41 pm
Hammett,
Thanks for posting this code I have looked at it and I reckon I can learn a lot from it. You may want to check the Web.Config as there is sensitive information in there (SMTP password).
I am trying to get the application to run but I get stuck at the password screen. How can I log in and run the application so I can get a better understanding of what is going on?
Thanks again,
Brendan
May 6th, 2007 at 3:28 pm
Sean, the service layer is explained on the PoEA book and on the DDD by Eric Evans. It acts as the app layer, basically coordinating invocations to the domain model or other underneath layer. It also defines the transaction boundary.
Brandan, I think you should check the class DataBuilder on the web project. It sets the initial app state. I think the user/pass it sets is user/123
May 7th, 2007 at 6:10 pm
Using the Repository and Service pattern is nice. Combining this with Validator and standalone (i.e. not inherit from ActiveRecordBase or ActiveRecordValidationBase) ActiveRecord class makes perfect sense. The only problem that I don’t understand is how to pass the validated error messages between the Views and Service Layer.
May 7th, 2007 at 8:22 pm
Hi,
I appear to be unable to access the wiki (http://using.castleproject.org/) and have been unable to since it was launched. I just get a blank page in Firefox and IE reports that it cannot display the webpage.
Is this just me? I would love to get my hands on that sample app!!
Cheers,
Steve.
May 7th, 2007 at 8:23 pm
John, can you explain what you want to achieve?
May 7th, 2007 at 8:53 pm
I’m also unable to access the download - like Steve, I just get a blank page.
May 7th, 2007 at 9:07 pm
Guys, try again please.
May 8th, 2007 at 1:13 am
hammett,
Can access the wiki now. Thanks heaps.
May 8th, 2007 at 7:39 am
Thanks so much for this release. I’m working my way through Eric’s DDD book and this is a perfect complement. I’ve also been studying Castle’s components.
May 8th, 2007 at 8:52 am
Mark, we havent used DDD on this one. But we will release an OSS project that uses DDD soon. Thanks
May 8th, 2007 at 5:20 pm
What was your motivation for using NVelocity over Brail?
May 8th, 2007 at 5:46 pm
For us (at the Stronghold) NVelocity is the default choice.
May 8th, 2007 at 7:45 pm
Got it - Thank you, sir.
May 10th, 2007 at 9:17 am
That’s interesting considering NVelocity isn’t compiled and I would think that factor would add some heavy weight on the decision; although, aside from that, it seems comparable to Brail in functionality.
May 11th, 2007 at 10:05 am
Hammett,
Any tutorial to make the demo portal run?
It looks great, but unfortunately I’m unable to make it run. Is it a VS2003 project?
Once configured, the websitew won’t run both on .NET 1.0 and .NET 2.0.
Cheers,
Pierre
May 11th, 2007 at 10:11 am
Please explain the problem.
May 15th, 2007 at 5:25 am
Hammett,
The problem is that I’m unable to login with with the credentials (user/123) you provided earlier.
I checked in DataBuilder.cs, and the the credentials are correct.
Cheers.
May 15th, 2007 at 10:16 am
Well, debug it. It seems to be working for everybody else.
May 17th, 2007 at 12:17 am
Hammett,
I meet the same problem with Pierrus, the user/password(user/123) can’t login.
I debug it, and find that:
1) In LoginController.LogIn Action, after
authenticationService.SetAuthCookie(…)
the cookie (”.ASPXAUTH”) is set.
2) After Redirect(”home”, “index”), when step into AuthenticationFilter.OnBeforeAction, the cookie(”.ASPXAUTH”) is lost. so login is need again.
will you please examine it?
Cheers.
May 20th, 2007 at 4:22 pm
Cao/Pierrus, please download the new rar. After that, the best thing to do is build it using nant, so all tests will run.
Let me know how it goes. thanks
May 22nd, 2007 at 1:34 am
Hammett:
I had to make some changes because my VisualStudio doesn’t support webapplication project. I met the same cookie problem as before. At last I use Session instead of cookie, then it seems work.
Thanks very much.
June 21st, 2007 at 8:33 am
I am tryin to download the Timok code but the following website is not available:
http://using.castleproject.org/display/MR/Home
Any ideas?
Thanks
B
October 15th, 2007 at 10:58 am
Hammett:
I am using castle project with visual studio 2005.before installing castle project i configured whatever u have mentioned on castle site.after configuring castle msi and other helping plugins.i just want to add a new class in modal.it is displaying the template controls rather it displaying ajax template and other online template.how do i add a class and other items.how should i workout becos i don’t know about castle much detail. can you give any sample
application so that i better understand and i can start working on it.
October 16th, 2007 at 12:59 am
Hammett:
I am using castle project with visual studio 2005.before installing castle project i configured whatever u have mentioned on castle site.after configuring castle msi and other helping plugins.i just want to add a new class in modal.it is displaying the template controls rather it displaying ajax template and other online template.how do i add a class and other items.how should i workout becos i don’t know about castle much detail. can you give any sample
application so that i better understand and i can start working on it