Yes, I understand it now. Thanks Dimitris for the quick reply.
Also see these URLs:
http://www.zvon.org/tmRFC/RFC3584/Output/index.html (section 3)
http://www.zvon.org/tmRFC/RFC2089/Output/chapter3.html
But, this means that my mapping nodes in notifications.xml depend on my choice
of a version
You are right. The simplest solution would be to just instantiate twice the
snmp-adapter with one instance configured with the managers using v1 and the
other v2.
I think what's more important now is to get on the wiki some real use-cases, so
if you get to configure it correctly for v2 traps,
Hello ,
I am trying to use the Jboss Scheduler to run certain jobs. I have some
classes that need to be run by the scheduler. The Scheduler is able to find
these classes when I put the Jar file in the default/lib directory. But when I
take it out from the directory and instead deploy as a
Turns out it was a faulty attribute in the jboss-service.xml, but I have to
tell you, the error message for failing the dependency was difficult if not
impossible to find in the server logs.
Thank you for your response
View the original post :
Hi all,
I have a simple goal of invoking a session bean on app startup:
| ?xml version=1.0 encoding=UTF-8?
| server
| classpath codebase=. archives=CallCentreWebServiceJAR.jar/
| mbean code=org.jboss.varia.scheduler.Scheduler
name=CallCentreWeb:service=Scheduler
| attribute
what do you mean for main deployment descriptor
the web.xml file?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891572#3891572
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891572
anonymous wrote : What is the application you have deployed?
That is a question, answer it and I will tell you what the main desriptor of
the deployment is.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891575#3891575
Reply to the post :
it is an archive
thanks
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891576#3891576
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891576
---
SF.Net email is Sponsored
In that case you just need to touch the archive (Make the modified time
increment) and JBoss will redeploy the application.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891579#3891579
Reply to the post :
Hi,
I'm researching custom MBean.
Refer to this web site.
http://www.huihoo.com/jboss/online_manual/3.0/ch13s26.html
This web site show how to bind a HashMap to JNDI.
Is there anyway i can bind a Serializable Object instead a HashMap.?
Thanks
View the original post :
If this is the wrong forum, please redirect this.
I have been debugging a problem with JBoss and JNI native code.
I have sample code that runs outside of JBoss, but when run in JBoss
it throws an UnsatisfiedLinkError referencing the method name on the
first call to a native method. I have
Hi everybody
someone can tell me how can I reload an application in jboss without stopping
and starting the jboss service?
I saw that feature in tomcat but I cannot find it in jboss
it is possible to do that?
J.
View the original post :
I am using jboss 4.0.2 which is packaged with Tomcat 5.5, I am not seeing any
attributes for this connector, any clue as to the ObjectName that I will need
to use ?
Thanks
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891421#3891421
Reply to the post :
I have the same problem AND I have the common-httpclient.jar copied to every
single lib dir on my pc! Checked the bug report and am still wandering what
this -L option is. BTW I'm using 3.2.6.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891425#3891425
On second thought
Dimitris - you are correct. By having TestService implement a TestServiceMBean
interface the whole things falls into place very nicely.
Thanks again.
Jim
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891430#3891430
Reply to the post
What is the application you have deployed?
If it is an archive you can just touch the archive and hot deployment will
undeploy and redeploy the application.
If it is an exploded deployment you need to touch the main deployment
descriptor of the deployment and it will be undeployed and
I wish to run JBoss in Fedora Core.
In JBoss' Getting Started guide
(http://docs.jboss.org/jbossas/getting_started/v4/html/install.html#d0e62) :
Once it's downloaded, unpack the archive to a suitable location on your
machine. It should all unpack into a single directory named jboss-4.0.2.
I had accidentally posted into this forum which is wrong.
I have posted into the Installation forum.
Admin, pls delete this post.
Thanks.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891558#3891558
Reply to the post :
I am at my wits end.The lifecycle methods, createService() and
startService() are not being invoked on startup for a class that extends
ServiceMBeanSupport, and overrides these functionsWhat gives ?
I even built the example HelloMBeanIt does not work
You need to read the jmx spec to understand the standard mbean inheritence
rules.
One solution is to make TestService implement a TestServiceMBean interface.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891000#3891000
Reply to the post :
Nice link for starting with MBeans:
http://www.developer.com/java/other/article.php/10936_2212031_2
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891005#3891005
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891005
Thanks Guys,
I got it working. It was mostly a deployment issue.
Jim
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891032#3891032
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891032
Hi everybody,
I wish to launch Quartz Jobs at the launch of my JBoss server using a services
file.
Problem is that the services are lanched before the deployment of my WAR file
and so, I get a No class Loaders def found error.
Is that possible to configure the deployment order in order to have
JBoss version? Tomcat 5.5 exposes the connector list via JMX, you can get data
from that.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891137#3891137
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891137
Any errors before that one?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891138#3891138
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891138
---
SF.Net email is
How can I get the port using jmx or is there another way besides reading from a
xml file on disk.
Thanks Don
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890948#3890948
Reply to the post :
You cannot just remove services at random. You need to figure out the
dependencies and remove them as well. In case some of the dependencies are
core, you wont be able to remove them. But yes, removing the SARs is all that
is required to remove services
View the original post :
Hello
BackGround
We are developing a J2EE based application using JBOSS as the application
server. We want to publish some application specific counters for monitoring
the load/performance.
This product was earlier running on windows OS (normal COM Server) and we had
integerated our
There is open source GUI tool JmxMonitor for watching JMX MBeans remotely; You
can set threshold values which are watched for violation, if any are, e-mails
sent out, GUI displays the alerts, etc.
The code uses the adaptor pattern to connect to a JMX Server, so it can also
work with a socket
hum.., thanks fro the tip, but I have a custumer that have a Jboss that will
only had a webapp and this app will use a remote EJB in other Jboss and I'd
like to able only the Servlet Container (I think he won't use only a tomcat).
Best Regards
Thiago.
View the original post :
Here is the error that I get while I'm trying to install Jboss on Solaris 10:
11:54:33,850 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
[EMAIL PROTECTED] {
url=file:/opt/jboss/jboss-4.0.2/server/default/deploy/http-invoker.sar/invoker.war/
Folks,
Here is what I would like to do:
public interface TestMBean extends org.jboss.system.ServiceMBean{}
public abstract class AbstractTestService
extends org.jboss.system.ServiceMBeanSupport
implements TestMBean{
public abstract boolean testMethod();
}
public class
Hi all,
Anybody could explain to me how can I disable some services in Jboss.
I read about it but the explanation is strange because it say that I should
remove .sar diretorys from Jboss deploy directory and when i do this the Jboss
throw many exceptions...
any help is apreciated,
best
ramone1234 wrote : Do you have any idea why this is happening?
The short answer is that the logging monitor service is being deployed before
JBossWeb (Tomcat), so the MBean you wish to monitor is not yet available. The
errors you see go away (and everything works like you wish) once the MBean
I use jboss v.3.2.5 and 3.2.7
If user use web only one, process of web will complete.
But if user 10 - 20 person use, process will slow hang.
** see in Tomcat status have some process Time will increase continous and
CPU Usage will upper to 100% in soon.
I try to twiddle command for unregister
Hello, James!
Thank you very much for your reply!
It worked just fine and now I am able to monitor my app http sessions :0)
but I have a tricky question: when JBoss is starting, I get the following error
message:
09:51:33,908 ERROR [LoggingMonitorTimerTask] Unable to log MBean attributes:
ramone1234 wrote : Unfortunately, the Logging Monitor Wiki doesn't give any
clue or a better explanation about what might be the logger attribute. May
you give me a hint about where can I find this information?
The logger attribute is the name of the Log4j logger that you wish to use.
Hi, guys!
I've been analyzing JBoss LoggingMonitor for some days and I'm surprised how
simple it is to configure and use :)
By now I want to monitor two attributes (activeSessions and
expiredSessions) of MBeans that matches this pattern:
jboss.web:host=localhost,path=/MyWebContext,type=Manager
There was an error with the example in the original post
!--monitoredmbean
name=jboss.web:host=localhost,path=/web-console,type=Manager
logger=???
!--attributeactiveSessions/attribute--
!--attributeexpiredSessions/attribute--
/monitoredmbean--
Thanks
Fernando
View the
An *-ds.xml is not a mbean. You can go through the xsl deployer's xslt and
figure out the 3 means that are generated and deal with those if you want a
consistent syntax. However, now you are also dealing with implementation
details that are subject to change.
We stopped exposing the mbeans and
When I tried using a POJO which implements the Schedulable interface and calls
a Session bean's method in it's perform method, it always returns
NamingException, although I have already put depends tag in the
scheduler-service.xml file to make sure the session bean's service
I'm concerned about how configurations are handled in Jboss - mail-service.xml
is a managed resource, but so is hsqldb-ds.xml -- so why are they so different
file-wise and mbean-wise?
I'm looking to create an additional MBean on top of the existing CMP
persistance layer so that it could be
Can you please elaborate??
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3889029#3889029
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3889029
---
SF.Net email is
dhartford, start a new thread for a new topic. This is called thread hijacking
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888983#3888983
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888983
Its part of the jmx-console web application.
see JBOSS_HOME/server/default/deploy/jmx-console.war/WEB-INF/classes
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=345#345
Reply to the post :
Lets say that I have a custom service deployed as JBoss kernel service. The
service listens to arbitrary protocol and maps the protocol messages to EJB
calls. To be able to control the transaction etc. properties of the calls, I'd
like to invoke the EJB container within the kernel, not as
hi
I am trying to get a info related to external invocation of jboss Schdulable
class implements jboss.varia.scheduler.Schedulable.
i have jboss Schdulable class which implements
joss.varia.scheduler.Schedulable.
it works fine on specified time interval . But if i have to invoke it
If your JBoss server is running on a windows machine. You may have to check
the 'jboss-service.xml' file in the 'http-invoker.sar/META-INF' directory of
your JBoss server configuration.
I've seen that a the windows server hostname may default to it's short name or
DNS alias. When the client
Hmm...I created a JMX MBean (using xdoclet) and everything seems good.
However, when trying to use managed properties, on a server reboot those
properties are not persisted.
In my ignorance, what have I missed to be able to remotely configure and
persist the configuration
I'm not liking this so far...I can read and write to a property file - if I do
it programatilly in the MBean code but not via any other means.
I'm also concerned about how configurations are handled in Jboss -
mail-service.xml is a managed resource, but so is hsql-ds.xml -- so why are
they so
Solved upgrading from 4.0.0 to 4.0.2
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888486#3888486
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888486
---
SF.Net email
Would someone please explain the purpose of the classes DomainData and
MBeanData. THey reside in the package org.jboss.jmx.adaptor.model.
THank you
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888535#3888535
Reply to the post :
Say I have an mbean that exposes a method whose parameter is an object that I
created. Say the parameter is com.mycompany.Customer and that object has
properties for Name, Age, Address, Phone, etc. Is it possible to use the
jmx-console to enter values for my Customer object? Do I need to
Hi,
I have an application deployed on Weblogic that I am migrating to JBOSS 4.0.2.
As part of the application, I access the Weblogic MBean Server to access
connection pool information and perform operations on the connection pool
programatically.
Psuedo Code:
//Get Inital context
//Get the
Is flush equvivalent to the reset?
Yes
What is the equivalent for the shrink?
Setting MaxSize attribute to a smaller value and calling flush method
Regards
Ulf
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888137#3888137
Reply to the post :
I am confused by the SchedulePeriod attribute. It seems like its semantics have
changed.
I thought it meant time between starts (3.2.5). However, in 3.2.7 it seems to
mean time from finish until next start.
Does anybody know which is intended?
Dan
!--
| | This example shows how
Up to my knowledge it has always been time from finish until next start.
Regards
Ulf
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888140#3888140
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888140
schrouf wrote : Up to my knowledge it has always been time from finish until
next start.
Strange. We have a nightly job that takes somewhere between 8 s and 50 min. We
have configured it with SchedulePeriod = 24 * 60 * 60 * 1000.
Using 3.2.5, the job has started same time every night (01:00),
If this is the intended behaviour, it feels strange
Well, at least it is the implemented behaviour :-) But I do share your feelings
that a rescheduling relativ to the start (and not the end) of the previous
invocation most often would be a better solution. A special case would be when
the
HI,
I am trying to write a class that requiremees
org.jboss.jmx.adaptor.model.MBeanData and I need to put the Jar file on my
classpath. Where Jar file contains it? Also is there a cross reference table
anywhere that relates classes, packages and Jar files?
Thank you.
- andy
View the
I am using RMI connector to add notification listener to an Mbean. (jboss 3.2.5)
All work well at startup. The client can receive all remote notification sent
by Mbean. But after jboss run several hours, there is an exception while Mbean
is sending out notification:
Hi,
Is there any way where i can specify a dependency of a MBean on a .ear file.
My ear file contains:
- xyz_ejb.jar --- EJBModule
- abc.jar
- 123.properties
My MBean depends on the abc.jar file which actually uses the 123.properties
file to do some processing. Now, i could not find a way
Hi,
I found the reason why the dependency is not working:
http://wiki.jboss.org/wiki/Wiki.jsp?page=MyDependencyDoesntWork
This says that:
anonymous wrote :
| That is because that MBean is not a service, NOTE: there is no service=,
but more generally it is not created through an MBean
In my code after jboss restarting i need to run my_deployer again to make my
ear file visible for server.
Is it posssible to upload .ear file to jboss folder (not using ant)?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3887314#3887314
Reply to the post :
Hey all,
I plead ignorance to JMX, but it seems like this may be the right place to ask.
Is JMX the proper technology to allow for remote configuration of services?
For example, the mail-service.xml seems to tie to an MBean...but in the jboss
JMX-Console, most of those properties are read-only
Yes JMX is the way to go. It so happens that the mail service has its
properties read-only, but that's because of how it was written. Take a look at
the code in CVS for MailService.java.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3887101#3887101
Reply to
Hi everybody,
I´m trying to access an own Singleton MBean remotely, but the examples that I
found are not working for me:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JMXMBeanRemoteProxy.
First of all, I took out the InvokeTargetMethod tag from my jboss-service.xml
that is in the .sar that
Just as an update, I've got an XMBean deployed, but I'm still having trouble
sharing objects between this Bean and the Interceptors/Handlers. I thought I
could share a custom static configuration object between them all (since the
Interceptors and Handlers already share a static processing core
Heheh, okay, problem solved! I hadn't configured the shared static object
correctly (*it* was static, but its shared internal data structures weren't) ...
So, for anyone else wanting to try this, I developed a means of configuring the
behaviour of request interception mechanisms remotely
There was an original thought to have a complete policy specified, but with the
introduction of JACC and other authorization standards like XACML the
configuration of authentication and authorization are two seperate services.
The current security api and services need to be updated to support
I figured it out. My SecurityManager configuration was missing the two roles
that I needed.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3886226#3886226
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3886226
If you could give a list of the necessary improvements to be done in the
current security api and services I thank you a lot.
I take a look in the Sun´s XACML site and I liked of the idea.
The JACC JBoss implementation delegate the permission(except EJB and WAR
permission) to java policy.
Someone already did a prototype of JACC built on XACML and talked about it in a
bof at javaone this year. I'll be working with him to get it into the codebase
as at least a testcase for an alternate JACC implementation. Here is the dev
forum topic that will be used to get the development going:
I made a new AuthorizingClass for
org.jboss.jmx.connector.invoker.AuthorizationInterceptor and I´m using
MBeanPermission for the authorization.
Just fine, but I´d like to use authorization like the AuthenticationInterceptor
that get the SubjectSecurityManager and from him get the users tha can
Sorry I was thinking in this configuration file:
application-policy name = jmx-console
|authentication
| login-module
code=org.jboss.security.auth.spi.UsersRolesLoginModule
| flag = required
|module-option
Have you been able to get a securityConf Associated with this Queue?
I'm trying to do the same thing with a Topic. But I haven I cannot
authenticate.
-Michael
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3885952#3885952
Reply to the post :
Here's the code I'm using:
| private void registerTopic(String topicname)
| throws MalformedObjectNameException, Exception {
| createDestination(org.jboss.mq.server.jmx.Topic,
| getTopicObjectName(topicname), topic/ +
For the record it doesn't have to be a Session bean that implements a
Schedulable. It can be a POJO.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3885955#3885955
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885955
Hi,
I'm trying to develop a dynamically-reconfigurable class which is to be used
within JBoss by my own custom EJB Interceptors and Axis Handlers. I'm also
wanting to create the class in such a way that it can have its internal
configuration objects updated from a remote location. Having read
I'm not possitive this is what I need to do but it makes sense. I'm
dynamically creating a topic at runtime. It shows up in the jmx-console and is
started however when I try to connect to it I get an Exception that states its
unable to authenticate. So I added some additonal code that I
I solve my problem. I find how to do that. I leave here my solution, because
this could help other people.
1- Create a session bean that implements Schedulable.
2- Implements the method perform and put there the code to be executed by
Scheduler
3- create a jboss-service.xml and put this file in
| ...
| // MBeanServer server = MBeanServerLocator.locateJBoss();
| MBeanServer server = ManagementFactory.getPlatformMBeanServer();
|
You probably look in the wrong MBeanServer. Use the MBeanServerLocator, it's
commented out in your code.
View the original post :
Hello,
I have trouble setting up a sar file. Please note that I'm not too familiar
with these king of deployment file yet.
My sar file contains a META-INF/jboss-service.xml file as well as an
scheduler_ejb.jar file. The jboss-service.xml file starts a Quartz scheduler
(allowing my
Hello,
I understood what the problem was. Sorry for the disturbance.
For future readers :
The 'defaut' config contains file jbossjca-service.xml which declares the
CachedConnectionManager MBean.
Furthermore, JBoss deploys sar files BEFORE *-service.xml files. See Wiki.
This fully explains
Changing the name of the service in the jboss-service.xml file was the solution
to my problem. Though I don't know why that was the problem.
When I did the ObjectName lookup I tried both com.relevant:service=E3Settings
and also com.relevant:name=E3Settings
Thanks for the help,
David
View the
I have deployed my multithreaded application as a mBean and want to monitor it
using JMX console.
I started with JBoss minimal server with just my application.sar, tomcat sar
and jmx-console.war. How do I make JBoss deployer go about deploying in the
following order -
1)Deploy Tomcat service,
How can I configure my MDB to receive messages only after a certain interval of
time. I mean the MDB will retrive messages from the Queue after every two hours
and not as soon as the message is entered into a Queue
View the original post :
How can I configure my MDB to receive messages only after a certain interval of
time. I mean the MDB will retrive messages from the Queue after every two hours
and not as soon as the message is entered into a Queue
View the original post :
I've found solution:
| public void doDeploy() {
| try {
| getServer().invoke(
| new
ObjectName(jboss.deployment:flavor=URL,type=DeploymentScanner),
| addURL,
| new Object[] { file:/E:/Work/ear/my_ear_name.ear },
| new String[] {
The right code is:
| private MBeanServerConnection getServer() {
| if (mBeanServer == null) {
| try {
| Properties props = new Properties();
| props.put(java.naming.factory.initial,
|
Or you could copy the file over if you have the server's deploy directory
mapped to your machine via Samba or NFS or something...
Or use FTP or HTML to upload the file, using the commons net library from
apache...
I do this sort of thing with Ant all the time (using a deploy target in an Ant
I have implemented a simple MBean and tested it using the JMX Console but I get
an error when I try to execute any method programatically from my ejb session.
The error is
[STDOUT] java.lang.reflect.UndeclaredThrowableException
| 18:39:36,931 INFO [STDOUT] at $Proxy57.getDbDriver(Unknown
javax.management.InstanceNotFoundException: com.relevant:name
=E3Settings is not registered.
Perhaps it was not deployed at this time?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3885622#3885622
Reply to the post :
There is a method on the jboss.mq:service=DestinationManager to
programmatically create a queue.
I think your problem was, though the MBean was created, the attributes (like
destination manager, etc.) were not set and start was not called.
View the original post :
You can set a scheduled delivery time on the message.
http://docs.jboss.org/jbossas/admindevel326/html/ch6.chapt.html
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3885625#3885625
Reply to the post :
Can you file a bug on jira.jboss.org ?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3885627#3885627
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885627
---
SF.Net
Hi all. I want to generate reports automatically.For that i am using jboss
AS scheduling (JMX timer) Service.But i want to pass schedule arguments
dynamically rather than placing it in xml.can any one guide me how to
pass those arguments from ui to xml.
mahesh adepu
iic technologies
View the
Hi all. I want to generate reports automatically.For that i am using jboss
AS scheduling (JMX timer) Service.But i want to pass schedule arguments
dynamically rather than placing it in xml.can any one guide me how to
pass those arguments from ui to xml.
mahesh adepu
iic technologies
View the
The task is to create several Queues from standalone application. i use next
code:
| MBeanServer lServer = MBeanServerFactory.createMBeanServer();
| ObjectInstance myQ = lServer.createMBean(
| org.jboss.mq.server.jmx.Queue, new
ObjectName(
|
Is it possible to deploy .ear to the running JBoss 4.0.2 server from other JVM
(from standalone application)?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3885307#3885307
Reply to the post :
701 - 800 of 2728 matches
Mail list logo