Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #22927 removed Jakarta Management API from GlassFish 6.0.0 #22953

Merged
merged 3 commits into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions appserver/common/amx-javaee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
</properties>

<dependencies>
<dependency>
<groupId>jakarta.management.j2ee</groupId>
<artifactId>jakarta.management.j2ee-api</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.main.common</groupId>
<artifactId>amx-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand All @@ -16,15 +16,12 @@

package org.glassfish.admin.amx.impl.j2ee;

import java.lang.String;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import javax.management.j2ee.Management;
import javax.management.j2ee.ManagementHome;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
Expand Down Expand Up @@ -256,20 +253,6 @@ protected String[] getChildrenAsStrings( final String... args )
return getChildrenAsStrings(types);
}

public final Management getMEJB() {
Management mejb = null;
try {
final Context ic = new InitialContext();
final String ejbName = System.getProperty("mejb.name", "ejb/mgmt/MEJB");
final Object objref = ic.lookup(ejbName);
final ManagementHome home = (ManagementHome) PortableRemoteObject.narrow(objref, ManagementHome.class);
mejb = home.create();
} catch (Exception ex) {
throw new RuntimeException("Can't find MEJB", ex);
}
return mejb;
}

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
package org.glassfish.admin.amx.j2ee;


import javax.management.j2ee.statistics.EntityBeanStats;
import org.glassfish.admin.amx.annotation.ManagedAttribute;
import org.glassfish.admin.amx.core.AMXMBeanMetadata;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,10 @@
*/

package org.glassfish.admin.amx.j2ee;

import javax.management.j2ee.statistics.Stats;
import org.glassfish.admin.amx.annotation.ManagedAttribute;

/**
Defines access to Stats.
*/
public interface StatisticsProvider
{
/**
Return a Stats object

@return the Stats object or null if not available
*/
@ManagedAttribute
public Stats getStats();

}
95 changes: 0 additions & 95 deletions appserver/common/mejb-frag/pom.xml

This file was deleted.

24 changes: 0 additions & 24 deletions appserver/common/mejb/osgi.bundle

This file was deleted.

66 changes: 0 additions & 66 deletions appserver/common/mejb/pom.xml

This file was deleted.

28 changes: 0 additions & 28 deletions appserver/common/mejb/runtest

This file was deleted.

Loading