Rmi connector to add MBean

Hi,all
i have some trouble to add mbean
i connect agent with rmi connector
Here is my code
this is my agent
public class MyAgent {
     //MBean server
private MBeanServer mbeanServer ;
public MyAgent() {
     //create mbean server
     mbeanServer = MBeanServerFactory.createMBeanServer() ;
this is Host.java implements HostMBean
public class Host extends Polling implements
HostMBean,NotificationListener
public Host(String hostName,MBeanServer mbServer){
this is client, i use this to connect agent to add mbean
public AddHostMBean(String ip)
try
RmiConnectorClient client = RMIClientFactory.getClient();
     InetAddress address = InetAddress.getByName(ip);
     ObjectName hostObjName = new ObjectName("Host" +":address="
          + address.getHostName());
Object[] params = new Object[2] ;
String[] sign = new String[2] ;
params[0] = ip;
params[1] = ??;//here is my question
sign[0] = "java.lang.String" ;
sign[1] = ??;//here is my question
     client.createMBean("Host",hostObjName,params,sign);
catch(Exception e)
     e.printStackTrace();
If i write in Agent.java, i can write
public class MyAgent {
     //MBean server
private MBeanServer mbeanServer ;
public MyAgent() {
     //create mbean server
     mbeanServer = MBeanServerFactory.createMBeanServer() ;
Host host = new Host(ip,mbeanServer) ;
mbeanServer.registerMBean(host,hostObjName) ;
That i can create and register HostMBean
but, i don't know how to instantiates the Host class and registers it
on the remote MBeanServer
Please help, thanks

[email protected] (hsienda) wrote in message news:<[email protected]>...
Hi,all
i have some trouble to add mbean
i connect agent with rmi connector
Here is my code
this is my agent
public class MyAgent {
     //MBean server
private MBeanServer mbeanServer ;
public MyAgent() {
     //create mbean server
     mbeanServer = MBeanServerFactory.createMBeanServer() ;
this is Host.java implements HostMBean
public class Host extends Polling implements
HostMBean,NotificationListener
public Host(String hostName,MBeanServer mbServer){
this is client, i use this to connect agent to add mbean
public AddHostMBean(String ip)
try
RemoteMBeanServer connector = new RmiConnectorClient() ; RmiConnectorAddress address = new RmiConnectorAddress() ;
     address.setName("NCNU_AGENT") ;
     connector.connect(address) ;
>
     InetAddress address = InetAddress.getByName(ip);
     ObjectName hostObjName = new ObjectName("Host" +":address="
          + address.getHostName());
Object[] params = new Object[2] ;
String[] sign = new String[2] ;
params[0] = ip;
params[1] = ??;//here is my question
sign[0] = "java.lang.String" ;
sign[1] = ??;//here is my question
     connector.createMBean("Host",hostObjName,params,sign);
catch(Exception e)
     e.printStackTrace();
If i write in Agent.java, i can write
public class MyAgent {
     //MBean server
private MBeanServer mbeanServer ;
public MyAgent() {
     //create mbean server
     mbeanServer = MBeanServerFactory.createMBeanServer() ;
Host host = new Host(ip,mbeanServer) ;
mbeanServer.registerMBean(host,hostObjName) ;
That i can create and register HostMBean
but, i don't know how to instantiates the Host class and registers it
on the remote MBeanServer
Please help, thanks

Similar Messages

  • RMI Connector Server not running in java 1.4

    I have an application using sun JDMK implementation which is running fine in java 1.3 As I go to java 1.4, the RMI connector server is not running, the state goes to OFFLINE. I don't see any exception except that the server doesn't stay alive. Any idea on the problem ?

    If you have the possibility of changing your application so that it uses the RMI connector defined by the JMX Remote API, then I would strongly encourage you to do so. You can get an implementation from http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/download.jsp (look for JMX Remote API Reference Implementation).
    If you don't have the option of doing this in the short term, then you could try turning on JDMK traces by calling com.sun.jdmk.TraceManager.parseTraceProperties() in the main method of your application, and specifying -DLEVEL_DEBUG on the command-line. You will probably see some logging information that will help you diagnose your problem.
    �amonn McManus -- JMX Spec Lead -- http://weblogs.java.net/blog/emcmanus

  • JMX RMI Connector

    In the JMX example, it starts a Server application.
    Basically it initiates the MBeanServer, creates the RMI ConnectorServer
    and then starts the connector and that is it as far as the code goes.
    Why does the server application not exit but continue to run? Is that because the RMI connector server is listening for incoming connections?
    Is another thread created to do this?
    // Create an RMI connector server
    System.out.println("\nCreate an RMI connector server");
    JMXServiceURL url = new JMXServiceURL(
    "service:jmx:rmi:///jndi/rmi://localhost:9999/server");
    JMXConnectorServer cs =
    JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);
    // Start the RMI connector server
    System.out.println("\nStart the RMI connector server");
    cs.start();
    System.out.println("\nRMI connector server successfully started");
    System.out.println("\nWaiting for incoming connections...");

    Hi DongWoo,
    Very nice diagram, thanks for posting this! I envy your drawing skills :-)
    Do you mind if I update my blog posts:
    JMX: Connecting Through Firewalls Using RMI Over SSL And a Single Port (Part III)
    http://blogs.sun.com/jmxetc/entry/jmx_connecting_through_firewalls_using
    and
    Troubleshooting connection problems in JConsole
    http://blogs.sun.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole
    to link to it?
    Best regards,
    -- daniel
    http://blogs.sun.com/jmxetc

  • RMI Connector Warning error

    Anybody knows why RMIConnector print out such error message. It apparently dose not impact JMX connection. JConsole connection still functional.
    Jun 6, 2007 10:13:17 PM ClientCommunicatorAdmin Checker-run
    WARNING: Failed to check the connection: java.lang.IllegalArgumentException: hostname can't be null

    The IllegalArgumentException about null hostname is strange. Can you activate the jmx trace to level "debug" to have the exception stack trace info?
    The JMXConnector has a heartbeat to verify the connection, to print out the waning info means the heartbeat fails, it means usually the connection has trouble.

  • What JMX is in reality ?

    Hi,
    I'm working on a very complex software project design. For my project, a monitoring tool will be crucial ; that's why I'm trying to understand what JMX is. But, I did not find any document explaining what JMX is in reality.
    I have three crucial questions :
    1) What JMX is in reality ? Do someone know concrete and real situations where JMX has been used and How ?
    2) What really is the difference between MBeans and EJBs ?
    3) Could I use JMX wnhen in my architecture when there is 50% J2EE and 50% .NET ?
    Thanks in advance for any helpful feedback.

    1) What JMX is in reality ? JMX is a technology that lets you implement management interfaces for
    Java application.
    The Management Interface is composed of named objects - called MBeans
    (Management Beans). MBeans are registered with a name in an MBeanServer.
    The content of the MBeanServer can then be exposed through various
    protocols, implemented by protocol connectors, or protocol adaptors.
    A protocol connector (e.g. the JMX RMI Connector) exposes the MBeans
    as they are - so a remote client sees the same model than a local client.
    A protocol adaptor (e.g. an SNMP adaptor) performs (or provides hooks to
    let you perform) a model mediation - to adapt the model to what a client
    of that protocol (e.g. SNMP Manager) would expect to see.
    Today there is one standard connector defined for JMX - which is the
    RMI Connector, and comes in two flavors: RMI/JRMP and RMI/IIOP.
    There's also a JMX WebServices Connector in the making - which is being
    defined by JSR 262.
    http://www.jcp.org/en/jsr/detail?id=262
    https://ws-jmx-connector.dev.java.net
    There are also a number of non-standard connectors, either free or commercial
    that have been implemented by the community.
    More on JMX:
    http://blogs.sun.com/jmxetc/entry/looking_for_jmx_overview_examples
    Do someone know concrete
    and real situations where JMX has been used and How
    ?You will find more on tools/products using JMX on the JMX Home Page:
    http://java.sun.com/products/JavaManagement/index.jsp
    Among other things, JMX is used today to manage the JVM itself. It is also
    widely used in the management of application servers.
    See:
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html#manage
    http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html
    http://weblogs.java.net/blog/mandychung
    Understanding JMX Technology
    http://java.sun.com/developer/EJTechTips/2005/tt0222.html#1
    Getting Started with Java Management Extensions (JMX): Developing Management and Monitoring Solutions
    http://java.sun.com/developer/technicalArticles/J2SE/jmx.html
    Managing and Monitoring Web Services in Project GlassFish
    http://developers.sun.com/prodtech/appserver/reference/techart/ws_mgmt.html
    Using Custom MBeans to Extend the GlassFish Administration System
    http://java.sun.com/developer/EJTechTips/2006/tt0327.html#2
    2) What really is the difference between MBeans and
    EJBs ?An EJB lives in an Application Server container. It usually implement business
    logic. An MBean lives in an MBeanServer, and usually implement management
    logic (configuration, monitoring, etc)...
    3) Could I use JMX wnhen in my architecture when
    there is 50% J2EE and 50% .NET ?I am not a .NET user so I'm afraid I can't provide much advice here.
    It may depends on the means you have to reach out for your .NET resources
    from within your Java/JMX application. If you know how to get at your .NET
    resources from Java, then it should be easy to expose them through JMX.
    hope this helps,
    -- daniel
    JMX, SNMP, Java, etc...
    http://blogs.sun.com/jmxetc
    Thanks in advance for any helpful feedback.Message was edited by:
    dfuchs: see also http://blogs.sun.com/jmxetc/entry/what_is_jmx

  • Authentication and authorization for a custom connector

    I have the following problem: I have a software which tries to connect with the server through its own custom RMI connector.
    So I have the  RMI Connector deployed via Mlet-Service. I have written a small TestClient and can get a RemoteMBeanServer  with RemoteMBeanServer rs = getRemoteMBeanServer(), but if I try to call something like  rs.getMBeanCount() I get :
    com.sap.engine.services.jmx.exception.JmxSecurityException: Caller Guest not authorized, only role administrators is allowed to access JMX
    So the WebAS considers someone who tries to connect with this connector as guest. How do can I get authentication  and autorization to access the JMX parts? The manual seems only to cover JSP and webapplications, where it is possible to configure a role for them. I only have this connector.jar, configuration and mlet-file.
    I still have the option to use JAAS authentication with  this connector, then I have to configure it differently and, the more difficult, to implemend
    a method "public Subject authenticate(Object credentials)" where credentials are two Strings with user and passwd. But I am not quite sure how to fill the Subject with useful information.
    Thanks in advance
    Nils

    Jmx is secured resource and only administrator role user
    can access it.
    If your code is running in a servlet you can define
    the servlet to run as administrator
    1. Add in the web.xml
    <security-role>
       <role-name>AnyName</role-name>
    </security-role>
    2. Add in the web-j2ee-engine.xml
    security-role-map>
       <role-name>AnyName</role-name>
       <server-role-name>administrators</server-role-name>
    </security-role-map>
    If you are runnig from a remote client you just have to
    Properties connectionProperties = new Properties();
    connectionProperties.setProperty(
    Context.INITIAL_CONTEXT_FACTORY,
    "com.sap.engine.services.jndi.InitialContextFactoryImpl");
    connectionProperties.setProperty
    (Context.PROVIDER_URL, "<host:p4port>");
    connectionProperties.setProperty
    (Context.SECURITY_PRINCIPAL, "<ADMIN USER>");
    connectionProperties.setProperty
    (Context.SECURITY_CREDENTIALS, "<PASSWORD>");
    MBeanServerConnection mbsc =
                        JmxConnectionFactory.getMBeanServerConnection(
                             JmxConnectionFactory.PROTOCOL_ENGINE_P4,
                             connectionProperties);

  • SimpleAgent doesn't show up in JConsole in RMX RMI demo

    I am going through the JMX tutorial at http://java.sun.com/developer/technicalArticles/J2SE/jmx.html. The local console works fine but when I try the RMI Connector example, SimpleAgent does not show up in the list of MBeans (only JMImplementation, java.lang, and java.util.logging).
    The SimpleAgent class doesn't throw any errors when it tries to register.
    Any suggestions?
    How do I debug such problems. Is there an RMI log somewhere that can be turned on?

    Thanks for replying java_dm.
    You are right to some extent. I have investigated further and found out that the behaviour is like how you describe it, but only when I implement a corresponding interface, which is required when StandardMBean is being extended. When I don't use an interface, a "get"-method will be available both as attribute and operation, but again, this way I won't be able to customize parameter name, and they will show up as p0, p1, etc.
    What is the reason for this behaviour, and how can I expose it both as attribute and operation, which is possible when I don't use it with an interface?
    Thanks for answering

  • Failure to access MBean remotely

    Hi,
    I've been using jdk1.5 and weblogic 9.1 to access remote MBeans. I can access MBeanServerConnection sucessfuly using jdk1.5 jmx rmi connector, but whenever I want to invoke a method on a MBean using
    <b>Object ret = mbsc.invoke(timerON, "getNbNotifications", null, null);</b>
    It throws security related exception as below (note I have enabled IIOP, and the mbsc is the MBeanServerConnection obtained through JMXConnectorFactory, which is sucessful):
    <b>java.lang.ClassCastException: javax.management.MBeanInfo
         at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.isInvokeAllowed(SecurityMBeanMgmtOpsInterceptor.java:81)
    </b>     at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.invoke(SecurityMBeanMgmtOpsInterceptor.java:54)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:149)
         at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:407)
         at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$10.run(AuthenticatedSubjectInterceptor.java:377)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.invoke(AuthenticatedSubjectInterceptor.java:375)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:310)
         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
         at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
         at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)

    Hi,
    I've been using jdk1.5 and weblogic 9.1 to access remote MBeans. I can access MBeanServerConnection sucessfuly using jdk1.5 jmx rmi connector, but whenever I want to invoke a method on a MBean using
    <b>Object ret = mbsc.invoke(timerON, "getNbNotifications", null, null);</b>
    It throws security related exception as below (note I have enabled IIOP, and the mbsc is the MBeanServerConnection obtained through JMXConnectorFactory, which is sucessful):
    <b>java.lang.ClassCastException: javax.management.MBeanInfo
         at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.isInvokeAllowed(SecurityMBeanMgmtOpsInterceptor.java:81)
    </b>     at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.invoke(SecurityMBeanMgmtOpsInterceptor.java:54)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:149)
         at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:407)
         at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$10.run(AuthenticatedSubjectInterceptor.java:377)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.invoke(AuthenticatedSubjectInterceptor.java:375)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:310)
         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
         at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
         at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)

  • Remote RMI (jndi) with OC4J

    I am trying to use OC4J on a machine and an EJB server on
    another one.
    As long as I configure the home lookups with a context in the
    classes I have in OC4J it works alright, but the problem is that
    I must hardcode the EJB server's IP to make it work. That's done
    when creating the context, by setting the property
    (Context.PROVIDER_URL, "rmi://134.127.251.29:1099").
    If that property is not set, the home is looked up in the
    localhost, and then an exception is araised.
    I would expect that, by modifying the rmi.xml file, I could
    configure what server must be used to lookup, but but I can't
    succeed:
    I've set the corresponding port (1099 instead of the default)
    and written the EJB server's IP (with no username nor password,
    though), and it brings errors like:
    Error binding to server:
    com.evermind.server.rmi.OrionRemoteException: Unable to connect
    to 134.127.251.29/134.127.251.29:23791: Connection refused: no
    further information.
    or
    javax.naming.CommunicationException. Root exception is
    java.rmi.MarshalException: Transport protocol not supported by
    server.
    Why isn't it using the port I wrote??
    Thanks.

    The exception you are seeing is coming from the standard RMI connector defined by JSR 160 and included in J2SE 5.0. URLs beginning with "service:jmx:rmi:" are supposed to refer to this connector, but it appears from http://tinyurl.com/dylbt that Oracle's app server is using URLs with a different format. They should have used a different prefix, say "service:jmx:oracle-rmi:" to avoid the sort of problems you are seeing. I suggest you complain vociferously.
    In the meantime, you may be able to get it to work by setting another environment entry in addition to PROTOCOL_PROVIDER_PACKAGES, namely PROTOCOL_PROVIDER_CLASS_LOADER. I think you should be able to add a line like this:
    env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_CLASS_LOADER,
            oracle.oc4j.admin.jmx.remote.rmi.ClientProvider.class.getClassLoader());before you call newJMXConnector.

  • JMX jconsole -- where is my MBean?

    I'm missing something here in 5.0b2's JMX. I've put together a rudimentary standard MBean together, and want to view the data from jconsole (on the MBeans tab). Here's the code I used below to register the MBean.
    String domain = "UserDomain";
    String mbeanClassName = "iccs.support.utilities.corba.ConnectionManagementInfo";
    MBeanServer mbs = MBeanServerFactory.createMBeanServer();
    ObjectName mbeanObjectName = new ObjectName(domain + ":type=" + mbeanClassName);
    mbs.createMBean(mbeanClassName, mbeanObjectName);
    This compiles and runs without error. I can connect to the process with jconsole successfully, but nothing shows up on the tab. I'm finding little documentation to help me out with this very simple case. Am I missing something?

    It seems your MBean server has no RMI connector or protocol adaptor attached.
    If you don't want the trouble to create an RMI connector use the JVM platform MBean server:
    MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();

  • Exchange Server 2010 - Receive Connector for Client Computers

    I have one customer with a SBS 2011 with Exchange Server 2010 - a pretty standard setup except for some customisation with Receive Connectors in order to cater for an application which is installed on a number of computers that requires to use an SMTP Server
    to send notifications. In order to accomplish this (allow to be sent using Exchange Server) we added the IP Address of client computer (which we also set as a DHCP reservation) to a pre-configured Receive Connector (Anonymous setup for Printer/Scanner).
    This worked fine, but we now find that there are other applications that require the same function to use SMTP to send.
    How should/could this be better configured so an application can send if they authenticate?

    Hi 
    For this  you need to create a seperate receive connector to be used for Relay in your organizations.
    Follow the below steps
    1) Create a dedicated Relay Receive Connector
    2) Add only the Ip addresses of the applications which needs to relay on Exchange servers 
    3) You can use either anonymous or authenticated relay according to your relay config
    You can follow the below link as well
    http://exchangequery.com/2013/12/02/steps-to-configure-anonymous-and-authenticated-relay-in-exchange-2013/
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • Writing MBeans on Weblogic Server 8.1 sp5

    Hi,
    I am trying to write a standard mbean for managing my application. As of now its a simple MBean which just needs to print hello world on the server when a MBean Client invokes it. Let me discuss the apporach i have taken. Classes that have been devloped are.
    Interface HelloMBean.java which doesnt extend any interface (as this is not a dynamic mbean). This contains a method hello()
    Class Hello.java implementing the HelloMBean. This contains the method hello() which does the printing on the server when invoked.
    HelloStartup which registers the mbean with the MBeanServer after doing a JNDI lookup for "weblogic.management.server"
    MBeanClient.java which does a look up for the mbean the code of which is :-
    url = "t3://localhost:7001" ;
    username = "weblogic";
    password = "weblogic";
    MBeanHome home = null;
    Environment env = new Environment();
    env.setProviderUrl(url);
    env.setSecurityPrincipal(username);
    env.setSecurityCredentials(password);
    Context ctx = env.getInitialContext();
    //Retrieving the Administration MBeanHome interface
    Object obj = ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    home = (MBeanHome) PortableRemoteObject.narrow(obj, MBeanHome.class);
    WebLogicObjectName mbeanName = new WebLogicObjectName("MBeanDomain:Name=Hello,Type=ServerConfig");
    WebLogicMBean mbean = (WebLogicMBean)home.getMBean(mbeanName);
    Now At the server startup i see that the mbean has got successfully registered by using the isRegistered() method. But when i try to retreive the object from client i am getting a exception javax.management.InstanceNotFoundException.
    I would appreciate if anyone could help me out in this issue. Also if anyone has written any sample code to register and invoke the mbeans written using other interfaces like DynamicMBean, WeblogicMBean etc and could share them or perhaps give pointers in how to go about writing and invoking them in weblogic would be really helpfull.
    I read somewhere that till 7.0 weblogic didnt support writing of custom MBeans can anyone confirm that we can write custom MBeans on 8.1 ??
    My purpose of writing this MBean is to invoke it from across the JVM. I know its possible using rmi but do think MBean would be the rite choice for it.
    Thanks in advance

    Change this code
    <i>WebLogicObjectName mbeanName = new WebLogicObjectName("MBeanDomain:Name=Hello,Type=ServerConfig");
    WebLogicMBean mbean = (WebLogicMBean)home.getMBean(mbeanName);</i>
    to
    MBeanServer mbs = home.getMBeanServer()
    ObjectName oname = new ObjectName("MBeanDomain:Name=Hello,Type=ServerConfig");
    // to invoke your mbean's hello method
    mbs.invoke(oname, "hello", null, null);
    You should remember that for CustomMBean's you cannot use MBeanHome.
    HTH,
    -satya
    BEA Blog:
    http://dev2dev.bea.com/blog/sghattu/
    Get Involved in CodeShare:
    https://wls-console-extensions.projects.dev2dev.bea.com/
    https://wlnav.projects.dev2dev.bea.com/
    https://eclipse-wlst.projects.dev2dev.bea.com/
    https://wlst.projects.dev2dev.bea.com/

  • Add third physical system to logical system

    Hi ,
      We are using GRC AC 5.3 SP12 ( Back end ECC6 HR ) , we have connected our GRC DEV system to DEV 100 and DEV 200 clients , now i have connected QAS 100 client to the same system ( GRC DEV) , we have already created a logical system ERP( with Both DEV 100,DEV 200 ), now when i add QAS 100 to this logical system, I am not getting any risks/Violations for the newly attached system Could you please help me out , If i am missing something here.
    So far i have done following tasks
    1)     Created a JCO connector for QAS 100 in Webdynpro
    2)     Created a connector here in SAP RAR ( This is 3rd Connector , We are using SAP HR connectors )
    3)     Add new system(QAS 100) to logical system ERP
    4)     Generated Ruleset against Logical system
    5)     Full Sync for newly created system to GRC ( after this job, I can see uploaded Users,Roles)
    6)    Now its not showing any risk violation results in RAR
    Looking forward for your response
    Thanks & Regards
    Uma Shankar T
    SAP GRC Consultant

    Actual issues is , our basis team deleted some old Jco connectors  and give this new connector in back-end system when they created a new connector , But we could see 4 connectors from the GRC side configuration--> Connectors
    We have restarted the JAVA server and done the full sync again , Surprisingly problem got resolved now . Looks like a small issue but we got the solution after spending 2 to 3 days and tried different options finally restarting the JAVA server resolved our issue .
    Thanks & Regards
    Uma Shankar T
    SAP GRC Consultant

  • Vibe connector:

    Hi everyone,
    i'm having an error configuring the GroupWise <--datasync--> vibe. The following problem is in the vibe app interface log.
    Code:
    ERROR [Thread-9] [calsync:95] [userID:user-x] [eventID:] [objectID:] [Outbound Sync] Outbound Team Calendar and Task Folder synchronization error processing user [user-x]
    And when i look in the the "webmin -> vibe connector -> profiles -> add new profile -> folder selection" (translated from dutch -> english, might be a bit different), i see no folders, but the message:
    Code:
    "No JSON object could be decoded".
    Which i think might be related.
    edit: addtional info:
    Server OS vibe: SLES11sp1 x86_64
    Vibe version: 3.2
    Server OS datasync: SLES11sp2 x86_64
    data sync version: 1.2
    vibe connector version: v1.0.0.6210
    GW connector version: v.1.2.0.2836
    anyone got a clue?
    Regards,
    Justin

    On 19/11/2012 13:56, JZandbergen wrote:
    > The problem is fixed in:
    > datasync-syncengine-connector-vibe-1.0.1.6338-1.1.noarch.rpm which you
    > can find 'here'
    > (http://download.novell.com/sendredir...t&nohost=false)
    The correct link is http://download.novell.com/Download?...d=QArp8E76Ujw~
    HTH.
    Simon
    Novell/SUSE/NetIQ Knowledge Partner
    Do you work with Novell technologies at a university, college or school?
    If so, your campus could benefit from joining the Novell Technology
    Transfer Partner (TTP) program. See novell.com/ttp for more details.

  • Visio 2013 Connector Styles

    I'm trying to create a visio diagram and I'm running into an issue with Shape Styles for the connector tool.
    Each time I create a new connector, it adds a arrow to the end, for my document this has to be removed.
    I've formated the shape, saved it but the next time I click on the connector tool it turns back on shape styles.
    I've edited the line options but this only applies to the selected line. How can I set the default for all connectors to never use an arrow?
    The more office tries to 'atuomate' the more i miss the good older versions, I must be getting old.
    Can someone point me on where to access the defaults?
    Rob

    I've done as you suggested and the connectors are now being drawn without the arrows. Three points about this generally (feedback for the MS Visio product team):
    1. This is desperately counterintuitive. I should be able to change the line ending, in the Theme or Variant, under the "DESIGN" tab, and not have to go through this esoteric process.
    2. After removing the arrow from the style, as you suggested, the "Shape Styles" preview box on the "HOME" tab is still showing arrows on the end of the line, despite the fact that the connectors do not have them, when drawn with
    the amended style!?
    3. I'm with the Asshat opinion of Howard MArks, above.

Maybe you are looking for

  • Error -DP_FATAL_ERROR = Gateway could not be started - I better exit now

    Hello All, Error while starting BW 3.5 production server. The dsip+work.exe is stopped and throwing error not able to connect. please check the folowing developer trace. Please help my server is down now. trc file: "dev_disp", trc level: 1, release:

  • Bootcamp 2.0, Win XP 32bit and beamer / external monitor activation

    Hi, similar topics have been posted but I could not find any solution yet... My system: MacBook (NOT Pro, Core2Duo, with 10.5 Leopard and Bootcamp 2.0 with Win XP Pro 32bit SP2) and Mini-DVI to DVI adapter. Working on Leopard connecting my external m

  • Help in XML parse

    Can anyone help in parsing a XML formatted like this by using pl/sql: <user><id>myId</id><test><type>XYType</type>hereisthevalue</test></user> thanks.

  • Using Message Driven bean in JDev 9.0.3.2

    Hi all, I'm trying to create a Message bean in JDeveloper 9.0.3.2. I've used the wizard which has (very nicely) created me the bean files, i have also set up OC4J server and deployed to it and it seems to run fine. Now, i'm trying to create a class (

  • How to set defaults?

    I need to permanently set the default for my Mail program to NOT delete my mail off the original server (Yahoo) after one week. This happens every three months: Mail crashes. That's life. I can't open Mail without resetting the Connection (it just cr