« Return to Thread: WebSphere Integration

RE: WebSphere Integration

by Meunier Pierre-Emmanuel :: Rate this Message:

Reply to Author | View in Thread

Ok I made some progress...

1- I finally manage to deploy the Mule RAR into WebSphere. I had to
modify the org.mule.utils.ClassUtils. The initialiseClass(Class) calls
Apache Commons ClassUtils to load the class. This method gets the
ContextClassLoader and when running in WebSphere this classloader
doesn't know about the class to load.

I got it to work with this:

    public static Class initializeClass(Class clazz)
    {
        try
        {
        return Class.forName(clazz.getName(), true,
clazz.getClassLoader());
                // Orignial code
                // return getClass(clazz.getName(), true);
        }
        catch (ClassNotFoundException e)
        {
            IllegalStateException ise = new IllegalStateException();
            ise.initCause(e);
            throw ise;
        }
    }

I am sure there's a good reason why the Mule team used Apache Commons
for this. I am not familiar with it, so I'd like the Mule developers to
advice on how to fix this.

There's probably a dark way of configuring class loaders in WebSphere to
make this work, I'll see if I can get some info from IBM.

But any help would be appreciated

2- I made progress with the WebSphere TransactionManager too. I had to
override the way XA transaction enlist XA Resource in Mule. I attached
the classes.

It is not finished yet as some parameters I pass to the Transaction
Manager are completely rubbish. I believe they are used for tx recovery.
I have asked IBM for some more details about it. In the meantime, if
anybody can help, it'd be much appreciated.

I try the solution in a scenario where a JMS message is copied from a
queue to another and a database row is inserted. Commit and rollback
(seem to) work fine.

I'll update this when I find more. Any suggestions are welcome.

Thanks

Pierre

-----Original Message-----
From: Meunier Pierre-Emmanuel
[mailto:pierre-emmanuel.meunier@...]
Sent: 07 July 2008 12:55
To: user@...
Subject: RE: [mule-user] WebSphere Integration

Thanks. Please keep us updated with this.

I looked into it a bit further:

The IllegalStateException that you receive when deploying the RAR, is
due to a classpath issue,
org.mule.context.notification.MuleContextNotification cannot be found.

This is because org.mule.util.ClassUtils is using
Thread.currentThread().getContextClassLoader() (from Apache Commons
Lang) to load MuleContextNotification class. But this class loader is
not the one which knows about the jars deployed in the RAR (I hope IBM
will help on that!)

As a test, I tried to remove mule-core jar (which contains
MuleContextNotification) from the RAR and put it on the WebSphere
classpath. The RAR deployment is now fine but when trying to start the
application it gives me the following error:

"_ObjectToString" is already registered in the registry..."

This usually means that mule-core jar is duplicated on the classpath.

This is how far I got. I'll keep trying.

It'll be good to hear from IBM (before next year...)

Any ideas/suggestions welcome.

Pierre


-----Original Message-----
From: yaravind [mailto:yaravind@...]
Sent: 04 July 2008 17:10
To: user@...
Subject: Re: [mule-user] WebSphere Integration


I created a PMR for IBM to address the mule RAR deplyment isue...they r
still
looking into it..i will update the thread with more info when i get back
something from ibm...
--
View this message in context:
http://www.nabble.com/WebSphere-Integration-tp18278271p18282314.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email 
************************************************************************

DISCLAIMER
The information contained in this e-mail is confidential and is intended

for the recipient only.
If you have received it in error, please notify us immediately by reply
e-mail and then delete it from your system. Please do not copy it or
use it for any other purposes, or disclose the content of the e-mail
to any other person or store or copy the information in any medium.
The views contained in this e-mail are those of the author and not
necessarily those of Admenta UK Group.
 
Admenta UK plc is a company incorporated in England and Wales
under company number 3011757 and whose registered office
is at Sapphire Court, Walsgrave Triangle, Coventry CV2 2TX
************************************************************************

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

WebSphereXaTransactionFactory.java (998 bytes) Download Attachment
WebSphereXaTransaction.java (2K) Download Attachment

 « Return to Thread: WebSphere Integration