Mercurial > hg > Members > nobuyasu > jungle-network
diff src/main/java/app/bbs/codesegment/StartBBSCodeSegment.java @ 118:f64ff5bd66f5
Implements persistent for bbs app and Fixed bug JungleUpdater
author | one |
---|---|
date | Wed, 25 Dec 2013 20:02:26 +0900 |
parents | 8f9811a1e00c |
children | cef245f71053 |
line wrap: on
line diff
--- a/src/main/java/app/bbs/codesegment/StartBBSCodeSegment.java Wed Dec 25 18:48:54 2013 +0900 +++ b/src/main/java/app/bbs/codesegment/StartBBSCodeSegment.java Wed Dec 25 20:02:26 2013 +0900 @@ -1,5 +1,7 @@ package app.bbs.codesegment; +import java.io.FileNotFoundException; +import java.io.IOException; import java.util.regex.Pattern; import java.util.regex.Matcher; @@ -12,7 +14,6 @@ import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; -import app.bbs.BulletinBoard; import app.bbs.CreateBoardMessageServlet; import app.bbs.CreateBoardServlet; import app.bbs.EditMessageServlet; @@ -44,8 +45,18 @@ matcher.find(); // String type = matcher.group(1); + NetworkJungleBulletinBoard cassaBBS = null; + try { + cassaBBS = new NetworkJungleBulletinBoard(name); + cassaBBS.init(); + } catch (FileNotFoundException e1) { + e1.printStackTrace(); + System.exit(0);; + } catch (IOException e) { + e.printStackTrace(); + } + /* Jetty registration */ - BulletinBoard cassaBBS = new NetworkJungleBulletinBoard(name); String createBoardMessagePath = "/createBoardMessage"; String createBoardPath = "/createBoard"; String editMessagePath = "/editMessage";