[JBoss Cache: Core Edition] - Re: Stress Tests
by manik.surtani@jboss.com
"lovelyliatroim" wrote : anonymous wrote :
| | While you may not have the time to play with this, I would advise to at least keep it on your radar. It is _significantly_ faster than 2.X, and has a smaller memory footprint as well. I expect to release Alpha2 this evening/tomorrow morning, and my goal is to have this in GA by the end of September.
|
| So soon, will keep it on the radar so, how hard/easy would a migration step up be from 2.x to 3.0?? Roughly?
|
Easier than the 1.x -> 2.x move, I expect. The only real API differences that may cause problems:
1. De-generification of Fqn
2. Removed deprecated public constructors on Fqn - only use static factory methods like Fqn.fromString() from now on.
3. Removed deprecated DefaultCacheFactory.getInstance() method - now create one using "new".
Apart from that, the only other changes are internal so while they will affect you (better performance, lower memory usage, different tuning and config options) they won't affect any interfacing code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168674#4168674
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168674
17 years, 8 months
[Management, JMX/JBoss] - Could not see JBoss5.0 mbeans in JConsole
by vaibhavn
Hi,
I want to view the JBoss 5.0 base mbeans in JConsole. I am running JBoss 5.0.0 CR1 and jdk1.5.0_11 release with following settings in run.conf
| JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
| JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"
|
But the server does not start giving following exception
javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.system.server.jmx.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org.jboss.system.server.jmx.MBeanServerBuilderImpl
at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:499)
at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:530)
at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:304)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:219)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:180)
at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:264)
at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:512)
at sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.java:385)
at sun.management.Agent.premain(Agent.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.management.Agent.startAgent(Agent.java:197)
Caused by: java.lang.ClassNotFoundException: org.jboss.system.server.jmx.MBeanServerBuilderImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:441)
at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:484)
... 13 more
The ClassNotFoundException occurred though I see the entry jboss-system-jmx.jar in classloader.xml in the conf directory.
I have also tried instructions given on http://wiki.jboss.org/wiki/UseJDK5JConsole and
http://wiki.jboss.org/wiki/JBossMBeansInJConsole.
Does anybody have any idea about this? any help?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168672#4168672
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168672
17 years, 8 months
[JBoss jBPM] - process variables out of session
by frantisek.kocun@gmail.com
Hi, I use variables (business objects) in ActionHandler
public class Task_ABC implements ActionHandler{
public void execute(ExecutionContext executionContext) throws Exception {
ContextInstance c = executionContext.getProcessInstance().getContextInstance();
Abc abc= (Abc) c.getVariable("abc");
.... do something ...
executionContext.leaveNode();
}
}
Problem is that this variables are not registered in session, if variable has an association and I use it, I get an exception. But if I have variable class has only primitive attributes (String, BigDecimal..) it works perfectly. Workaround is to declare all association in Hibernate as lazy="false" what I don't want. But really interesting is, that if I change value in variable that it will be stored in db. That means that jbpm will register variables in Hibernate session but later and I don't know when.
I don't use any special workflow configuration. This is snip set from my workflow interface:
public class WorkflowService extends HibernateDaoSupport implements IWorkflowService {
private static JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
public void startWorkflow(Workflow workflow, Map<String, Object> variables) {
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
jbpmContext.setSessionFactory(getSessionFactory());
jbpmContext.setSession(getSession());
try {
ProcessInstance processInstance = jbpmContext.newProcessInstanceForUpdate(workflow.getFullName());
processInstance.getContextInstance().setTransientVariables(variables);
processInstance.signal();
} finally {
jbpmContext.close();
}
}
Thanks
Fero
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168667#4168667
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168667
17 years, 8 months
[EJB/JBoss] - Re: Infinite loop Exception while passivating a SFSB
by rapowder
Hi again,
so I'm back from vacation, digging on the problem again.
anonymous wrote :
| A recursive write is okay, but if you keep adding circular references you won't have stack to process the recursive calls necessary here.
|
| Something like:
|
| Map.put(key, AnotherMap);
| AnotherMap.put(key,SubMap);
| Maybe indirectly through fields?
|
I tried to encapsulate many HashMaps and serializing them actually gave me the same exception. So root cause is a StackOverflow as you suggested.
Since in my code I don't have such deep encapsulations, I guess it's an indirect encapsulation through the objects contained in my HashMaps.
I tried to fill as maximum as possible the HashMap in the Bean that may be the cause of the exception, but serialization still worked fine.
So, here is my question:
When serialization occurs, a stack is created for each serialized field or for the whole bean, or even for all serialized beans?
Practically what I'm trying to understand is if the number of serialized beans may have an influence or not?
If I can't reproduce the exception "filling" all the fields of the "guilty" bean, could it help to navigate through my whole webclient in order to maximize the number of serialized beans?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168664#4168664
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168664
17 years, 8 months
[JBoss jBPM] - Re: reopen a process instance ?
by memius
Well, my problem might be that I don't really see that 'box' ;)
When are you talking about a process ? How far does that go ...
Indeed a dossier is db data ... doing some data processing on that dossier is a process ... So if I understand you correctly, you would put the different kinds of related actions in a process (if they are consecutive, eg.)
And not create a 'big' process where you deal with one dossier until it is finished.
Now ... my problem is ... we have some tasks which are related to a dossier but don't really fit in a process (eg. prepare and send a mail if some trigger occurs). Would you create tiny processes for any of those tasks ? Even if they only contain one task... or would you create task instances at runtime and don't put them in any process... (which might not be very consistent, since in the one case you'll create process variable (eg. dossier id) and in the other you'll have to create task variables for the same data)
Anyway .. just some thoughts... I don't expect to get the only exact answer... but these are just some conceptual thoughts I struggle with.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168660#4168660
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168660
17 years, 8 months