|
|
|
@ -30,6 +30,7 @@ import com.fr.stable.core.PropertyChangeAdapter;
|
|
|
|
|
import com.fr.transaction.Configurations; |
|
|
|
|
import com.fr.transaction.WorkerFacade; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
import com.fr.workspace.server.database.DataBaseTypeOperator; |
|
|
|
|
|
|
|
|
|
import java.awt.Window; |
|
|
|
|
import java.sql.SQLException; |
|
|
|
@ -132,8 +133,8 @@ public class ConnectionListPane extends JListControlPane implements ConnectionSh
|
|
|
|
|
DatabaseConnectionPane.JNDI.class |
|
|
|
|
); |
|
|
|
|
NameableCreator[] creators; |
|
|
|
|
if (FRCoreContext.getLicense().limitDatabaseType()) { |
|
|
|
|
// 不支持JDNI,屏蔽接口
|
|
|
|
|
if (WorkContext.getCurrent().get(DataBaseTypeOperator.class).limitDatabaseType()) { |
|
|
|
|
// 不支持JNDI,屏蔽接口
|
|
|
|
|
creators = new NameableCreator[]{jdbc}; |
|
|
|
|
} else { |
|
|
|
|
creators = new NameableCreator[]{jdbc, jndi}; |
|
|
|
|