学习EJB Java EE 1.4 Spec没有IDE [英] Learning EJB JavaEE 1.4 Spec without an IDE
问题描述
从技术上讲,我还是一个学生,所以当IDE对我来说并不陌生,所有的J2EE技术都是。
我有netbeans / eclipse等设置为使用J2EE,但他们创建各种文件夹,xml文件等与一个新的项目。
理想情况下,我想开始使用Textpad / Notepad ++或类似的东西学习,从头开始学习,创建自己的描述符文件,xml文件,蚂蚁构建文件等。我有阅读材料,我只是遇到麻烦与Textpad等不识别任何从javax包。
我确定我需要设置类路径,但是我读了很多关于不设置
一个类路径的警告。另外,如果我设置一个类路径,这是否意味着我还需要包括J2SE6 / 7库路径?我试着做一个像javax.jar这样的系统搜索,没有成功。如果它有所不同,我的机器上安装了Tomcat和GlassFish。
非常感谢任何建议或方向。
像Textpad那么简单,只需使用不支持J2EE的Java IDE 。
更容易遵循教程中的一步一步,特别是第24和25章(会话EJB)。
I'm in an internship with a company that are still using using J2EE1.4 so EJB 2.0/2.1. Technically I'm still really a student, so while an IDE is not new to me, ALL of the J2EE technology is.
I have netbeans / eclipse etc set up to work with J2EE but they create all sorts of folders, xml files etc with a new project.
Ideally, I'd like to start off learning it using Textpad / Notepad++ or something similar, learning from the ground up and creating my own descriptor files, xml files, ant build files etc. I have the reading material, I'm just having trouble with Textpad etc not recognising anything from the javax package.
I'm sure I need to set the classpath, but I've read so many warnings about NOT setting a classpath at all. Also, if I do set a classpath, does that mean I will also need to include the J2SE6/7 library paths also? I tried doing a system search for something like javax.jar to no success. If it makes any difference, I have both Tomcat and GlassFish installed on my machine.
Any advice or direction hugely appreciated.
No need to go so minimal as Textpad, just use a Java IDE without J2EE support.
- Create a project with the right structure.
- Create the necessary descriptors.
- Package the necessary classes, jars and descriptor in your deployment archive.
- Deploy the archive in your target server via admin interface (or automate the build and deployment).
The easier is probably to follow step by step one of the tutorial, especially chapters 24 and 25 (Session EJBs).
这篇关于学习EJB Java EE 1.4 Spec没有IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!