- Timestamp:
- 01/12/09 08:49:34 (14 months ago)
- Author:
- jmoore
- Message:
-
OmeroClustering : Cleaning sessions in jdbc ring and protecting NPEs
(cherry picked from commit bcafc11e48d911ccb405680477e40d66332241d8)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3266
|
r3270
|
|
| 39 | 39 | |
| 40 | 40 | public final BlitzConfiguration blitz; |
| 41 | | public final OmeroContext ctx; |
| | 41 | public final SimpleJdbcTemplate jdbc; |
| 42 | 42 | public final SessionManagerI sm; |
| 43 | | public final Executor ex; |
| 44 | 43 | public final SessionManager mgr; |
| 45 | 44 | public final SecuritySystem ss; |
| 46 | | public final SimpleJdbcTemplate jdbc; |
| | 45 | public final OmeroContext ctx; |
| | 46 | public final Executor ex; |
| | 47 | public final Ring ring; |
| 47 | 48 | |
| 48 | 49 | public static OmeroContext basicContext() { |
| … |
… |
|
| 71 | 72 | this.test = test; |
| 72 | 73 | this.ctx = ctx; |
| | 74 | this.ring = (Ring) ctx.getBean("ring"); |
| 73 | 75 | this.ex = (Executor) ctx.getBean("executor"); |
| 74 | 76 | this.ss = (SecuritySystem) ctx.getBean("securitySystem"); |
| … |
… |
|
| 101 | 103 | id.properties.setProperty("ClusterProxy","Cluster:udp -h 224.0.0.5 -p 10000"); |
| 102 | 104 | |
| 103 | | |
| 104 | | Ring ring = new Ring(jdbc); |
| 105 | | ring.setApplicationEventPublisher(ctx); |
| 106 | | |
| 107 | 105 | blitz = new BlitzConfiguration(id, ring, mgr, ss, ex); |
| 108 | 106 | this.sm = (SessionManagerI) blitz.getBlitzManager(); |
Download in other formats:
1.2.1-PRO © 2008-2009
agile42 all
rights reserved
(this page was served in: 0.52768 sec.)