security in webservice
1 posts in topic
Flat View  Flat View

Posted By:   user_2003
Posted On:   Wednesday, March 12, 2003 07:05 AM

HI. I am new to webservices.

I am trying to run a simple webservice, which calls ejb, which has security at the method level. Like if u need to acces some method it will fail if the users are not valid.

now how do I sepcify this in webservices?
any help?

Re: security in webservice

Posted By:   Lasse_Koskela  
Posted On:   Wednesday, March 12, 2003 11:59 AM

This has nothing to do with Web Services. The Java code implementing the Web Service should get the EJB references just as you would from a standalone class. When a method in your Web Service class is invoked, it needs to get an InitialContext reference to the EJB container. If security is required, you need to pass the correct user credentials when getting the InitialContext.
About | Sitemap | Contact