Skip to content

Commit 5a84217

Browse files
committed
wip: add MDB scheme support in SpaceFactory
1 parent 82deebb commit 5a84217

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jpos/src/main/java/org/jpos/space/SpaceFactory.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public class SpaceFactory {
6767
public static final String SPACELET = "spacelet";
6868
public static final String JDBM = "jdbm";
6969
public static final String JE = "je";
70+
public static final String MDB = "mdb";
7071
public static final String DEFAULT = "default";
7172
private static ScheduledThreadPoolExecutor gcExecutor = ConcurrentUtil.newScheduledThreadPoolExecutor();
7273

@@ -147,6 +148,11 @@ private static Space createSpace (String scheme, String name, String param)
147148
sp = JESpace.getSpace (name, param);
148149
else
149150
sp = JESpace.getSpace (name);
151+
} else if (MDB.equals(scheme)) {
152+
if (param != null)
153+
sp = MDBSpace.getSpace(name, param);
154+
else
155+
sp = MDBSpace.getSpace(name);
150156
}
151157
return sp;
152158
}

0 commit comments

Comments
 (0)