I guessed at:

http://java.sun.com/jmx

How much more public would you like?! ;-)

Rgds,

Dan.

-- 
Danny Yates
 


-----Original Message-----
From: Edgar Silva [mailto:[EMAIL PROTECTED] 
Sent: 24 June 2003 15:36
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Thanks Sebastien....

You're right....

The big problem is I donīt have documentation about
this Specification....

I think that this subjects can be more public, more easy to find.

Regards...

Edgar
----- Original Message -----
From: "Astie, Sebastien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 8:35 PM
Subject: RE: [JBoss-user] Run a class onStartup


Edgar,

When you create an MBean (Standard MBean), It must follow a naming
convention :

Let's call the implementation class Foo, its interface must be called
FooMBean.
It is part of the JMX spec.

I guess that your Mbean is not implemented with this convention.

Sebastien



-----Original Message-----
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Astie...

I just created this class following theses steps:

1) I created a Interface with init(),start(), stop(),detroy() methods.
2) I created a Class called Ebony , which implements the interface above.
3) I made all implementations nested to this class works fine.
4) I made an special file called my_mbean.xml describing my special MBean
this way:

<?xml version="1.0" encoding="UTF-8"?>

<server>

  <mbean code="com.argos.util.jmx.Ebony"
name="DefaultDomain:service=ebony"/>

</server>

Where Ebony is my Class where the implementation was made.

5) I Deploy it

6) I get this error:

19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean
ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  <none>
Incompletely deployed packages:
[EMAIL PROTECTED] {
url=file:/C:/jboss/server/defaul
t/deploy/ebony_service.xml }
  deployer: [EMAIL PROTECTED]
  status: Deployment FAILED reason: Class does not expose a management
interface
: com.argos.util.jmx.Ebony; - nested throwable:
(javax.management.NotCompliantMB
eanException: Class does not expose a management interface:
com.argos.util.jmx.E
bony)
  state: FAILED
  watch: file:/C:/jboss/server/default/deploy/ebony_service.xml
  lastDeployed: 1056408707513
  lastModified: 1056408708000
  mbeans:
]MBeans waiting for classes:
  <none>
MBeans waiting for other MBeans:
  <none>


7) I made the copy of Jar file to de Lib directory of my default
configuration Server...


Have other more simpler way that this above?

Any Idea?

If possible can you send a example of this declaration inside jboss
configuration file?


Regards

Edgar

----- Original Message -----
From: "Astie, Sebastien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 6:30 PM
Subject: RE: [JBoss-user] Run a class onStartup


Hello Edgar,

The obvious way to start a process at startup is to wrap your class in an
MBean and declare the MBean in user-service.xml



-----Original Message-----
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Run a class onStartup


Hi Folks...

Can I put a simple .class to run in JBoss Startup?

For example, to start a SessionBean automaticlly...

Any Idea?

Regards

Edgar



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


_____________________________________________________________________ 
Notice to recipient: 
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. 

When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued by
the pertinent Bank of America group entity. 

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.
_____________________________________________________________________ 




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to