EJB client with Glassfish
I am learning EJB 3 with Glassfish 3. IDE is Eclipse. I want to write a standalone client test application outside of container. I need javaee.jar, appserv-rt.jar to compile. so I copy these jars from Glassfish lib dir, then I realize all files only contains maven pom file.
Questions
- where to download javaee.jar, appserv-rt.jar with implementation ?
- how to use maven to download it ?
- wh开发者_如何学JAVAere to downaload ejb maven artifacts ?
It sounds like you are having Maven
installed, already. And you are also using it in some of your project. So, why not use maven to build your client project as well?
You can check your local maven
repository for actual jars
.
In case you are interested in exploring Netbeans, that comes with the first class maven plugin, which is just awesome.
Best place to look for Maven books/tutorials, Sonatype.
For Eclipse you just need the plugin m2eclipse via the marked place. For usage without it you have to install Maven from here. Maven will take care of your other questions.
精彩评论