Re: [JBoss-user] Strange Exception: JMS -> MDB -> Session Bean
Look at the "Not Optimized Stateless SessionBean" in the testsuite/src/resources/web/META-INF/jboss.xml descriptor: Not Optimized Stateless SessionBean org.jboss.proxy.ejb.HomeInterceptor org.jboss.proxy.SecurityInterceptor org.jboss.proxy.TransactionInterceptor org.jboss.invocation.ByValueInvokerInterceptor org.jboss.proxy.ejb.EntityInterceptor org.jboss.proxy.SecurityInterceptor org.jboss.proxy.TransactionInterceptor org.jboss.invocation.ByValueInvokerInterceptor Using this configuration I can deploy a servlet independent of an EJB that uses this configuration, lookup the home during initialization and create an instance, and invoke methods on the EJB across redeployments. Using the default optimized invocation layer I see Invalid invocation errors due to the inconsistent types of the EJB classes as seen by the EJB container and servlet. An MDB will behave the same way. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "joerg maier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 4:31 AM Subject: Re: [JBoss-user] Strange Exception: JMS -> MDB -> Session Bean > I have tried serveral configurations in the standardjboss.xml, but it > doesn´t work. > Can you describe where I must set the ByValueInvokerInterceptor for my > MDB-Client. > Perhapse you can send an example how this configuration should looks like. > Thanks for your help. > > > 2.4 will automatically downgrade to marshall calls by value. Use the by > > value > > interceptor in 3.0.5 and would can have the same effect as the cost of the > > by value calls as opposed to call by reference. > > > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Strange Exception: JMS -> MDB -> Session Bean
I have tried serveral configurations in the standardjboss.xml, but it doesn´t work. Can you describe where I must set the ByValueInvokerInterceptor for my MDB-Client. Perhapse you can send an example how this configuration should looks like. Thanks for your help. > 2.4 will automatically downgrade to marshall calls by value. Use the by > value > interceptor in 3.0.5 and would can have the same effect as the cost of the > by value calls as opposed to call by reference. > -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Strange Exception: JMS -> MDB -> Session Bean
2.4 will automatically downgrade to marshall calls by value. Use the by value interceptor in 3.0.5 and would can have the same effect as the cost of the by value calls as opposed to call by reference. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "joerg maier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 06, 2003 10:45 PM Subject: Re: [JBoss-user] Strange Exception: JMS -> MDB -> Session Bean > > An MDB interacting with a session bean will fail if they are in seperate > > deployment > > units and you redeploy the session bean. When you do this you have > > effectively > > changed the versions of all the session bean interfaces. > > The MDB must be redeployed as well. > > ^^^ > With Jboss2.4.9 it works. You don´t need a redeploy of the MDB bean when > you change the sessionbean. > It seems only the new version 3.04 have this problem. > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! > > > > --- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Strange Exception: JMS -> MDB -> Session Bean
> An MDB interacting with a session bean will fail if they are in seperate > deployment > units and you redeploy the session bean. When you do this you have > effectively > changed the versions of all the session bean interfaces. > The MDB must be redeployed as well. > ^^^ With Jboss2.4.9 it works. You don´t need a redeploy of the MDB bean when you change the sessionbean. It seems only the new version 3.04 have this problem. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Strange Exception: JMS -> MDB -> Session Bean
An MDB interacting with a session bean will fail if they are in seperate deployment units and you redeploy the session bean. When you do this you have effectively changed the versions of all the session bean interfaces. The MDB must be redeployed as well. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "joerg maier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 06, 2003 6:34 AM Subject: [JBoss-user] Strange Exception: JMS -> MDB -> Session Bean > Look > at: > >http://www.jboss.org/forums/search.jsp?search=true&q=TransactionRolledbackException&forums=48&date=any&user=&range=10 > there are more people with the same problem. sorry, i can´t find any > solution > in the jboss-forum. > > I have a similare problem: > > - There is a client-Program which sends messages to a queue (JMS.java). > - For the Queue is defined a MDB (MessageDrivenBean.java). > - When the MDB receives Messages, it creates a session Bean > (SessionBean.java) and calls a function from it. > > When I change the SessionBean and make a reploy I become the following > Exception: > > -Exception-- > ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException, > causedBy: > javax.ejb.EJBException: Invalid invocation, check your deployment packaging, > method=public abstract void > sessionbean.Enterprise1.empfang(java.lang.String) throws java.rmi.RemoteException > at > >org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:632) > at > >org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) > at > >org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) > at > >org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) > at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178) > . > -- > It seems that the MDB don´t make a correct creation of the new sessionbean. > So i would be glad to get help on this Problem. > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Strange Exception: JMS -> MDB -> Session Bean
Look at: http://www.jboss.org/forums/search.jsp?search=true&q=TransactionRolledbackException&forums=48&date=any&user=&range=10 there are more people with the same problem. sorry, i can´t find any solution in the jboss-forum. I have a similare problem: - There is a client-Program which sends messages to a queue (JMS.java). - For the Queue is defined a MDB (MessageDrivenBean.java). - When the MDB receives Messages, it creates a session Bean (SessionBean.java) and calls a function from it. When I change the SessionBean and make a reploy I become the following Exception: -Exception-- ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException, causedBy: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract void sessionbean.Enterprise1.empfang(java.lang.String) throws java.rmi.RemoteException at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:632) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178) . -- It seems that the MDB don´t make a correct creation of the new sessionbean. So i would be glad to get help on this Problem. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user