[Datasource Configuration] New message: "XADatasource Oracle configuration"
by Krishna Attravanam
User development,
A new message was posted in the thread "XADatasource Oracle configuration":
http://community.jboss.org/message/530043#530043
Author : Krishna Attravanam
Profile : http://community.jboss.org/people/akrishmohan
Message:
--------------------------------------------------------------
Hi -
I have been trying to bind an XADatasource to JNDI and this is the configuration I am using.But for some reason, I dont see the datasource getting bound to JNDI. Not sure where the problem is. Is there any additional configuration missing? ANy pointers would be helpful.
Ds.xml
<datasources>
<!-- Here's an xa example -->
<xa-datasource>
<jndi-name>OracleXaDS</jndi-name>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@blah:1525:DB</xa-datasource-property>
<security-domain>CustomXARealm</security-domain>
<!--pooling parameters-->
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</xa-datasource>
</datasources>
Login-config.xml
----------------------
<application-policy name = "CustomXARealm">
<authentication>
<login-module code = "mypackage.CustomLoginModule"
flag = "required">
<module-option name = "principal">user</module-option>
<module-option name = "userName">user</module-option>
<module-option name = "password">encryptedpassword</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=XATxCM,name=OracleXaDS</module-option>
</login-module>
</authentication>
</application-policy>
Please help.
Thanks
K
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530043#530043
16 years, 1 month
[jBPM] New message: "start a process within another process in jbpm 4.3"
by Al Nadein
User development,
A new message was posted in the thread "start a process within another process in jbpm 4.3":
http://community.jboss.org/message/530032#530032
Author : Al Nadein
Profile : http://community.jboss.org/people/matrixpooh
Message:
--------------------------------------------------------------
Hi,
Trying to port existing 3.2 workflow implementation into 4.3
My requirement is to be able to calculate a number of sub-processes to start at a certain step of the main process. Since I haven't found the way to do this in jpdl/bpmn, I'm doing this programmatically:
When a main process is instantiated via
ProcessInstance processInstance = WorkflowTest.processEngine.getExecutionService().startProcessInstanceByKey("rmc", variables);
it proceeds through a few java tasks and stops at the wait state. One of those java tasks runs a few calculations and decides to create 2-3 processes (i'm calling them sub-processes for separation of concerns) via:
ProcessInstance processInstance = WorkflowTest.processEngine.getExecutionService().startProcessInstanceByKey("9.any");
The main process stops at the state task and flushes hibernate session.
The hibernate does the following:
inserts records into jbpm4_execution for main process
inserts records into jbpm4_execution for sub-processes
/** does some inserts into history tables */
updates ID_ in jbpm4_execution for main process
updates ID_ in jbpm4_execution for sub-processes ---- The Exception is throw right here
The exception is thrown due to the ID_ field having a unique constrain. Upon insert, ID_ is null, then it's updated with key_+"."+dbid_ value. So if my dbid is 1090015 and process definition key is "rmc", the ID_ is "rms.109001"
Since hibernate first inserts then updates, it fails to insert the second row that also has ID_=null at that moment.
I can think of only two solutions:
(a) drop unique constrain
(b) add 1 line to ExecutionImpl.java::save() right before saving:
*this.id = this.dbid;*
if (dbSession!=null) {
dbSession.save(this);
}
Both of those solutions don't really look apealing. Any suggestions would be greatly appreciated.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530032#530032
16 years, 1 month
[jBPM] New message: "Re: JBPM and WSDL"
by Sebastian Schneider
User development,
A new message was posted in the thread "JBPM and WSDL":
http://community.jboss.org/message/530024#530024
Author : Sebastian Schneider
Profile : http://community.jboss.org/people/sebastian.s
Message:
--------------------------------------------------------------
You don't really have to develop code to access the webservice. You can use a webservice framework for Java (e.g. Axis2) and generate the necessary stub classes from the WSDL provided by your webservice. Afterwards you can use a java task to call this stub classes directly or you can create a class making calls to the stub classes (probobably the better solution). The java and the custom task are the only ones suitable for automatic activities. The user tasks (as the name implies) is just for user interaction via task-forms or any other GUI.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530024#530024
16 years, 1 month