[JBoss Messaging] - Can I configure JMS XA Recovery for use with Amazon EC2 auto-scaling in EAP 5.1.2?
by Stanley Tso
Stanley Tso [https://community.jboss.org/people/stso0001] created the discussion
"Can I configure JMS XA Recovery for use with Amazon EC2 auto-scaling in EAP 5.1.2?"
To view the discussion, visit: https://community.jboss.org/message/826014#826014
--------------------------------------------------------------
I am attempting to configure a cluster of JBoss EAP 5.1.2 nodes at Amazon EC2. My goal is to set up a template image so that I can use the nearly the same configuration when I add new nodes with Amazon auto-scaling. I am following the documentation at *https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/5/html-single/Messaging_User_Guide/index.html#recovery https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Appli... and I need clarification on what it is saying.
Let say that I add a new JBoss node using Amazon auto-scaling and I wish for this node to join the existing JBoss cluster, in particular JMS. Is it even possible for a new JMS node to dynamically appear in the cluster and participate in the JMS XA recovery process? My understanding of what the documentation says is that it is possible for a new JMS provider to be defined and added dynamically in "*server/all/deploy/messaging/hajndi-jms-ds.xml*" because this file is located in a directory watched by the hot deployment scanner. I would have to add the new provider (JMS node) to all of the existing JMS nodes in this particular configuration file. However, for new JMS nodes to participate in JMS XA recovery, would I have to also modify "*server/all/conf/jbossts-properties.xml*" to tell the recovery manager that there are new JMS nodes from which we must recover? Isn't this file statically loaded by each JBoss node and if so, does that mean I have to restart the existing JBoss JMS nodes to pick up this new configuration? That would defeat the purpose of auto-scaling in the first place, wouldn't it?
Am I on the right track here? Thank you in advance for your help!
Stan Tso
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/826014#826014]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[jBPM] - JTA in jBPM5.4 on jBoss7.1.1 is inconsistent - Urgent help please
by Arif Mohammed
Arif Mohammed [https://community.jboss.org/people/arif.mohammed] created the discussion
"JTA in jBPM5.4 on jBoss7.1.1 is inconsistent - Urgent help please"
To view the discussion, visit: https://community.jboss.org/message/800174#800174
--------------------------------------------------------------
Hi All,
Iam doing a prototype to evaluate jBPM5 for using it in a web application. I have defined a simple process StartUseCase -> CheckDuplicateOperator -> PersistOperator -> EndUseCase.
In StartUseCase and EndUseCase activities Iam calling LocalTaskService to start and complete the user task respectively. I can't use HumanTask here due to some other reason. Following are the technology stack Iam using.
JBoss7.1.1 Application server
Spring MVC 3.0.5
Hibernate4
jBPM5.4.0.Final
*Problem:* When I create a persistable session I get the exception "*java.lang.IllegalStateException: BaseTransaction.rolback - ARJUNA01604: no transaction!*" When I inspect the stack trace further I see "*java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (JBPM.SYS_C0010966) violated*"
The above integrity constraint violation which is related to primary key in SESSIONINFO table is strange to me, as Iam not having any control over there and it is jBPM's responsibility to insert and update the session information. I also noticed the first line of exception some times during the end of my process, while it is updating the information in DB about the process and this behaviour is sporadic.
It is even strange to me that if I restart the jBoss Application server it works fine with out any exception huff... Am I doing any thing wrong here ? I have attached all of my handlers along with persistence.xml and spring configuration, your quick help is appreciated.
To look at the code you can start at OperatorController.saveOperator which is the trigger point for the process.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/800174#800174]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[Snowdrop] - Remote EJB call (JBoss AS7/EAP6 )
by dako ak
dako ak [https://community.jboss.org/people/dako_t] created the discussion
"Remote EJB call (JBoss AS7/EAP6 )"
To view the discussion, visit: https://community.jboss.org/message/825927#825927
--------------------------------------------------------------
Hi all,
I have deployed an EJB jar on JBoss AS 7/EAP6 and wants to call the EJB from my spring application.
I use the SimpleRemoteStatelessSessionProxyFactoryBean and it works for EJB's which are deployed an localhost.
Thats my sample config:
<bean id="converterConfigEJB" class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean">
<property name="jndiTemplate" ref="remoteEjbJndiTemplate"/>
<property name="jndiName"
value="ejb:/Converter-EJBs/ConverterConfigService!de.mycompany.converter.ejb.interfaces.ConverterConfigServiceRemote" />
<property name="businessInterface" value="de.mycompany.converter.ejb.interfaces.ConverterConfigServiceRemote" />
</bean>
How can I configure that the remote EJB is deployed on a remote host?
I think with JNDI properties but if I look into the EJB client samples from Red Hat they are using a "jboss-ejb-client.properties" file with properties like this: "remote.connection.default.host".
I've tried to use this properties with a "org.springframework.jndi.JndiTemplate":
<bean id="remoteEjbJndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED">false</prop>
<prop key="remote.connection.default.host">localhost</prop>
<prop key="remote.connection.default.port">4447</prop>
<prop key="remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS">default</prop>
</props>
</property>
</bean>
But it doesnt matter which values I set for host or port properties my example works. I think this jboss properties will be ignored. What are the correct properties for host and port?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/825927#825927]
Start a new discussion in Snowdrop at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[JBoss Remoting] - Resteasy @GZIP: Not in GZIP format
by astempfel
astempfel [https://community.jboss.org/people/astempfel] created the discussion
"Resteasy @GZIP: Not in GZIP format"
To view the discussion, visit: https://community.jboss.org/message/826183#826183
--------------------------------------------------------------
Hi all
i'm using JBoss AS7 and Resteasy. My resource methods are annotated with @GZIP, but that doesn't work:
Caused by: java.io.IOException: Not in GZIP format
at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:141)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:56)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:65)
at org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor$FinishableGZIPInputStream.<init>(GZIPDecodingInterceptor.java:30)
at org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor.read(GZIPDecodingInterceptor.java:47)
at org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReaderContextImpl.java:108)
at org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor.read(GZIPDecodingInterceptor.java:51)
at org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReaderContextImpl.java:108)
Did anybody else have this issue and solved it?
regards
angela
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/826183#826183]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months