Dear all;
i have two question regrding a project i am working on now:
1. I want to apply factory design pattern on session beans,that is i have multiple implementaions for the same class how i am suppose to apply abstract factory design pattern or factory design pattern in EJB envirament,is there any way fro such an implemntation.

2.i should use JNI for native code interfacing but how is it supposed to be done and EJB does not allow such implementation,and the mapping with EJB -ststful session beans- should be on EJB-one native class.