The situation is as follows, I have an app deployed in a jboss-4.2.0.GA server. From that app I dinamically invoke differents jars that includes a reference to an interface of an API that is in the .ear (in another jar).
At runtime I want to link the reference in the jar I dinamically invoke with the instance of my API, so that the api can be used in the jar dinamically loaded.
So far I have not been able to do this because an IllegalArgumentException throws when I do the invockation, and is because differents IDs are assigned to the type of the interface.
Hope understands, I have tried a lot of things and nothing works, so I would apreciate a lot if somebody helps me.