[JBoss Seam] - Interrupting a Conversation to Start Another
by neilac333
I am writing an application where a user might be in the midst of a conversation and then may need to stop that one and jump to another page to initiate a new one. Upon completing that new conversation, the user could then go to a list of unfinished conversations and complete them.
As a contrived example, say I start to order a pizza for myself which consists of figuring toppings, choosing sides if any, and payment. Then I get a request from my boss that we need pizza for a company gathering later today. So I somehow save my current order (explicitly or implicitly) and then go back to the original pizza order page to order for the company. Somehow then I can retrieve my original order and complete it.
My question is simply if Seam makes such a thing even possible. Can I save the original order? If so, must I do so explicitly? How many conversations can I interrupt (i.e. in the above example, can I interrupt the order for my company to initiate a third order?)? When I am ready, can I produce a list of unfinished conversations for me to click on so I can complete them?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052299#4052299
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052299
18Â years, 10Â months
[JBoss Messaging] - Re: failed to add topic in JBM 1.3
by xkong
Here is what I see in JNDIView:
| +- topic (class: org.jnp.interfaces.NamingContext)
| | +- testDurableTopic (class: org.jboss.jms.destination.JBossTopic)
| | +- TopicWithOwnRedeliveryDelay (class: org.jboss.jms.destination.JBossTopic)
| | +- xCacheInvalidationTopic (class: org.jboss.jms.destination.JBossTopic)
| | +- testTopic (class: org.jboss.jms.destination.JBossTopic)
| | +- ServerCacheInvalidationTopic (class: org.jboss.jms.destination.JBossTopic)
| | +- testDistributedTopic (class: org.jboss.jms.destination.JBossTopic)
| | +- TopicWithOwnDLQAndExpiryQueue (class: org.jboss.jms.destination.JBossTopic)
| | +- securedTopic (class: org.jboss.jms.destination.JBossTopic)
|
Here is Java code to look up topic topic/xCacheValidationTopic:
| jndi = new InitialContext();
|
| TopicConnectionFactory connFactory = (TopicConnectionFactory)jndi.lookup("ConnectionFactory");
|
| if (connFactory == null) {
| throw new NullPointerException("The TopicConnectionFactory for JMS cache invalidation was NULL");
| }
|
| connection = connFactory.createTopicConnection();
| if (connection == null) {
| throw new NullPointerException("The TopicConnection for JMS cache invalidation was NULL!");
| }
|
| jmsSession = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
| if (jmsSession == null) {
| throw new NullPointerException("The TopicSession for JMS cache invalidation was null");
| }
|
| topic = (Topic)jndi.lookup(topicName);
|
MBean in destination-service.xml:
| <mbean code="org.jboss.jms.server.destination.TopicService"
| name="jboss.messaging.destination:service=Topic,name=CacheInvalidationTopic"
| xmbean-dd="xmdesc/Topic-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| <attribute name="Clustered">true</attribute>
| </mbean>
|
Exception:
| javax.naming.NameNotFoundException: topic/xCacheInvalidationTopic
| at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:242)
| at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:155)
| at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.java:209)
| at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
| at sun.rmi.transport.Transport$1.run(Unknown Source)
| at java.security.AccessController.doPrivileged(Native Method)
| at sun.rmi.transport.Transport.serviceCall(Unknown Source)
| at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
| at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
| at java.lang.Thread.run(Unknown Source)
| at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
| at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
| at sun.rmi.server.UnicastRef.invoke(Unknown Source)
| at org.jboss.ha.framework.server.HARMIServerImpl_Stub.invoke(Unknown Source)
| at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:172)
| at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:267)
| at $Proxy0.lookup(Unknown Source)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:626)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
| at javax.naming.InitialContext.lookup(Unknown Source)
|
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052294#4052294
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052294
18Â years, 10Â months