[jboss-user] [Management, JMX/JBoss] - specify JNDI name for an mbean in

2007-03-15 Thread guava
I'm deploying a mbean using an XML file under the deploy directory where I specify the bean using tag. Is there anyway I can also specify the JNDI name for that mbean? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028671#4028671 Reply to the post

[jboss-user] [EJB 3.0] - correct usage of EntityManager in a thread under JBossAS 4.

2007-02-12 Thread guava
Hi, I'm looking for a correct way to use an EntityManager inside a thread of JBossAS. I have a EJB3 service object that spins a thread to handle a request. Inside the thread I need to perform a named query using an EntityManager. I tried passing an EntityManager that was obtained using injecti

[jboss-user] [EJB 3.0] - Local JNDI name for EntityManager?

2007-02-12 Thread guava
Hi, Does any one know the local JNDI name for EntityManager under JBossAS 4.0.5GA? I have a class that is not an EJB and I need an instance of EntityManager and I will need to do a local JNDI lookup. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=401

[jboss-user] [EJB 3.0] - NullPointerException with EntutyManager.createNamedQuery

2007-02-11 Thread guava
Hi, I'm getting a NullPointerException when calling the createNamedQury() under Jboss 4.0.5GA. Anyone one knows what the stack trace means? 22:25:41,609 ERROR [STDERR] Exception in thread "pool-5-thread-1" 22:25:41,609 ERROR [STDERR] java.lang.NullPointerException 22:25:41,609 ERROR [STDERR]

[jboss-user] [EJB 3.0] - EJB3 service object tutorial problem

2007-01-28 Thread guava
Hi, I tried to run the 'service' tutorial came with jboss-EJB-3.0_RC9_Patch_1 in 4.05GA under windows. I can see the services are created and started. 23:48:45,796 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=tutor ial.jar,name=ServiceOne,service=EJB3 with dependencies: 23:48:4

[jboss-user] [JBoss AOP] - cross-cutting Jboss class loader?

2006-12-28 Thread guava
Hi, I'd like to find all classes that has been annotated say @Foo in an EAR during runtime after the EAR has been deployed in JbossAS? cross-cutting JBoss class loader maybe an option. In addition to that does anyone know if there is an easier way? Thanks. View the original post : http://www

[jboss-user] [EJB/JBoss] - How to find annotated classes in an EAR during runtime.

2006-12-28 Thread guava
Hi, How do I find all classes that has been annotated say @Foo in an EAR during runtime after the EAR has been deployed in JbossAS? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996754#3996754 Reply to the post : http://www.jboss.com/index.html?mo

[jboss-user] [JBoss AOP] - Re: Dynamic Deployement with JBoss AS

2006-12-07 Thread guava
Thanks for the pointer. I tried the 'annoted-injboss' example came with AOP 1.5.2 GA release and use the 'deploy-ear' target in the build file. I modified the build file such that jboss root and the deployment are pointing to the right location. But nothing happens when the ear was copied to th

[jboss-user] [JBoss AOP] - Dynamic Deployement with JBoss AS

2006-12-07 Thread guava
Hi, I would like to use AOP to change the runtime behavior of some classes in my EAR file deployed to Jboss 4.0.5. According to Section 6.1 of AOP reference document "Hot-deploying within the JBoss application server is as easy as putting (or removing) a *-aop.xml file or .aop jar file withi

[jboss-user] [JBoss AOP] - Re: Pls help with a simple Mixin problem

2006-12-03 Thread guava
Thanks so much. Indeed it worked after I changed the Mixin method to take MyPojo as an input argument. I was wonder why this has to be the case though. I can not see from the AOP document that the mixin creation method has to take the opriginal pojo as the argument. >From Section 5.6 @Mixin

[jboss-user] [JBoss AOP] - Pls help with a simple Mixin problem

2006-12-01 Thread guava
Hi, I'm started to use the Introduction feature of JBossAOP and can not seem to get the Mixin working. Any help will be appreciated. I have one Pojo, one Aspect, one Mixin, and an interface the mixin implements. I'm running these in the same directory as the examples provided by JbossAOP. Follo

[jboss-user] [JBoss Seam] - Re: Problem running examples: javax.faces.el.EvaluationExcep

2006-11-01 Thread guava
Yes. I followed the instruction 'exactly' (I hope). Here is the full stac trace: look for the 'NoSuchMethodException'. Thanks. 10:59:35,179 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception javax.faces.el.EvaluationException: /register.xhtml @67,80 value="#{reg

[jboss-user] [JBoss Seam] - Problem running examples: javax.faces.el.EvaluationException

2006-10-31 Thread guava
Hi, I'm trying seam 1.0.1 GA on JBossAS 4.0.4GA with ejb3 profile. Almost all the seam example that I tried throw exception like the following. Any help will be great. javax.servlet.ServletException: /register.xhtml @67,80 value="#{register.verify}": $Proxy220 javax.faces.webapp.FacesS

[jboss-user] [JBossCache] - PojoCache replcation not working

2006-10-25 Thread guava
Hi, I'm on JBossCache 1.4.0.SP1. I'm just testing pojo cache replication between two machines. I wrote a simple test case and a pojo class. I started the test on one machine and put the object into the cache. I then started the second machine and the initial state did get replicated over. How

[jboss-user] [JBossCache] - TreeCache.startService() hang

2006-07-22 Thread guava
Hi, I'm on JbossCache-1.4.0GA. I seem to have problem creating TreeCache using an already connected JChannel. = Channel channel = new JChannel(); channel.connect("COCO"); TreeCache tcache = new TreeCache((JChannel)channel); tcache.setClusterName("COCO_CACHE"); tcache.setC

[jboss-user] [JBossCache] - is synchronization of a TreeCache within the same VM necessa

2006-07-21 Thread guava
Hi, Is the following synchronization necessary? TreeCache cache = new TreeCache(channel); .. // possiblely access from multiple threads synchronzied ( cache) { Value v = cache.get(fqn, key); if ( v != null ) { // do something } } Thanks. View the original post : http: