[Fwd: [jotm] Need your help to use and configure JOTM with Sonic JNDI]

View: New views
1 Messages — Rating Filter:   Alert me  

[Fwd: [jotm] Need your help to use and configure JOTM with Sonic JNDI]

by Pierre-Yves Gibello :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A message from the JOTM list... but may concern carol as well (see the end of the message - the user tries Sonic's contextFactory in the carol configuration, anyone around ever tried that ?).

Regards,
 Pierre-Yves Gibello - ExperLog

-------- Message original --------
Sujet: [jotm] Need your help to use and configure JOTM with Sonic JNDI
Date: Thu, 6 Nov 2008 17:57:29 -0500
De: K Ganesh esb.ganesh@...
Pour: jotm@...


Folks,

I would need some configuration help to utilize the power of  JOTM with in Sonic ESB.  Sonic ESB doesn't have an implementation of Transaction Manager to handle distributed transactions with relational datasources ( it has an implementation to handle distributed JMS datasource only).  It uses JMS Server (Messaging  broker) as communication backbone and runs SOA  based java services in it's own JMX ( non-J2EE ) containers unlike in regular app server or web container driven environments. It stores Administered Objects in it's own JNDI.

I want to make use of JOTM and handle the distributed transactions in side my custom java services, those will run in side a JMX container. I was able to setup JOTM  and run my own sample program to handle distribute transactions with two relational datasources using RMI Registry as JNDI store.

I want to try storing UserTransaction object in Sonic JNDI.  Does JOTM require any type of implementation on the server side to use this Jotm object in side my code?


What are the changes need to be done in configuration files to use Sonic JNDI ( I tried modifying configuration specific to Sonic JNDI in jndi.properties)?

I also tried modifying carol.properties file.like shown below  .

carol.start.rmi=false
carol.start.jndi=false
carol.jrmp.context.factory=com.sonicsw.jndi.mfcontext.MFContextFactory
carol.jrmp.url=tcp://localhost:3506/

I'm getting this ServiceUnavailableException though I'm able to access Sonic JNDI via other clients.

Exception Stacktrace:   javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
    java.net.ConnectException: Connection refused: connect]
    at com.sun.jndi.rmi.registry.RegistryContext.rebind(Unknown Source)
    at javax.naming.InitialContext.rebind(Unknown Source)
    at org.objectweb.carol.jndi.spi.AbsContext.rebind(AbsContext.java:182)
    at org.objectweb.carol.jndi.spi.AbsContext.rebind(AbsContext.java:192)
    at javax.naming.InitialContext.rebind(Unknown Source)
    at org.objectweb.carol.jndi.spi.MultiContext.rebind(MultiContext.java:171)
    at javax.naming.InitialContext.rebind(Unknown Source)
    at DistDatabaseHelper.<init>(DistDatabaseHelper.java:72)
    at JdbcDistExample.main(JdbcDistExample.java:77)

Please let me know if I need to know any serious limitation. I would greatly appreciate if you can help me to configure this with Sonic JNDI incase it's possible to use JOTM with out any limitations.


Thanks,
Ganesh




--
You receive this message as a subscriber of the jotm@... mailing list.
To unsubscribe: mailto:jotm-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the carol@... mailing list.
To unsubscribe: mailto:carol-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
LightInTheBox - Buy quality products at wholesale price!