[Management, JMX/JBoss] - Re: jboss JMX notification type
by leonz11
| <server>
| <mbean code="notificationMbean.NotificationListener"
| name="notificationMbean:name=NotificationListener">
|
| <attribute name="SubscriptionList">
|
| <subscription-list>
| <mbean name="jboss.system:type=Server">
| <!-- <filter factory="NotificationFilterSupportFactory">
| <enable type="org.jboss.system.server.stopped"/>
| </filter>
| -->
| <notification type="org.jboss.system.server.stopped"/>
| </mbean>
| </subscription-list>
|
| <!--
| <subscription-list>
| <mbean name="*:service=invoker,*" handback="anObject"/>
| <mbean name="jboss.monitor:*"/>
| <notification type="JBOSS_MONITOR_NOTIFICATION"/>
| <mbean name="JMImplementation:type=MBeanServerDelegate">
| <notification type="JMX.mbean.registered"/>
| </mbean>
| </subscription-list>
| -->
| </attribute>
| </mbean>
| </server>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039220#4039220
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039220
19 years
[EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
by grdzeli_kaci
hi snau2005,
anonymous wrote :
| very important to switch off logging
of course i did it.
anonymous wrote : use oci driver (in case with oracle)
|
is it helpfull ?? do you think that oci driver is so faster then thin driver ?
anonymous wrote :
| also i used few threads (best speed with 8 threads, i thing this depends on pc (how many processors and so on)), everything was done i one transaction, also you can play with flush().
|
of course i use Thread, Thread will be created on client side and all of them calls my stateless session beam method, i tried to create 50 Threads, and my pc is enough strong, it has 16 CPU, and 16 GB Memory, Sun Solaris,
is it good idea that i use oracle cluster or JBoss Cluster ?
and i cant found any documentation about stored procedures into ejb 3.0, can anybody show me it ?
Regards,
Paata.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039218#4039218
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039218
19 years
[Management, JMX/JBoss] - Re: jboss JMX notification type
by leonz11
thanx, dimitris.
I tried to subscribe the "org.jboss.system.server.stopped" in a simple MBean as the following sample code; but could not get this event notification when I shut down the server with control-C on windows.
--------------------------------------------------------
package notificationMbean;
import javax.management.Notification;
import javax.management.ObjectName;
import org.jboss.system.ListenerServiceMBeanSupport;
public class NotificationListener
extends ListenerServiceMBeanSupport
implements NotificationListenerMBean
{
// Constructors --------------------------------------------------
/**
* CTOR
**/
public NotificationListener()
{
// empty
}
// NotificationListenerMBean implementation ----------------------
// No attributes or operations in this example to implement!
// Lifecycle control (ServiceMBeanSupport) -----------------------
/**
* Start
**/
public void startService()
throws Exception
{
// subscribe for notification, true=dynamic
super.subscribe(true); // listener is me!
}
/**
* Stop
**/
public void stopService()
throws Exception
{
// unsubscribe for notifications
super.unsubscribe();
}
// ListenerServiceMBeanSupport override ------------------------
/**
* Overriden to add handling!
**/
public void handleNotification2(Notification notification, Object handback)
{
System.out.println("Got notification2: " + notification + ", handback: " + handback);
}
public void handleNotification(Notification notification, Object handback)
{
System.out.println("Got notification1: " + notification + ", handback: " + handback);
}
}
-----------------------------------------
service xml
-----------------------------------------
<subscription-list>
</subscription-list>
-------------------------------------------
can you see why I could not get the notification?
Thanx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039217#4039217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039217
19 years
[JNDI/Naming/Network] - can not access file from another machine
by jigu888
Hi All,
I am using jboss-4.0.5.GA. In my java file I am accessing folder which is on the another machine of same network by java.io.File class.
-----------
File file = new File( "\\\\taligentportal\\DMDOCSERVER\\23050\\2006\\2639680" );
if ( file.exists() )
{
System.out.println( "File present" );
}
else
{
System.out.println( "File NOT present" );
}
-----------
Here "2639680" is folder present on "taligentportal" machine. But in this case the program prints "File NOT present" message in log.
I have checked sharing permission on folder DMDOCSERVER of "taligentportal" machine. All rights are given to "EVERYONE" user. This machine is running Windows 2000 OS. The JBoss Server is running on Windows 2003 Server OS.
Now strange thing is that when I run standalone program (on JBoss instance machine) having the same code, it is working fine and prints "File present" message.
So is it something in JBoss that preventing access of network resources when application running?
Let me know if you can help me.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039215#4039215
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039215
19 years