Hi,

is there a T5 way to reading a (text) file from the {context-root}/config
directory from the service implementation. The context is null if done this
way:

public class ServiceImpl implements Service {

    @Inject
    private Context context;

    public ServiceImpl() {
        File file = context.getRealFile("/config/myFile.txt");
        ...
    }

}

Thanks,
Borut

Reply via email to