UserModule module = (UserModule) new 
InitialContext().lookup("java:/portal/UserModule");
                        RoleModule roleModule =(RoleModule) new 
InitialContext().lookup("java:/portal/RoleModule");
                        UserProfileModule userProfileModule  = 
(UserProfileModule) new 
InitialContext().lookup("java:/portal/UserProfileModule");       
                            MembershipModule membershipModule = 
(MembershipModule) new InitialContext().lookup("java:/portal/MembershipModule");


when im using the above code to lookup JNDI and getting the services iam not 
able to do a package with Maven. 

this is the stack trace 

Need to specify class name in environment or system property, or as an applet 
parameter, or in an application resource file:  java.naming.factory.initial


is there any way to do this in a abstract way ?????

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132628#4132628

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132628
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to