You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2008/12/16 14:35:03 UTC
svn commit: r727048 -
/james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/VirtualUserTable.java
Author: norman
Date: Tue Dec 16 05:35:03 2008
New Revision: 727048
URL: http://svn.apache.org/viewvc?rev=727048&view=rev
Log:
Fix some component lookup stuff.. See JAMES-882
Modified:
james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/VirtualUserTable.java
Modified: james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/VirtualUserTable.java
URL: http://svn.apache.org/viewvc/james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/VirtualUserTable.java?rev=727048&r1=727047&r2=727048&view=diff
==============================================================================
--- james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/VirtualUserTable.java (original)
+++ james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/VirtualUserTable.java Tue Dec 16 05:35:03 2008
@@ -57,16 +57,16 @@
String vutName = getInitParameter("virtualusertable");
if (vutName == null || vutName.length() == 0) {
try {
- vut = ((VirtualUserTableStore) compMgr.lookup(VirtualUserTableStore.ROLE)).getTable(vutName);
+ vut = (org.apache.james.api.vut.VirtualUserTable) compMgr.lookup(org.apache.james.api.vut.VirtualUserTable.ROLE);
} catch (ServiceException e) {
log("Failed to retrieve VirtualUserTable component:" + e.getMessage());
}
} else {
- vut = ((VirtualUserTableStore) compMgr.lookup(VirtualUserTableStore.ROLE)).getTable("DefaultVirtualUserTable");
+ vut = ((VirtualUserTableStore) compMgr.lookup(VirtualUserTableStore.ROLE)).getTable(vutName);
}
} catch (ServiceException cnfe) {
- log("Failed to retrieve UsersStore component:" + cnfe.getMessage());
+ log("Failed to retrieve VirtualUserTableStore component:" + cnfe.getMessage());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org