[JBoss-user] [JBoss AOP] - Dynamic AOP and @Dbc error

2006-05-23 Thread fatbatman
Hi, If I use dynamic AOP and the "Design by Contract" @Dbc at the same time I get strange "duplicate method" error. This only occur for class methods that are implementing an interface method but the class method return type is overriding the method return type defined defined in the interface

[JBoss-user] [JBoss AOP] - Dynamically adding annotated aspect classes without "jboss.a

2006-05-24 Thread fatbatman
Hi, I'm trying to use Aspects as the basis for a large number of unit tests in my test suite. Its for a client server application. Ideally I'd like to have a @Aspect class for each test that defines the relevant pointcuts for the test case using annotations, with some logic in the methods. Th

[JBoss-user] [JBoss AOP] - Re: Dynamically adding annotated aspect classes without

2006-05-26 Thread fatbatman
I see that AspectAnnotationLoader iterates through the list of FileInputStreams of the classes in the jboss.aop.class.path turning each one into javassist.bytecode.ClassFile before checking each one for annotations. I think a public method on AspectAnnotationLoader that allows the user to do so

[JBoss-user] [JBoss AOP] - Re: Dynamically adding annotated aspect classes without

2006-06-07 Thread fatbatman
Thanks for this, I haven't had a chance to play with it yet but hopefully will do next week. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949615#3949615 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949615 ___

[JBoss-user] [JBoss AOP] - Which jar for javaagent with EJB embedded/standalone

2006-06-07 Thread fatbatman
The latest distributions of the EJB standalone (jboss-EJB-3.0_Embeddable_ALPHA_8.zip) comes as 3 big jars. If a try and use; -javaagent:jboss-ejb3-all.jar I get; Failed to load Premain-Class manifest attribute from jboss-ejb3-all.jar If I use the jboss-aop-jdk50.jar from the AOP distribution

[JBoss-user] [JBoss AOP] - Re: The issue of DBC's postcondition

2006-06-07 Thread fatbatman
The Dbc stuff was the initial reason I started looking at JBossAOP, I think it looks really promising. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949623#3949623 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949623

[JBoss-user] [JBoss AOP] - DBC

2006-06-15 Thread fatbatman
Hi, I'm getting some strange behaviour with the DBC annotations. Things seems to behave differently when being called from different threads. I've adjusted the DbcTest class to illustrate what I mean by calling a dbc annotated method from within run() which is called by the ScheduledThreadPool

[JBoss-user] [JBoss AOP] - Re: Dynamically adding annotated aspect classes without

2006-06-17 Thread fatbatman
Hi, I'm not sure if I'm doing something wrong in the way that I get the ClassFile object? but I'm getting some strange behaviour using this new feature. Using the annotated-aspects test as a starting point I run the test specifying the classpath using -Djboss.aop.class.path=myclasspath - all wo

[JBoss-user] [JBoss AOP] - Re: Dynamically adding annotated aspect classes without

2006-06-17 Thread fatbatman
Its just dawned on me I need to prepare the objects for runtime instrumentation as in the dynamic-aop example using a jboss-aop.xml defined in the jvm args using -Djboss.aop.path=jboss-aop.xml. | | | | | When I do that it works fine, but its was hard to find. Thanks again f

[JBoss-user] [JBoss AOP] - Re: DBC

2006-06-21 Thread fatbatman
Yes, it hangs with multiple threads. Sorry I don't have time to look at this at the moment either, using dbc isn't a priority for us at the moment, I just wanted to make you aware of it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952514#3952514 Reply t

[JBoss-user] [HTTPD, Servlets & JSP] - How do I get the basedir of a web application at runtime?

2004-11-19 Thread fatbatman
Hello, How do I get the basedir of a web application at runtime? thanks in advance James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855712#3855712 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855712 -

[JBoss-user] [HTTPD, Servlets & JSP] - Re: How do I get the basedir of a web application at runtime

2004-11-19 Thread fatbatman
...from within a servlet View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855715#3855715 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855715 --- This SF.Net email is

[JBoss-user] [HTTPD, Servlets & JSP] - Tiles/Struts with Tomcat 5 problem

2004-07-27 Thread fatbatman
Hello, I recently upgraded to JBoss 3.2.5 and am trying to use Tomcat 5 instead of Jetty. I can't seem to get Tiles in Struts working. I keep get errors involving "if (_jspx_meth_xxtagxx_vvmethvv( such as; C:\jboss-3.2.5\server\default\work\jboss.web\localhost\tiles-documentation\org\apach

[JBoss-user] [HTTPD, Servlets & JSP] - multiple virtual hosts

2004-09-13 Thread fatbatman
Hello, I'm using Tomcat 5 on JBoss 3.2.5. I am currently deploying a .war to "mydomain.com" by declaring in jboss-web.xml; / mydomain.com How can I also include "www.mydomain.com" with just a single page that redirects to "mydomain.com". I tried a few things none of which wo

[JBoss-user] [HTTPD, Servlets & JSP] - Re: multiple virtual hosts

2004-09-13 Thread fatbatman
I don't really have the time to setup apache at the moment, does anybody know if it can it be done in Tomcat/JBoss? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848039#3848039 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=re

[JBoss-user] [Persistence & CMP/JBoss] - Turning down Hibernate logging

2004-10-07 Thread fatbatman
Hello, I'm using Hibernate with JBoss as an mbean. I'm trying to turn the debug level for hibernate down, how do I do this? I've turned off displaying SQL by putting false into jboss-service.xml But I still get lots of debug message like; 2004-10-07 08:06:34,905 DEBUG [net.sf.hibernate.im

[JBoss-user] [Persistence & CMP/JBoss] - Re: Turning down Hibernate logging

2004-10-07 Thread fatbatman
I added < category name="net.sf.hibernate" > < priority value="INFO"/ > < /category> to JBOSSDIR/conf/log4j.xml which seemed to do the trick thanks anyway View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850608#3850608 Reply to the post : http:

[JBoss-user] [J2EE Design Patterns] - Design advice, are Stateful session beans the answer?

2005-01-26 Thread fatbatman
Hello, I'm looking for some design advice. I'm using JBoss 3.2.5. Here's my situation; Users log into to the website (Tomcat within Jboss) to authenticate themselves. When they do this a session bean is called which generates and stores a key for the user. The key is returned to the user i

[JBoss-user] [Management, JMX/JBoss] - Dynamic class loading, SPI? advice please

2005-03-29 Thread fatbatman
Hello, I have a custom server that I run in JBoss within an MBean. This server needs to dynamically initialise certain objects seperate from the main core of the custom server. I tried to load these classes with using standard Class.forName(..) type stuff but I kept getting class loader error

[JBoss-user] [EJB 3.0] - EJB3 Entity bean clustering

2005-12-16 Thread fatbatman
Hello all, I'm a bit confused though about the extent to which ebj3 entity beans are clustered and updated. Scenario. We have 2 JBoss servers in a cluster. An application running as an mbean in server1 gets old of a reference to an entity bean. It calls ref.getMyvalue() which returns "ori

[JBoss-user] [EJB 3.0] - MBeans when running as standalone?

2006-03-10 Thread fatbatman
Hi, I need to write a unit test where a session bean connects to an MBean when running as standalone. Is it possible to manually start the mbean server then register an mbean with it when in standalone mode? or is that beyond the scope of what is achievalable without the full JBoss server runn