[EJB 3.0] - Re: EJB3 MDBs & JCA Message inflow with foreing JMS provider
by dbudworth
sorry to ressurect an old topic, but I've been beating my head against a wall to get this to work with Sonic 7.5 and jboss 4.2
Is there a means of setting the default rar file to use for inflow in ejb3?
I've been changing standardjboss.xml but nothing seems to take effect. do I *have* to set it as an annotation in every MDB directly? Or can I change the default settings?
worse comes to worse, I'll edit the jboss source to change the default value, but I'd really rather avoid that.
I use JBoss 4.2 in the default configuraion and have removed the deploy/jms directory all together. I need to have the server stripped down as much as possible so I can't run JBossMQ along side of it. Just trying to drop sonic in in place of the JBoss MQ and not add extra config to every mdb.
Any help would be appriciated
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054592#4054592
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054592
18Â years, 11Â months
[JBoss jBPM] - Re: JBPM Integration
by roy007
Hi Sebastian,
Your post has been very helpful as I am in the process of evaluating different WFM solutions and had the same questions and concerns. A lot of those were clarified by your post.
I still have one question maybe you can help me understand this...
Suppose I have a status field in my entity E mapping to table in schema A and the workflow is describing an approval process (jBPM using schema B). So if I want to update the status field of my entity do I need to use a transaction manager so that both these operations commit to the DB atomically.
Since I am using spring I am thinking I can write an aspect that would get me the state and then I could update my entity status field.
Are there other ways of doing this? Is this the right way to do it?
thnx in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054585#4054585
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054585
18Â years, 11Â months
[Messaging, JMS & JBossMQ] - DurableSubscriber
by jp_ammu
Hi All,
I am creating DurableSubscribers on a remote JMS topic. Here code snippet. Iam using a seesion Bean with Message Listener. Iam using Jboss and Oracle JMS
public void connect(){
tcf = new STCTopicConnectionFactory(RibHost, rib_port);
topicConnection = tcf.createTopicConnection();
logger.debug(" topicConnection Created "+topicConnection);
//Stop the connection if
topicSession = topicConnection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
logger.debug(" TopicSession Created "+topicSession);
// temporarly stop the connection for incomiing messages
if(topicConnection!=null)topicConnection.stop();
topic = topicSession.createTopic(TMP_PRC_TOPIC);
logger.debug("Topic Created >>>>> "+topic);
try{
topicSubscriber = topicSession.createDurableSubscriber(topic, "SH_CLR_PRC_CHG");
}catch(Exception e){
System.out.println(" Exception Creating DurableSubscriber SH_CLR_PRC_CHG "+e.getMessage());
}
logger.debug("Subscriber Created >>>>> "+topicSubscriber);
topicSubscriber.setMessageListener(this);
topicConnection.setExceptionListener(this);
topicConnection.start();
}
Topic being created on subscription name SH_CLR_PRC_CHG and messages are comming. But When i restart my application,
1) If no messages are there on the subscription in remote jms server, the connection is created fine
2) If there are some messages are already in the subscription, the createDurableSubscriber() throws exception saying the subsctiption name already exists. and conenction fails.
How do solve this problem. Before creating topicSession.createDurableSubscriber(), is there any way i can check if the subsription name exists or any flag of createDurableSubscriber() that enforces reassigning the same subscription name
Any advises please?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054583#4054583
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054583
18Â years, 11Â months