I was just thinking how cool it would be to generically associate xml with a method declaration.
Back story: I am working on unit test cases for JBossCMP using JUnitEJB and it would be really useful to mark a test method with a tx attribute. Now this test code is not an EJB or an XMBean, so I don't have a descriptor file (this is not important; I just wanted to avoid the lame "make it an ejb emails"). Idea (I only know a little about XDoclet an less about C#) Mark up the code with XDoclet tags that contain generic xml. Then run XDoclet to preprocess the java file and generate a new java file with an additional method getClassMetaData. This class would work like the getClass stuff, but would add additional methods to return the extra metadata specified in the class. Use: In my case, the server side tester would get the metadata, check for a tx tag and would start a tx if required by the tag. We could use the same tricks with MBeans, JBoss Enterprise Beans (JEBs), and anything. This is something (I think) C# has and is unbelievably powerful. What do you think? -dain _______________________________________________________________ Hundreds of nodes, one monster rendering program. Now that�s a super model! Visit http://clustering.foundries.sf.net/ _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
