I don't think it is much code, all the errors occure in very little code
acuallypackage com.broadcore.broadview;
|
| import java.io.IOException;
| import java.io.InputStream;
| import java.util.Properties;
|
| import org.jboss.logging.Logger;
| import org.jboss.seam.annotations.BeginTask;
| import org.jboss.seam.annotations.CreateProcess;
| import org.jboss.seam.annotations.End;
| import org.jboss.seam.annotations.EndTask;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.StartTask;
| import org.jboss.seam.annotations.Transactional;
| import org.jboss.seam.util.Resources;
| import org.jbpm.taskmgmt.exe.TaskInstance;
|
| @Name("TaskList")
| @Transactional
| public class TaskList {
|
| private static final Logger log = Logger.getLogger(TaskList.class);
|
| private static final String TASKMAPPING_PROP_FILE =
"/taskmapping.properties";
|
| private static final Properties properties = new Properties();
|
| static {
| try {
| InputStream stream =
Resources.getResourceAsStream(TASKMAPPING_PROP_FILE);
| properties.load(stream);
| } catch(IOException e) {
| log.error("unable to load properties from file: " +
e.getMessage());
| e.printStackTrace();
| }
| }
|
| @In(required=false,create=false)
| private TaskInstance taskInstance;
|
| @CreateProcess(definition = "BroadCoreOrder")
| public void createTodo() {
| }
|
| @StartTask
| public String startTask() {
| return getTaskMapping(taskInstance.getName());
| }
|
| @BeginTask
| public String resumeTask() {
| return getTaskMapping(taskInstance.getName());
| }
|
| @EndTask
| public String endTask() {
| return "taskList";
| }
|
| @End
| public String holdTask() {
| return "taskList";
| }
|
| private String getTaskMapping(String taskName) {
| String view = properties.getProperty(taskName);
|
| if(view == null)
| return "taskList";
|
| return view;
|
| }
| }
|
It is not even much more than in the tasklist example because this is what it
is supposed to be - a very simple tasklist. And as you can see I have already
annotated the JavaBean with @Transactional but the Exception still persists (I
also tried to annotate the createTodo method with @Transactional with the same
result).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939054#3939054
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939054
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user