[Remoting] - EJB3.0 Slower when using Jboss Serialization
by sebastiendeg
Hi All,
I'm developing and EJB3.0 application, using remote Call from client (java SE).
When I switch the EJB 3 Invoker to use Jboss Serialization, it seems to be slower. (about 200ms for a remote call that takes 150ms with default config).
I only update the jboss-service.xml file located in /server/default/deploy/ejb3.deployer/META-INF
Here is the config of my invoker ::
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
| <depends>jboss.aop:service=AspectDeployer</depends>
| <attribute name="InvokerLocator">socket://${jboss.bind.address}:3873/?serializationtype=jboss</attribute>
| <attribute name="Configuration">
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </attribute>
| </mbean>
|
Tks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158009#4158009
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158009
18 years, 1 month
[Management, JMX/JBoss] - Re: How to programmaticly schedule many tasks ?
by dmary
For moment, I've succeed in create one task programmaticly, but :
- first I add a schedule which must start 30 sec after
- I stop the server which add schedule
- I didn't see the schedule started on one other node on my farm (3 servers)
Did I forgot something ?
MBeanServer server = MBeanServerLocator.locateJBoss();
| ScheduleManagerMBean schedule = null;
| try {
| ObjectName pProvider = new ObjectName("jboss:service=SingleScheduleProvider");
| ObjectName pTarget = new ObjectName("jboss:service=SchedulableMBeanExample");
| schedule = (ScheduleManagerMBean) MBeanProxyExt.create(ScheduleManagerMBean.class, "jboss:service=ScheduleManager", server);
| String[] params = {"NOTIFICATION", "DATE", "REPETITIONS", "SCHEDULER_NAME", "java.lang.String"};
| Date d = new Date(Calendar.getInstance().getTime().getTime()+30000);
| System.out.println("adding task for "+d);
| schedule.addSchedule(pProvider,pTarget,"hit",params,d,2000,9);
| } catch (Exception e) {
| e.printStackTrace();
| }
<mbean code="org.jboss.varia.scheduler.SingleScheduleProvider"
| name="jboss:service=SingleScheduleProvider">
| <depends >jboss:service=mypartition</depends>
| <depends>jboss:service=ScheduleManager</depends>
| <depends>jboss:service=SchedulableMBeanExample</depends>
| <depends optional-attribute-name="ScheduleManagerName">jboss:service=ScheduleManager</depends>
| <depends optional-attribute-name="TargetName">jboss:service=SchedulableMBeanExample</depends>
| <depends>jboss.ha:service=HASingletonDeployer,type=Barrier</depends>
| <attribute name="TargetMethod">hit( NOTIFICATION, DATE, REPETITIONS, SCHEDULER_NAME, java.lang.String )</attribute>
| <attribute name="DateFormat"></attribute>
| <attribute name="StartDate"></attribute>
| <attribute name="Period"></attribute>
| <attribute name="Repetitions"></attribute>
| </mbean>
| <mbean code="org.jboss.varia.scheduler.example.SchedulableMBeanExample"
| name="jboss:service=SchedulableMBeanExample">
| </mbean>
| <mbean code="org.jboss.varia.scheduler.ScheduleManager"
| name="jboss:service=ScheduleManager">
| <attribute name="StartAtStartup">true</attribute>
| </mbean>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157996#4157996
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157996
18 years, 1 month