Hi,
Uncommention following section and setting jndi lookup parameters as,
<!--
Uncomment and configure the following section to enable
transactions support
-->
<transaction timeout="30000">
<parameter
name="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</parameter>
<parameter
name="java.naming.provider.url">localhost:1099</parameter>
<parameter
name="UserTransactionJNDIName">java:comp/UserTransaction</parameter>
<parameter
name="TransactionManagerJNDIName">java:/TransactionManager</parameter>
</transaction>
solved the issue!. Now the aforementioned way of getting transaction
manager works fine.
Thanks for the help.
On Mon, Apr 2, 2012 at 12:55 PM, Rajika Kumarasiri <[email protected]> wrote:
> If I remember correctly initially there was some configuration that need
> to add into axis2.xml and this code seems to use that bit of information. I
> also remember that we planned to drop that path and I am not sure about the
> current status. You will need to look into the usage of
> TransactionConfiguration and define the configuration as required.
>
> Hope this helps.
>
> Rajika
>
>
> On Sat, Mar 31, 2012 at 10:53 AM, Supun Malinga <[email protected]> wrote:
>
>> Hi devs,
>>
>> I have a Class mediator which is getting called within transaction
>> mediator.
>> I tried following code fragment to get the TransactionConfiguration
>> within class mediator.
>>
>> SynapseConfiguration synapseConfiguration =
>> messageContext.getConfiguration();
>> AxisConfiguration axisConfiguration =
>> synapseConfiguration.getAxisConfiguration();
>> TransactionConfiguration transactionConfiguration =
>> axisConfiguration.getTransactionConfiguration();
>>
>> But it's getting null for the transactionConfiguration. Help appreciated.
>>
>> thanks,
>> --
>> Supun Malinga,
>>
>> Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>> email - [email protected] <[email protected]>
>> mobile - 071 56 91 321
>>
>>
>
--
Supun Malinga,
Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - [email protected] <[email protected]>
mobile - 071 56 91 321
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev