[JBoss jBPM] - Stream error in jbpmwebconsole and struts-jbm sample source
by akmanocha
hi,
I am staring with the jBPM, downlaoded and deployed
jbpm-jpdl-suite-3.2.GA
when i start the jbpm-webconsole (on websale process).... and try to view a task
it gives me following exception
Stream error while reading XML: Connection timed out: connect
+- Stack Trace
javax.faces.FacesException: Stream error while reading XML: Connection timed out: connect.....
And the full stack continuous.. i did google but found nothing.... can anybody please help here...
plus i want some sample application code with jBPM and struts
this is the cvs info i found from userguide
Connection type: pserver
User: anonymous
Host: anoncvs.forge.jboss.com
Port: 2401 (which is the default)
Repository path: /cvsroot/jbpm
Label: :pserver:anonymous@anoncvs.forge.jboss.com:/cvsroot/jbpm
but dont know if it contains some sample aaplication sourcode with the struts (i feel jbpm-webdonsole for jbpm 3.2 is in JSF, i know struts havent worked on JSF and have to use struts anyway, so need sample application with struts)... can somebody help me with the path too after repository path for sample application... i have come across some holiday demo and payraise demo in soem of the forms which gave impression that they were with struts .... but havent found them in CVS... also are they compatible with jbpm 3.2 ... i mean they wer not written for 2.0 or some older versions of jbpm, right?
Really stuck, need beginner's help here, many thanks in advance
Third point, I have a requirement for using jbpm with MySQL... so can somebody direct me to proper forum threads too for moving jbpm Task and Process related data to MySQL instead of default HSQLDb
Many thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070563#4070563
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070563
18Â years, 8Â months
[EJB 3.0] - insert value in primary and secondry table
by kaviarasu
hi im using two tables Table1 and Table2
Table1 fields
no-primary coloumn
Table2 fields
no-foreign key to table1
eno-primary key of this table
i want to generate the value automatically in table1 so it want to update the same value in Table2 no and eno without using trigger . The value want to generate and insert after the submit button pressed in JSF page
i pasted the coding below can any one help
|
| import java.io.Serializable;
| import java.math.BigDecimal;
| import java.util.Set;
|
| import javax.persistence.CascadeType;
| import javax.persistence.Entity;
| import javax.persistence.GeneratedValue;
| import javax.persistence.Id;
| import javax.persistence.OneToMany;
| import javax.persistence.OneToOne;
| import javax.persistence.PrimaryKeyJoinColumn;
|
| import org.jboss.seam.annotations.Name;
|
| @Entity
|
| public class Table1 implements Serializable {
| private static final long serialVersionUID = 1L;
| @Id
| private BigDecimal no;
| private Table2 eno;
| public Table1() {
| super();
| }
|
| @GeneratedValue
| public BigDecimal getNo() {
| return this.no;
| }
| public void setNo(BigDecimal no) {
| this.no = no;
| }
| @OneToOne(cascade = CascadeType.ALL)
| @PrimaryKeyJoinColumn
| public Table2 getEno() {
| return eno;
| }
| public void setEno(Table2 eno) {
| this.eno = eno;
| }
| }
|
| import java.io.Serializable;
| import java.math.BigDecimal;
| import javax.persistence.Entity;
| import javax.persistence.Id;
| import javax.persistence.JoinColumn;
| import javax.persistence.ManyToOne;
| import javax.persistence.OneToOne;
|
| @Entity
| public class Table2 implements Serializable {
| @Id
| private BigDecimal eno;
|
|
| private BigDecimal no;
|
| private static final long serialVersionUID = 1L;
|
| public Table2() {
| super();
| }
|
| public BigDecimal getNo() {
| return this.no;
| }
|
| public void setNo( BigDecimal no) {
| this.no = no;
| }
|
| public BigDecimal getEno() {
| return this.eno;
| }
|
| public void setEno(BigDecimal eno) {
| this.eno = eno;
| }
|
| }
import java.util.List;
|
| import javax.ejb.Stateless;
| import javax.persistence.EntityManager;
| import javax.persistence.PersistenceContext;
|
| import kavi.Table1;
|
| import model.TblUserReviews;
| import model.Write;
|
| import org.hibernate.validator.Valid;
| import org.jboss.seam.annotations.IfInvalid;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Outcome;
|
| @Stateless
| @Name("register")
| public class RegisterAction implements Register {
|
| @In
| @Valid
| private Table1 user1;
|
| @PersistenceContext
| private EntityManager em;
|
| @IfInvalid(outcome = Outcome.REDISPLAY)
| public String register() {
|
| em.persist(user1);
| return "success";
| }
| }
<table border="0" style=" width : 771px;">
| <tr>
| <td>Rate the product</td>
| <td><rich:inputNumberSlider value="#{kavi.no}"/>
| </td>
| <td>
| </td>
| </tr>
| <tr style=" height : 6px;">
| <td>Review Title</td>
| <td><h:inputTextarea value="#{kavi.eno}" style=" width : 445px; height : 34px;"></h:inputTextarea>
| </td>
| </tr>
|
| </table>
| <font color="red"><h:messages /></font>
| <h:commandButton styleClass="formButton" type="submit" value="Register"
| action="#{register.register}" />
Thank ypu
Regards
kavi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070555#4070555
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070555
18Â years, 8Â months