Example code from Advanced Java/PeopleCode presentation
Description
The Advanced Java/PeopleCode presentation has been given a few times. It's focus is primarily focused on PeopleCode developers that are moving toward Java, but Java developers that are working with PeopleCode will also find it useful. This is a FollowAlongProject, intended to illustrate a concept. It is not production quality code.
The scenario is that we are creating a custom FTP server to run within PeopleCode. Rather than try to create this from scratch, we are using the Java/PeopleCode support and the Apache MINA FTP library. We use some example Java code from the Apache website as a starting point and then translate that to PeopleCode. You can follow along in sequential order by looking at ticket:1. The commit messages, ticket comments, and attached files go through the concepts step by step.
Downloading the Project
Here is how you can download this project for your own use:
The current version of the PeopleTools objects can be installed in your environment using the following attachment. Here are the instructions for how the installers work. Also, at the bottom of this wiki page are attachments for the other revisions in the source code repository.
Any other objects can be downloaded directly from the pshome folder in the source tree
Bugs/Feature Requests
You can find the tickets for AdvancedJavaPeopleCode here.
If you have any issues following along or find other problems (that are not already mentioned), you can create a new ticket (requires registration).
Source
You can browse through the source code here. The main place of interest is the FTPSERV_DEMO PeopleCode.
Registered users can check out AdvancedJavaPeopleCode from here using Subversion.
Recent Code Changes
[58] by chris.heller on 2010/06/25 21:50:36
Revert changes from changeset:57
[57] by scooby.doo on 2010/06/25 21:47:56
Example check-in from outside of App Designer
[13] by chris.heller on 2010/06/16 23:35:59
Tell the FTP server library that the passwords in the user config file are not encrypted in the file, which is it's default setting.
[12] by chris.heller on 2010/06/16 23:32:03
Work on ticket #1 - initialize log4j so that we are logging at the INFO level; helps keep our logs a little bit more manageable and demonstrates the use of Java statics from PeopleCode as well.
For more examples of using log4j within PeopleCode, take a look at Jim Marion's weblog, http://jjmpsj.blogspot.com/search/label/log4j
Attachments
-
AdvancedJavaPeopleCode_rev7.zip
(302.7 KB) - added by chris.heller
19 months ago.
-
AdvancedJavaPeopleCode_rev8.zip
(303.0 KB) - added by chris.heller
19 months ago.
-
AdvancedJavaPeopleCode_rev9.zip
(303.0 KB) - added by chris.heller
19 months ago.
-
AdvancedJavaPeopleCode_rev10.zip
(303.2 KB) - added by chris.heller
19 months ago.
-
AdvancedJavaPeopleCode_rev11.zip
(303.5 KB) - added by chris.heller
19 months ago.
-
AdvancedJavaPeopleCode_rev12.zip
(303.6 KB) - added by chris.heller
19 months ago.
-
AdvancedJavaPeopleCode_rev13.zip
(303.6 KB) - added by chris.heller
19 months ago.


