brady gaster

yadnb

my new love affair with an old friend

the old friend? COM+ - don't flip, it's not that kind of affair.

in my studies for exam #320, i've really grown fond of the System.EnterpriseServices namespace. the whole notion of using attributes to control properties of your components and packages under COM+ is simply rad. if you haven't tried this, do so, it's really nifty.

example - creating roles under COM+ -
this was such a pain for me in the past, at least, the programming aspect of it was a total pain. perhaps i never learned enough about COM+, but it couldn't have been as easy as it is in .NET, which is ironic.

basically, you just mark your component or class with the following attribute:

[SecurityRole("MyRoleName",false)] (or true if you want to add the Everyone group to your role)

then, you compile and run a client app that references the class library you've set up to work under COM+. MAGIC - you go to your Component Services manager and there it is - your business objects spinning away. to boot, if you expand the Roles node under your components, the role you provided via the attribute is there - now just add users.

too darned money, i tell ya.

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required)