Hi Eric,
First you have to import following,
import javax.naming.InitialContext;
then create a context object,
InitialContext context = new InitialContext();
then create a object and assign the environmental variable to that
Object result = context.lookup(“java:comp/env/” + “link”);
then convert to a string
String tempLink=result.toString();
Hope this will help
Regards,
Sunil_N
#MWS-CAF-Task-Engine#webMethods#webMethods-BPMS