Are the mbean names correct? Do they both exist?
Yes both of the names are correct. Individually can be deployed and i can see the ObjectName from the jmx console.
It also seems that the notification type should be the value and not the name of a public attribute. That's why i'm using ".184.108.40.206.4.1.1807.500.7.2.0" instead of package.mypath.myClass.MyOID
Should i have to defined it as managed-attribute in order to be exposed and have something like this
<notification type="JBOSS_MONITOR_NOTIFICATION"/>or the code above works only for well defined JBOSS attributes?
Notification type is the (string) type that is stored in the base javax.management.Notification, and it's used to setup a NotificationFilterSupport filter.