[JBoss Messaging] - Re: Connecting to two JBoss messaging servers causes interfe
by davidrh
I have tried Clebert's suggestion mentioned in the other post of changing the server id in messaging-server.xml:
| <constructor>
| <!-- ServerPeerID -->
| <arg type="java.lang.String" value="server.0" />
| <!-- DefaultQueueJNDIContext -->
| <arg type="java.lang.String" value="/queue" />
| <!-- DefaultTopicJNDIContext -->
| <arg type="java.lang.String" value="/topic" />
| </constructor>
|
This seems to make things work if you don't try and close the failed session and connection. If you uncomment the code to try and close the session and connection, then the sending of messages to the second server doesn't work at all, with the same "Object with oid was not found in the Dispatcher" error mentioned previously. On the server, the following entry is logged:
2006-11-09 16:45:20,457 WARN [org.jboss.jms.server.connectionmanager.SimpleConnectionManager] A problem has been detected with the connection to remote client 4h39k9-33iqxv-euaqkont-1-euaqkq0f-9. It is possible the client has exited without closing its connection(s) or there is a network problem. All connection resources corresponding to that client process will now be removed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984400#3984400
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984400
19Â years, 6Â months
[JBoss jBPM] - understand asynchronous continuations
by gujing01ï¼ gmail.com
hello every,
I am a new jbpm comer, and reading the userguide page by page. howevery, i tried my best but could not understand the meaning of "asynchronous continuations", could any one help me about it and examples are great.
here is my simplest example:
| <?xml version="1.0" encoding="UTF-8"?>
| <process-definition name="sub">
| <start-state name="start">
| <transition to='wait' />
| </start-state>
| <state name="wait" async='true' >
| <transition to='end' />
| </state>
| <end-state name="end" />
| </process-definition>
|
| ProcessInstance processInstance =
| new ProcessInstance(processDefinition);
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| jbpmContext.deployProcessDefinition(processDefinition);
| jbpmContext.save(processInstance);
| /////////////////////////////////
| Token token= processInstance.getRootToken();
| System.out.println(token.getNode().getName());//START
| token.signal();
| System.out.println(token.getNode().getName());//WAIT
| token.signal();
| System.out.println(token.getNode().getName());//END
|
what is the different with/without " async='true' "
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984397#3984397
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984397
19Â years, 6Â months
[JBoss Seam] - Re: @In bijected attributes remaining null?
by gregory.pierceï¼ jboss.com
| package com.sojournermobile.service.model.user;
|
|
| import javax.persistence.*;
| import java.io.Serializable;
| import java.util.Collection;
|
| import org.jboss.seam.annotations.*;
| import static org.jboss.seam.ScopeType.SESSION;
|
| @Entity
| @Name("user")
| @Scope(SESSION)
| public class User implements Serializable
| {
| @Id
| @GeneratedValue(strategy = GenerationType.AUTO)
| private int id;
|
| @Column(unique = true)
| private String userName;
| private String password;
|
| public User()
| {
|
| }
|
| public User( String userName, String password )
| {
| this.userName = userName;
| this.password = password;
| }
|
|
| public int getId()
| {
| return id;
| }
|
| public void setId(int id)
| {
| this.id = id;
| }
|
|
| public String getUserName()
| {
| return userName;
| }
|
| public void setUserName(String userName)
| {
| this.userName = userName;
| }
|
| public String getPassword()
| {
| return password;
| }
|
| public void setPassword(String password)
| {
| this.password = password;
| }
|
| }
|
|
| package com.sojournermobile.service.webservices.user;
|
|
| import com.sojournermobile.service.model.user.Profile;
| import com.sojournermobile.service.model.user.User;
|
| import javax.ejb.Stateless;
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
| import javax.persistence.EntityManager;
| import javax.persistence.PersistenceContext;
| import java.util.Date;
| import java.util.List;
|
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Out;
|
| @WebService
| @Stateless
| @Name("userController")
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| public class UserController implements UserControllerIF
| {
| @PersistenceContext(unitName = "sojourner")
| EntityManager em;
|
| @In @Out
| private User user;
|
|
| public User getUser() {
| return user;
| }
|
| public void setUser(User user) {
| this.user = user;
| }
|
| @WebMethod
| public int getUserCount()
| {
| return ((Long) em.createQuery("select count(u) from User u").getSingleResult()).intValue();
| }
|
| @WebMethod
| public List getUsers()
| {
| return em.createQuery("select u from User u").getResultList();
| }
|
| public String register()
| {
| System.out.println("Registering user " + user);
| em.persist( user );
|
| return "happy";
| }
|
|
|
| }
|
| package com.sojournermobile.service.webservices.user;
|
| import javax.ejb.Local;
| import java.util.Date;
|
| @Local
| public interface UserControllerIF
| {
| public int getUserCount();
|
| public String register();
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984392#3984392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984392
19Â years, 6Â months