//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") public static <T> T invoke(javax.management.ObjectName objectName, String attribute, Object[] params, String[] signature) public static T Invoke <T>(ObjectName objectName, string attribute, object[] @params, string[] signature) { try { return(( T )_mbeanServer.invoke(objectName, attribute, @params, signature)); } catch (Exception e) { throw new Exception(e); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void flushAuthenticationCache() throws javax.ejb.RemoveException, javax.ejb.EJBException public virtual void flushAuthenticationCache() { try { if (NamingUtil.Instance.JBoss) { MBeanServer mBeanServer = MBeanServerLocator.locateJBoss(); string str = "jboss.security:service=JaasSecurityManager"; ObjectName objectName = new ObjectName(str); object[] arrayOfObject = new object[] { "ces" }; string[] arrayOfString = new string[] { "java.lang.String" }; mBeanServer.invoke(objectName, "flushAuthenticationCache", arrayOfObject, arrayOfString); } } catch (Exception exception) { Console.WriteLine(exception.ToString()); Console.Write(exception.StackTrace); throw new EJBException(exception.Message); } }