[JBoss jBPM] - Re: Transaction Issue
by Toriton
Got it.
not more problem and with an XA DataSource. the problems was, this :
UserTransaction
Not specified in other Config files.
If could Help this is my final configuration:
XA DS Oracle (cut and past of the example under JBOSS):
| <?xml version="1.0" encoding="UTF-8"?>
| <datasources>
|
| <xa-datasource>
| <jndi-name>JbpmDS</jndi-name>
| <track-connection-by-tx/>
| <isSameRM-override-value>false</isSameRM-override-value>
| <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
| <xa-datasource-property name="URL">jdbc:oracle:thin:@localhost:1521:XE</xa-datasource-property>
| <xa-datasource-property name="User">system</xa-datasource-property>
| <xa-datasource-property name="Password">123</xa-datasource-property>
| <!--user-name>system</user-name>
| <password>123</password-->
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
| <application-managed-security/>
| <!-- reduce isolation from the default level (repeatable read) -->
| <!--transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation-->
| <!-- separate connections used with and without JTA transaction -->
| <no-tx-separate-pools />
| <!-- disable transaction interleaving -->
| <!-- track-connection-by-tx /-->
| <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
|
| <!--mbean code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter"
| name="jboss.jca:service=OracleXAExceptionFormatter">
| <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
| </mbean-->
|
| <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
| <metadata>
| <type-mapping>Oracle9i</type-mapping>
| </metadata>
| </xa-datasource>
|
| </datasources>
|
and the Hibernate.cfg (missing just the part of all hbm.xml files):
| <property name="hibernate.connection.datasource">java:/JbpmDS</property>
| <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
| <property name="jta.UserTransaction">UserTransaction</property>
|
| <!-- ################################### -->
| <!-- # common settings # -->
| <!-- ################################### -->
|
| <!-- Automatic schema creation (begin) ===
| <property name="hibernate.hbm2ddl.auto">create</property>
| ==== Automatic schema creation (end) -->
|
| <!-- Simple memory-only cache -->
| <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
|
| <!-- logging properties -->
| <property name="hibernate.format_sql">true</property>
| <property name="hibernate.use_sql_comments">true</property>
|
I hope that this can help anyone that need a start configuration.
Thanks for the reply .
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213735#4213735
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213735
15 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Re: Starting JBoss as a Service on Windows XP has an issue
by parag.goyal
You are right,
In our development evoirnment we are working like this way only as you are suggesting .we are just removing the trailing slash.This is also true it is affecting JAVA_OPTS. But how is breaking command line i still could't understand.
Main problem is in our production envoirment where customer can be confused because of path problem(If they have installed some software which leave path with trailing back slash).That is why we are looking some other alternative(other than jbosssvc.exe of JBoss 4.2.2 AS) to install/start/stop/uninstall JBoss as a service on windows.
Even i am able to intall JBoss as a service succes SC.exe utility of windows with command as given below .
sc config JBAS42SVE displayname= "JBoss Application Server 4.32" binpath= "C:\Lang\JBoss\jboss-4.2.2.GA\bin\service.bat" type= own start= auto depend= afd/tcpip .
By this way service is avaiable at Service Controller Page of windows XP .But now i am not able to start service its showing error 1053.
please tell me some alternative way to create JBoss window service.
parag
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213716#4213716
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213716
15 years, 2 months