Hi Michael,
you need to specify remote access to your ejbs by adding some property values to <projectroot>/mda/project.xml.
Find the dependency for the spring-cartridge and dd
<ejbViewType>remote</ejbViewType>
to the properties.
If you want to run your application client from within eclipse just add this line below the ejbViewType:
<clientServiceLocatorClassloaderSwitching>on</clientServiceLocatorClassloaderSwitching>
This works for me - if you still have any problems let me know.
Cheers Harald
Chytracek Michael wrote:
Hi all
I hope somebody can help me with this problem. I stuck within a AndroMDA project with some services and the spring catridge (without any web project in it). The plan is to deploy the generated ear in a Jboss Server and access the service beans from another Webapplication on the same Jboss Server.
So generating and deploying the Service Beans works fine, i can see the Beans deployed in the management console in the Jboss server and the ServiceLocator Object generated looks also fine.
Now the problem: when trying to use the ServiceLocator i get a "ClassCastException" because the object comming from "initialContext.lookup(jndiName);" is not my Servicetype but some kind of Proxyobject (Eclipse showing a "$Proxy##").
Do i have to switch a namespace variable to some other value to use EJB Objects in another deployed application?
Mit freundlichen Grüßen
--------------------------------------------------------------------------------
Ing. Michael Chytracek Senior Consultant
IDS Scheer Austria GmbH / Modecenterstrasse 14 / A - 1030 Wien Phone: +43 1 79566-18054 / Fax: +43 1 79566-444 / Mobile: +43 676 8909 80 54 Email: <[EMAIL PROTECTED]>/ Internet: <http://www.ids-scheer.com/>
IDS Scheer Austria GesmbH
Business Process Excellence
SAP Global Services Partner
------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_ids93&alloc_id281&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user