Actions
- Table of contents
- Setup Development Environment
- How to Deploy
- How to Debug
Setup Development Environment¶
This guide describes how to setup the development environment which contains the following components:- Eclipse IDE (Galileo)
- Jboss AS 4.0.4 (local deployment only)
- Jboss AS 4.2.2 (local deployment only)
- Jetty 7.5.1 (local & remote deployment)
All of the projects requires JDK 6.0.
Steps¶
Note: Refer to the Setup Files section to get all of the required files.
- Download and extract the following files to
C drive (C:\)
: - Install the JDK 6.0 Update 23 into
c:\program files
- Edit eclipse.ini
(c:\eclipse_galileo)
and confirm if it's pointing to the JDK which installed in the previous step:-vm C:/Program Files/Java/jdk1.6.0_23/jre/bin/client/jvm.dll
- Launch the Eclipse IDE
(c:\eclipse_galileo\eclipse.exe)
and choose the workspace(c:\eclipse_mcom)
- Navigate to [Window -> Preferences -> Java -> Installed JREs] and then make sure the default is JDK, not JRE, and it's pointing to the JDK location that installed in the previous step
- Click on the CVS Repository view (located at the left bottom of the workspace) and update the user for all of the repositories:
- right click on the repository -> Properties -> User
- Finally, do a CVS Update on all of the project(s)
- right click on the project -> Team -> Update
- done
Setup Files¶
Filename | Description |
---|---|
Eclipse Galileo | Eclipse IDE |
Eclipse Workspace | The Eclipse workspace |
Jboss AS 4.0.4 | Jboss Application Server 4.0.4 |
Jboss AS 4.2.2 | Jboss Application Server 4.2.2 |
JDK 5.0 Update 20 | JDK 5.0 with Update 20 for Windows |
JDK 6.0 Update 23 | JDK 6.0 with Update 23 for Windows |
How to Deploy¶
Local¶
- clean and rebuild the
mcom-connector
project - open Java EE or Java perspective
- [right click on the project] and choose [Debug As -> Run Jetty]
- if started, you can access the application via:
Remote¶
- clean and rebuild the
mcom-connector
project - open Java EE or Java perspective
- execute the remote-deploy Ant target in the build.xml
- existing deployment folder will be overwritten
- if succeed, you can access the application via:
ActiveMQ Admin URL: http://192.168.2.13:8161/admin
How to Start/Stop ActiveMQ¶
SSH
to the cwyrnd3-server,192.168.2.13
cd
to this folder:$ cd /opt/apache-activemq-5.5.1/bin
- execute this command to:
- start:
$ ./activemq start
- stop:
$ ./activemq stop
- start:
- done.
How to Debug¶
- add the desired breakpoint(s) on the Java or JSP
- open Debug perspective
- [right click on the project] and choose [Debug As -> Run Jetty]
- if started, you can access the application via the following URL and begin the debug session:
Extra: Refer to this link for more info about the Debugging in Eclipse IDE
.
Updated by chin-yeh over 12 years ago · 16 revisions