[Messaging, JMS & JBossMQ] - Can't lookup queue/B
by happytour
Greetings,
In a simple JMS producer I'm doing the following
InitialContext ctx = new InitialContext();
| Queue q = (Queue)ctx.lookup ("queue/B");
This raises the following exception:
Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such obje
| ct in table]
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at ro.happytour.happyledger.jms.client.JMSProviderClient.main(JMSProviderClient.java:11)
| Caused by: java.rmi.NoSuchObjectException: no such object in table
Could anybody please help ?
Kind regards,
Nicolas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054755#4054755
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054755
18Â years, 10Â months
[JBoss jBPM] - Re: JBPM JSF Integrartion
by ambika_devi
You mean to say that each and every JSF pages in my web application to be changed to access the JBPM Engine and to be made as a war file then deployed in the server.
Can you pls tell me that my application to be deployed in jbpm server or in some other web server like Tomcat or JBoss etc...
You have also mentioned to include the java class code in the save button of my jsf page, in the java class code u r passing some arguments.
| public void save(Hashtable taskVariables, String transition)
|
where this arguments are coming from, where i dont have any taskvariables and transitions in my web application.
I think that we are using the taskvariables and transitions in JBPM right. So how do you want me to integrate these parameters into my own web application.
Then clear me with one thing like is it possible to access the jbpm database from my application, if that is the case then i have to specify the jbpm configuration file and everything, can u help me in the directory structure of the web application which is using jbpm.
Pls kindly help me and explain me clearly.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054749#4054749
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054749
18Â years, 10Â months
[Clustering/JBoss] - Re: JMS ConnectionFactory not bound exception: Help needed..
by mpogra
Finally i m able to deploye the app in all nodes of cluster and session replication is working fine with mode_jk option. The problem was because, i was deploying all queus and topics form /all/depoy folder. These needs to be deploy from /all/deploy-hassingleton/jms folder.
But i m still getting exception ConnectionFactory not bound exception mentioned in first post in other nodes but application is deployed fully on nodes and session is mentioned.
My application uses Ques and Topics as shown below
| <mbean code="org.jboss.mq.server.jmx.Topic"
| name="jboss.mq.destination:service=Topic,name=CACHE_KEY">
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
| </mbean>
| <mbean code="org.jboss.mq.server.jmx.Queue"
| name="jboss.mq.destination:service=Queue,name=MESSENGER_ERROR">
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
| </mbean>
|
My Topic, Queues and there respecitve clients are in same application sever.
My jms client is:
| private TopicPublisher _publisher = null;
| String jmsFactory = "ConnectionFactory";
| Context jndiContext = new InitialContext();
| Object obj = jndiContext.lookup(jmsFactory);
| TopicConnectionFactory connectionFactory = (TopicConnectionFactory) obj;
| TopicConnection connection = connectionFactory.createTopicConnection();
| TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
| String jmsTopic = "topic/CACHE_KEY";
| Topic topic = (Topic) jndiContext.lookup(jmsTopic);
|
| TopicSubscriber subscriber = session.createSubscriber(topic);
| subscriber.setMessageListener(this);
| connection.start();
| _publisher = session.createPublisher(topic);
| _message = session.createMapMessage();
|
The class of above client "implements javax.jms.MessageListener". When i m directly hitting the node (without the Apache Http server) otherthen master node then, When above client is trying to look for "ConnectionFactory" it throws exception as explained in first post. I have tried using HAJMS port 1100 in provider URL as well but unable to get the object.
Can any one please explain me about this behaviour or let me know if i m missing any configuration?
However when i shut-down the master node then application is continues with second node (session is replicated).
But second node is performing all initlization before serving the request, is it expected behaviour? or i m missing anything?
Actually we are migratting application from weblogic to jboss and client want clustering support.
Please advice what to do?
Tnanks in advance.
Mahesh.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054748#4054748
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054748
18Â years, 10Â months
[JBoss Seam] - entity update without submit
by hispeedsurfer
Have the problem that the entity is updated without a submit.
Once I have changed the value of the drop-down-menu it's directly updated to database.
This should not the correct behaviour!?! But I don't know why?
| <s:decorate id="generationDecorator" template="edit.xhtml">
| <ui:define name="label">Generation:</ui:define>
| <h:selectOneMenu id="gen" value="#{specialrelease.generation}" converter="#{selectItemHelper}" required="true">
| <f:selectItems value="#{specialreleaseeditor.allGenerations}"/>
| <a:support event="onblur" reRender="generationDecorator"/>
| </h:selectOneMenu>
| <f:verbatim>
| <a href="javascript:Richfaces.showModalPanel('_gpanel',{left:'auto', top:'auto'})">
| New Generation
| </a>
| </f:verbatim>
| <br />
| <s:message></s:message>
| </s:decorate>
|
|
This is what to see in console firsthand of change.
| 15:22:06,480 INFO [STDOUT] Hibernate: update specialreleases set version=?, generation_id=?, creater_id=?, requestNumber=?, description=?, requestYear=?, status=?, document=?, numberOfParts=?, valideToDate=?, permitDate=?, timerHandle=? where id=? and version=?
|
Is this possible in case of a wrong configuration or what can it be?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054743#4054743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054743
18Â years, 10Â months