Skip to content

Distributed systems project @ GMIT to demonstrate a web based rmi service.

Notifications You must be signed in to change notification settings

BrianJVarley/Fibonacci_Pull_Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README 
Brian Varley G00290342


Fibonacci RMI Java EE video:

(https://www.youtube.com/watch?v=nX_inqaAzOI&feature=youtu.be&hd=1)


APPLICATION CAPABILITIES:

1)Enter fibonacci number in numberic form on 'home' jsp page .
2)Calls rmi remote fibonacci service.
3)Calculate fibonacci sequence on server side.
4)Returns fibonacci sequence as an array 'fibSequence' to FibonacciServlet.
5)Passes fibonacci sequence to 'result' page to output in an input field.
6)Hyper link to navigate back to 'home' page.

*Funtionalities not implemented due to time constraints:

1)Message queueing system
2)Polling mechanism
3)Polling page, present but not implemented

*Critiques:

1)Passing fibonacci sequence array through url not ideal.
2)Array printed including array brackets.
3)No messaging queue implemnted.

DEPLOYMENT INSTRUCTIONS:

*Run from Eclipse:

1-Configure Server:

1)Windows --> Show View --> Servers
2)Right click --> New --> Server 
3)Expand Apache folder -> Select Apache version
4)Click "Finish"


2-Import Project:

1)File --> Import 
2)Web --> War File
3)Browse to "ds.war" file
4)Click "Finish"
 
3-Add Servlet Jar:

1)Project --> Properties --> Java Build Path --> add external jars
2)Navigate to Apache installation directory --> Lib folder --> servlet-api

4-Run application:

1)Right click "FibonacciServer" --> Run as: Java Application
2)Right click "ds" project folder --> Run as: Run on Server


*Run from command prompt:

#Start RMI service:

1)Open CMD
2)CD to project folder on machine
3)javac gmit/*.java
4)rmic FibonacciImplementation
5)rmic IFibonacci
6)rmic v1.1 keep generated MessageServiceImpl
7)Start java gmit.FibonacciServer 


#Deploy to Apache Tom-Cat
1)Add ds.war to Apache --> "web-apps" folder.
2)Open CMD --> %TOMCAT_HOME%\bin\startup --> Press Enter
3)Open Browser, go to --> http://localhost:8080/ds/

GitHub Link:

https://github.com/BrianJVarley/G00290342_Fibonacc_Pull_Service

CODE REFERENCES:

http://lycog.com/distributed-systems/how-to-implement-java-rmi/

http://stackoverflow.com/questions/16670533/send-parameters-from-jsp-to-servlet-using-post

http://lycog.com/distributed-systems/how-to-implement-java-rmi/

http://stackoverflow.com/questions/4221825/passing-an-array-from-one-servlet-to-another-servlet

http://www.vogella.com/tutorials/EclipseWTP/article.html






About

Distributed systems project @ GMIT to demonstrate a web based rmi service.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages