Hi guys!


I finally managed to create remote session beans with AndroMDA. I have also 
managed to connect to them by specifying the jndi properties manually. I have a 
few questions though that are bugging me...



1- The ServiceLocator class does not allow any type of connection parameters 
and it's hard to subclass it to implement it. It seems that it was never meant 
to be used with remote beans. Therefore I have to create a properties hash, 
feed it to a new context and narrow the home interface all by hand which is 
kind of cumbersome of you have AndroMDA to do everything else for you. I have 
seen a post by someone else who is having this problem.



2- AndroMDA does not generate any "Remote Client" jar. I can use the "common" 
sub-project but for the session bean I have to copy the generated classes by 
hand to another sub-project which I called "client". Either that or use the 
whole "core" sub-project inside the client project, which I guess is the wrong 
way to do it; Copying the java files to the project did not work, I had to copy 
the compiled class files to the client jar.



3- When I use the "core" package in the client, it works fine on my windows 
box; when I move the exact same project to my RedHat box, with exactly the same 
software versions, I get this strange error (on the client):



javax.naming.CommunicationException [Root exception is 
java.io.InvalidClassException: org.jboss.util.id.GUID; local class 
incompatible: stream classdesc serialVersionUID = 6926421946503004889, local 
class serialVersionUID = 3289509836244263718]



I don't know why it's imcompatible, since it's the same class! It also works on 
the windows version of Jboss and Tomcat (i'm using them separately).



Best regards,

Paulo Santos
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1305#1305
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to