[JBoss Portal] - Re: No such user admin
by nvipas
Thanks for info on location of the .cfg.xml files. The issue was in portal-oracle-ds.xml. Having noticed there are two places to provide un/pw, I eliminated the un/pw in the connection-url line. And that somehow triggered the 'No such user admin' issue. Don't know how. Obviously this is some kind of a very minor bug that trips users who tend to think on "why two places to specify un/pw in portal-oracle-ds.xml?" and do cut short the connection-url line by eliminating the un/pw in it, as there is explicit mention of it in the user-name and password lines. Treating this as a closed issue from my end. Thanks for all the help and support by way of very valuable info/insight.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192629#4192629
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192629
17 years, 5 months
[EJB/JBoss] - Problem with transaction management.
by trouby
Hey,
I have a stateless EJB3 class that configured with a timer,
When the timer times out, it invokes several methods,
At the end, it perform some modifications via EntityManager and commits the transaction,
My problem is that in the middle of that long running method that times out, I have a some 'plugins' that loads other EJBs via the InitialContext,
When one of the methods in the loaded EJBs throw exception, it seems like the container rollback the transaction,
When the failure thrown to the original method and tries to perform some modifications in the database via EntityManager, I get the following error:
| 23:13:38,858 ERROR [TimerImpl] Error invoking ejbTimeout:javax.ejb.EJBException: javax.persistence.TransactionRequiredException: Entity
| Manager must be access within a transaction
|
If non of the internal ejbs throw exceptions everything works properly and the long running method succeed to perform database modifications
I guess nested transactions are not supported, is there any other way to handle such a situation?
Thanks in advanced,
Asaf.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192625#4192625
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192625
17 years, 5 months
[JBoss jBPM] - Re: java.sql.SQLException: You cannot commit during a manage
by trouby
Hey,
Not that I'm very familiar with JBPM's source code but here's the code of createSchema:
| public void createSchema(String jbpmContextName) {
| JbpmContext jbpmContext = createJbpmContext(jbpmContextName);
| try {
| Services services = jbpmContext.getServices();
| DbPersistenceServiceFactory persistenceServiceFactory = (DbPersistenceServiceFactory) services.getServiceFactory(Services.SERVICENAME_PERSISTENCE);
| persistenceServiceFactory.createSchema();
| } finally {
| jbpmContext.close();
| }
| }
|
I didn't see any JBPM code that commits the transaction, seems like persistenceServiceFactory.createSchema(); invokes the schema creation via Hibernate's SchemaExport class which probably somewhere perform the commit by itself,
I didn't go to deep but if somone is familiar with it then I'll be glad for a solution,
Otherwise, I'll try to invoke the method over a non-CMT,
Thanks a lot :)
Asaf.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192621#4192621
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192621
17 years, 5 months
[Performance Tuning] - JBoss 4.3 start up time information
by chiewming
Hi All,
My customer bought a Sun Fire T5120 and he is complaining the JBoss startup time is very slow comparing to their 4 core Xeon.
Setup as below:
====================
Platform : T5120
Core : 4 (8 Threads each core)
RAM : 8GB
JBOSS : 4.3
Java : 1.5.0.15
Java : -Dprogram.name=run.sh -server -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -verbose:gc
====================
Bootup time need for JBoss as below (pure JBoss without any other apps in JBoss)
Sun Fire T5120(4 cores, 32 threads, 1.2Ghz) == 1m 20s
Sun Fire T2000(6 cores, 24 threads, 1.0Ghz) == 1m 54s
Sun Fire V440 (2 cores, 2 threads, 1.6Ghz) == 54s
Customer tested the boot up time for their Wintel server is far more faster than our Sun CMT processor server.
Customer unable to migrat their current test app into JBoss to do a load test due to their company policy.
Tuning for adjusting d heap, GC but boot up time still unacceptable.
I'm here seek for anyone who implemented their JBoss into Sun CMT processor server like T2000,T5120,T5220... can give me light up regarding their JBoss boot up time & wil JBoss multithreaded while in load test (runtime compilation)?
Thank you very much.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192620#4192620
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192620
17 years, 5 months