@Override
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT)
public String findTechnicalDeployment(int technicalDeploymentId)
throws ObjectNotFoundException, TechnicalException {
TechnicalDeployment technicalDeployment = find(technicalDeploymentId);
try {
JAXBContext jc = JAXBContext
.newInstance(TechnicalDeployment.class);
Marshaller m = jc.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
StringWriter st = new StringWriter();
m.marshal(technicalDeployment, st);
return st.toString();
} catch (JAXBException e) {
String message = "Data access error while retrieving TechnicalDeployment["
+ technicalDeploymentId + "]";
log.error(message, e);
throw new TechnicalException(message, e);
}
}
ManageTechnicalDeploymentImpl.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:elpaaso-core
作者:
评论列表
文章目录