Save GBM model into XML file, and apply the model with Java code. It's based on the model of R GBM package. Java predictor for R GBM model.