The photos have all be uploaded and made available on our server (slocketrocket).
http://slocketrocket.res.wpi.net:8080/photos/
We are working right now on getting photo information retrieved properly in our framework (hibernate issues) and we should have everything integrated soon.
Tuesday, November 18, 2008
Relating Photos and MDOs
We had to make a decision regarding MDO objects and how they would be related to pictures. We decided that pictures will be hosted on the server separately from the database. Each photo has have a unique filename. The Photo table in the database has a unique id, a description, and the unique filename. This table is related to MDO in a relational table that has both ids.
The issue we had was with the initial population of the relational table. Previously, PublicArt objects had a value called 'c2kid' which was also used for the names of the images. They still have this 'c2kid', but the id is no longer used directly to access the images. Instead, we inserted new Photo rows into the Photo table for each PublicArt row, using the 'c2kid' as the name. We then inserted a relation into the relation table for each matching pair of 'c2kids' (PublicArt and Photo).
Using this method, we were able to populate the database while keeping a general format for the relation between the two classes instead of using an arbitrary string ID that is unique to PublicArt.
The issue we had was with the initial population of the relational table. Previously, PublicArt objects had a value called 'c2kid' which was also used for the names of the images. They still have this 'c2kid', but the id is no longer used directly to access the images. Instead, we inserted new Photo rows into the Photo table for each PublicArt row, using the 'c2kid' as the name. We then inserted a relation into the relation table for each matching pair of 'c2kids' (PublicArt and Photo).
Using this method, we were able to populate the database while keeping a general format for the relation between the two classes instead of using an arbitrary string ID that is unique to PublicArt.
Monday, November 17, 2008
Thursday, November 13, 2008
End to End Web Service Working
We were able to get the Framework all .jar'd up and put into the web service. We then did a bunch of compliance testing and got them communicating with each other. The web service can now retrieve data from the database. The client now allows a user to enter an ID, and it will retrieve from the database the PublicArt object of that ID. This marks a giant leap forward because it demonstrates how our framework will be implemented into applications, such as the PublicArt web service or the Admin Console.
The link for this functionality is here. Note that this overrides the previous web service, so you can no longer multiply numbers by two.
The link for this functionality is here. Note that this overrides the previous web service, so you can no longer multiply numbers by two.
Tuesday, November 11, 2008
More work on the MQP report
A folder in SourceForge has been created to hold all of our documents related to the MQP report. I have uploaded drafts of both our Introduction and Background sections of the report. The Background section is still very rough and needs some expansion and reorganization. Right now it clocks in at around 8 pages. Both documents are in .doc format.
Building the Framework
Yesterday, we attempted to build the framework and include it in the web service project. We were able to get the .jar file just fine, but the web service would not deploy correctly. After hours of confusion, we gave up for the night. Today, we had a thought: perhaps the dependencies for the framework were not being accurately compiled into the .jar file. Upon further investigation, we found that this was indeed the case. It turns out Maven does not build the dependencies into the .jar by default. Some web research determined that there is a plugin that makes it easy for Maven2 to build the dependencies into the .jar. We found the link referenced here.
Friday, November 7, 2008
Web service deployed to development server
"Currently, the web service 'PublicArtByID' does nothing but take an int parameter, double it, and stick it in the id of an outgoing XML representation of a PublicArt object. The Client currently takes an integer parameter from the user (no checking or anything) and invokes the Servlet, which sends it to the service. When the Servlet gets a response, it prints out the result."
This functionality can be accessed here.
This functionality can be accessed here.
Subscribe to:
Posts (Atom)