[jBPM] New message: "Re: jbpm 4.3 spring & DecisionHandler question"
by Santanu Saraswati
User development,
A new message was posted in the thread "jbpm 4.3 spring & DecisionHandler question":
http://community.jboss.org/message/523136#523136
Author : Santanu Saraswati
Profile : http://community.jboss.org/people/saraswati.santanu
Message:
--------------------------------------------------------------
Unforunately there is no clean way of doing this. You can however use some workaround.
If you remember that good old ServiceLocator J2EE pattern, you can code something similar to locate your spring beans. You can have a class like this:
*
*
*import javax.annotation.Resource;*
*import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;*
*/**
* @author Santanu
*
*/
@Component("serviceLocator")
public class ServiceLocator {
private static ApplicationContext applicationContext;
@Resource
public void setAplicationContext(ApplicationContext applicationContext) {
ServiceLocator.applicationContext = applicationContext;
}
public static Object getService(String beanName) {
return applicationContext.getBean(beanName);
}
}*
Now in your decision handler can make use of this like this:
**
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523136#523136
16 years, 2 months
[JBoss Tools] New message: "Re: Adding JBoss AS source to a project"
by John Waterwood
User development,
A new message was posted in the thread "Adding JBoss AS source to a project":
http://community.jboss.org/message/523120#523120
Author : John Waterwood
Profile : http://community.jboss.org/people/john.waterwood
Message:
--------------------------------------------------------------
about the several places to attach source (classpath, ctrl-click, debug), it is not really convenient for the user having to tell Eclipse twice where source code is related. Once for ctrl-click and browsing, and once for debug.
I seem to remember that with MyEclipse I only had to attach source code once for each jar file (using package explorer, or in the project properties build path). The debugger would then automatically know about the source location too. In WTP with or without Jboss AS tools this does not seem to be the case.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523120#523120
16 years, 2 months