[jboss-user] [EJB 3.0] - Re: MDB pool configuration EJB3

2007-04-17 Thread judge2005
And in case anyone is wondering. This is how you do the same thing in jboss.xml:

  | ?xml version=1.0 encoding=UTF-8?
  | jboss
  | xmlns=http://java.sun.com/xml/ns/javaee;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
  | http://www.jboss.org/j2ee/schema/jboss_5_0.xsd;
  | version=3.0 
  |security-domainjava:/jaas/example-domain/security-domain
  |enterprise-beans
  |   message-driven
  |  ejb-namesample.MDB/ejb-name
  |  pool-config
  | pool-classorg.jboss.ejb3.StrictMaxPool/pool-class
  | pool-max-size1/pool-max-size
  | pool-timeout5000/pool-timeout
  |  /pool-config
  |   /message-driven
  |/enterprise-beans
  | /jboss
  | 
BTW thanks for this thread. You saved my bacon. And thanks to Eclipse for 
having an XML editor that understands xsd. Oh and thanks to JIRA for showing 
that the xsd existed!

Finally I'd like to thank my producer... j/k - its late.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038208#4038208

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038208
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - org.jbos.tm.jbossrollbackexception instead of EJBException

2007-04-03 Thread judge2005
Hi,

Under certain circumstances (vague I know but hopefully someone may have an 
answer before I try and cobble together a reproducible test case) I get a 
org.jboss.tm.JBossRollbackException instead of an EJBException. The basic 
scenario is that I have a MDB which calls a session bean. The session bean is 
declared to require transactions, but the MDB has no annotation specifying its 
transaction behavior.

The session bean performs inserts into a database using a hibernate entity 
manager. If I do the inserts totally via hibernate I get the EJBException. If I 
 let some database triggers handle some of the inserts I get a 
JBossRollbackException.

Anyone know what is going on?

Thanks in advance.

BTW I'm using JBoss 4.0.4GA patched with EJB3 RC9.

java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to 
commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=ma2koleinik2/20, 
BranchQual=, localId=20] status=STATUS_NO_TRANSACTION; - nested throwable: 
(javax.persistence.EntityExistsException: 
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC 
batch update)
at 
org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:198)
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:180)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:211)
at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
at $Proxy83.process(Unknown Source)
at 
com.ftid.fisi.feeddata.listener.FeedDataMdb.onEvent(FeedDataMdb.java:46)
at 
com.ftid.fisi.feeddata.listener.FeedDataMdb.onEvent(FeedDataMdb.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
at 
org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:111)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:245)
at 
org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
at 
org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
at $Proxy87.onEvent(Unknown Source)
at 

[jboss-user] [EJB 3.0] - Re: org.jbos.tm.jbossrollbackexception instead of EJBExcepti

2007-04-03 Thread judge2005
Just to clarify a little: I am expecting the constraint violation, since in 
both cases I am trying to insert something that already exists. However I would 
expect this to be reported as an EJBException in the MDB.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4034309#4034309

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4034309
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security JAAS/JBoss] - Re: Bug in SecurityAssociation(?) - EJB3 MDB Calls a SLSB wh

2007-03-09 Thread judge2005
I just got bit by this too. Any news on when it will work?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4026669#4026669

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026669
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security JAAS/JBoss] - Re: XACML and DROOLS

2006-09-28 Thread judge2005
As far as using SunXACML goes. Well there is just one guy working on it and it 
doesn't seem very active, I've no idea how performant it is and it requires 
that the rules be expressed in XACML, which is hardly the tersest language 
around.

Drools seems a lot more active and I could possibly write a terser vocabulary 
to express the same policies.

Anyhow, I am currently using SunXACML but am still interested in exploring 
DROOLs for this purpose. As with anything, its all just a question of time, or 
rather lack of it.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975008#3975008

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975008
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user