You're right. I've updated CVS to fix this - in the meantime you can just cast the result to RuleBasedIdentity.
((RuleBasedIdentity) Identity.instance()) still doesn't give me getSecurityContext. am i doing anything wrong.
Do you have the drools libraries included in your ear file?
no what i mean is this is a compile time error i am not able to cast to RuelBasedIdentity from Identity.getInstance.
is this the correct syntax. atleast the eclipse codeassist doesn't show me this.
any clue on how to get an instance of RuleBasedIdentity bycasting.
i tried a couple of options but none of them seem to get an instance of RuleBasedIdentity to get hold of getSecurityContext.
any other options??
oh the drools jars were not being recognised in the classpath. it is working now. thanks for your reply.