Re: G2.0.1 @Stateless and @Stateful name parameter ignored?
David, This is awesome Rajan On 9/10/07, David Blevins <[EMAIL PROTECTED]> wrote: > > > On Sep 7, 2007, at 9:02 PM, Xh wrote: > > > Hi David! > > > > There were no errors during deployment. > > Application deploys and starts. Bean does not work. > > > > Without name attribute, everything is OK. > > Not sure what you might be doing wrong, but I've created an example > of both @Stateless and @Stateful beans using the name attribute and > both deploy and run fine in Geronimo 2.0.1. > > http://people.apache.org/~dblevins/tmp/examples/ > > The source is buildable with maven2. There's a prebuilt "ready to > deploy" jar there as well. > > Hope this helps! > > -David > >
Re: G2.0.1 @Stateless and @Stateful name parameter ignored?
On Sep 7, 2007, at 9:02 PM, Xh wrote: Hi David! There were no errors during deployment. Application deploys and starts. Bean does not work. Without name attribute, everything is OK. Not sure what you might be doing wrong, but I've created an example of both @Stateless and @Stateful beans using the name attribute and both deploy and run fine in Geronimo 2.0.1. http://people.apache.org/~dblevins/tmp/examples/ The source is buildable with maven2. There's a prebuilt "ready to deploy" jar there as well. Hope this helps! -David
Re: G2.0.1 @Stateless and @Stateful name parameter ignored?
Hi David! There were no errors during deployment. Application deploys and starts. Bean does not work. Without name attribute, everything is OK. best regards Łukasz - Original Message From: David Blevins <[EMAIL PROTECTED]> To: user@geronimo.apache.org Sent: Saturday, 8 September, 2007 12:44:42 AM Subject: Re: G2.0.1 @Stateless and @Stateful name parameter ignored? On Sep 7, 2007, at 1:14 PM, Xh wrote: > Hi All! > > I've encountered a strange thing. > I've noticed that all @State*(name="Name") definitions are ignored > by Geronimo 2.0.1. > Application deploys successfully, but in JNDI Viewer there are no > session beans. > > Simple: > > @Stateless(name = "ModuleProxy") > public class ModuleProxyBean implements ModuleProxy { > ... > } > > doesn't not work, but this: > > @Stateless > public class ModuleProxyBean implements ModuleProxy { > ... > } > > works. > > After removing name definition and redeploying application I can > see in JNDI Viewer my bean. > Also, I can look it up in JNDI with this string (note the full > class name ModuleProxyBean): > DataWeaver2EnterpriseProxyModule.jar/ModuleProxyBean/ > org.xh.dataweaver.interfaces.ejb.ModuleProxy > > Has somebody else experienced this? Is it normal Geronimo behaviour? > The 'name' attribute of @Stateless, @Stateful, and @MessageDriven is definitely used in the code and tested for. Maybe there's another issue going on. When you say there are no session beans in the JNDI Viewer, that would seem to imply a different issue such as the bean not getting deployed at all. -David ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Re: G2.0.1 @Stateless and @Stateful name parameter ignored?
On Sep 7, 2007, at 1:14 PM, Xh wrote: Hi All! I've encountered a strange thing. I've noticed that all @State*(name="Name") definitions are ignored by Geronimo 2.0.1. Application deploys successfully, but in JNDI Viewer there are no session beans. Simple: @Stateless(name = "ModuleProxy") public class ModuleProxyBean implements ModuleProxy { ... } doesn't not work, but this: @Stateless public class ModuleProxyBean implements ModuleProxy { ... } works. After removing name definition and redeploying application I can see in JNDI Viewer my bean. Also, I can look it up in JNDI with this string (note the full class name ModuleProxyBean): DataWeaver2EnterpriseProxyModule.jar/ModuleProxyBean/ org.xh.dataweaver.interfaces.ejb.ModuleProxy Has somebody else experienced this? Is it normal Geronimo behaviour? The 'name' attribute of @Stateless, @Stateful, and @MessageDriven is definitely used in the code and tested for. Maybe there's another issue going on. When you say there are no session beans in the JNDI Viewer, that would seem to imply a different issue such as the bean not getting deployed at all. -David
G2.0.1 @Stateless and @Stateful name parameter ignored?
Hi All! I've encountered a strange thing. I've noticed that all @State*(name="Name") definitions are ignored by Geronimo 2.0.1. Application deploys successfully, but in JNDI Viewer there are no session beans. Simple: @Stateless(name = "ModuleProxy") public class ModuleProxyBean implements ModuleProxy { ... } doesn't not work, but this: @Stateless public class ModuleProxyBean implements ModuleProxy { ... } works. After removing name definition and redeploying application I can see in JNDI Viewer my bean. Also, I can look it up in JNDI with this string (note the full class name ModuleProxyBean): DataWeaver2EnterpriseProxyModule.jar/ModuleProxyBean/org.xh.dataweaver.interfaces.ejb.ModuleProxy Has somebody else experienced this? Is it normal Geronimo behaviour? best regards Łukasz ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com