In Eclipse I have one project (j2eeEjb) containing the Enterprise Java Beans, one projects (j2eeClient) contains the corresponding Remote Interfaces and one project (j2eeEar) only assembles everything into an ear-file. The resulting ear-file contains 2 jar-files, j2eeEjb.jar and j2eeClient.jar; this is the corresponding application.xml of the ear- file
<?xml version="1.0" encoding="ASCII"?> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http:// java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5"> <display-name>j2eeEAR</display-name> <module> <ejb>j2eeEjb.jar</ejb> </module> </application> and this is the corresponding ejb-jar.xml of the j2eeEjb.jar <?xml version="1.0" encoding="UTF-8"?> <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0"> <display-name>j2ee</display-name> <enterprise-beans> <session> <ejb-name>StSchBean</ejb-name> </session> </enterprise-beans> <ejb-client-jar>j2eeClient.jar</ejb-client-jar> </ejb-jar> I can call a stateless session bean from a stadalone Java client without any problems. To the experts: Does this structure make sense? Or any suggestions for improvement? To develop a GWT application I would create a new project in eclipse and deploy it to my application server as a separate war-file. Does that make sense? Or should I try to include it into the ear-file extending the application.xml by a web module-entry? Nevertheless I couldn't make a call from my GWT RPC service to my session bean. What would be the best approach to do so? In my opinion there are 2 options: use the @EJB annotation or use @Resource SessionContext ctx; and do a lookup. Or is there any other option? Thanks in advance for any help, I really feel a bit stuck now :-( -Steffen_ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
