Hey folks,

Short and sweet today - just got together an article about using J2EE application clients in NetBeans 4.1.

http://www.netbeans.org/kb/41/app-clients.html

As you know, this wasn't automated in the IDE. This is one big reason we had to change all the EJB examples in the J2EE 1.4 Tutorial in NetBeans IDE into stand-alone EJBs and stand-alone application clients instead of enterprise apps that had the app client packaged with them.

Anyway, you can make a regular Java application act like a J2EE application client, you just have to create the deployment descriptors yourself, add it to the ent app yourself, and add j2ee.jar to the classpath. But even then you don't get any of the cool stuff like web services support or automatic Call Enterprise Bean (you have to write all the EJB references yourself). All this should be rectified soon, with full automatic J2EE app client support.

Comments:

Someone has applied the described procedure on SUN Java Studio Enterprise 8 which is based on netbeans 4.1 ? I followed exactly all the steps described but the final build of the enterprise application failed with the error: ------------------------------ C:\Program Files\Sun\jstudio_ent8\Projects\TIS\nbproject\build-impl.xml:139: The following error occurred while executing this line: C:\Program Files\Sun\jstudio_ent8\Projects\TIS-ClientModule\build.xml:107: C:\Program Files\Sun\jstudio_ent8\Projects\TIS-ClientModule\${file.reference.build-jar} not found. ------------------------------ It seems the build.xml has something wrong and cannot find "file.reference.build-jar" Are there any suggestions for the SUN IDE ? Thanks in advance Roberto Cisternino

Posted by Roberto Cisternino on January 05, 2006 at 11:56 AM CET #

I am also getting a message \${file.reference.build-jar} not found. It looks like that build.xml is not correct. Does anyone know what's wrong? Thank you.

Posted by Mirza Mustovic on March 24, 2006 at 09:06 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by johnc