Poornima,
If your objective is to hide the code of the service from the users, you can achieve it by assigning appropriate ACL… eg… lets say your users belong to ACL ‘USERS’, assign your java service a ‘Read’ and ‘Write’ ACL of (for example) ‘Developers’. This way, the users will not be able to view the code (or modify it - obviously). If you don’t want the users to be able to even see the service or execute it, you may change the ‘List’ and ‘Execute’ ACLs too.
HTH, Rohit
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB