[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Annotation error
I've tested the final release. I wanted to use the Transaction demacration Service as an xml Configured Service. So I defined the tags like it is described on your website! But I got always a runtime exception because the tag annotation is a unknown AOP tag. I looked into the AspectXMlLoader Sourcecode and nowhere a tag named annotation is defined. What must I do to use Transaction Demacration Service with jboss-aop_1.0.0-FINAL as xml Configured Service? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3854963#3854963 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854963 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - AOP Security+AOP Remoting
I use AOP Security Service and it works. But when I use AOP Remoting with the security service I got a lot of problems. Always when I want to execute a secured method of an object, which is called by the remote proxy object I get an Authentication exception. Example: jboss-aop.xml | annotation tag=security class=de.fhzw.portal.util.classes.UserSession | security-domainjava:/jaas/RoomAdministration/security-domain | method-permission | role-nameInternal/role-name | method | method-name*/method-name | /method | /method-permission | /annotation class UserSession: public class UserSession{ | | ... | | public String getUserName(String principal) | { | return getUserReader().getUserName(principal); | } | ... | } Clientcode to get a remote Object: | UserSession user = (UserSession) | Remoting.createRemoteProxy(UserSession,UserSession.class,socket://localhost:5150); | user.getUserName(someName); | A User Session Object is created in a MBean- method on the Server. This method registers the UserSession object by the Dispatcher too. when the method is called I get an Authentication Exception! But when I execute the method in a MBean on the Server on the orginal object the example runs! What's my fault? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3842015#3842015 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3842015 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - A Web-Application with JBoss AOP
I've wrote a Web Application with JSP Servlets and Struts, which is my Client and for the server-side I've wrote a new Jboss like J2EE Application with JBoss AOP. I've packed the classes in an Archive named .aop and then I packed the aop archive with my service MBean in a service-archive (sar). But how must I pack the war Archive and my Sar archive together? Because the war Archive needs classes from the sar archiv? Must I create an ear archive? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841857#3841857 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3841857 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: A Web-Application with JBoss AOP
Yes this works! Thanks Karsten View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841876#3841876 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3841876 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - ProgrammaticSecurit
I began with the implementation last week and I think that I understand your idea. But why must I push the Security Manager ? ( your code: ctx.pushSecurityDomain(...) //push the SecurityManager and realm Mapping) I must push RealmMapping, thats clear. ( Because of the doesUserHaveRole method) But why the SecurityManager? And the other question is how to get references of SecurityManger and RealmMapping? Must I create a constructor pointcut for these objects, to access securityManager and realmMapping in my ProgrammaticSecurityInterceptor invoke method ? I think the ProgrammaticSecurityInterceptor must be integrated in the SecurityInterceptorChain. Yours sincerely Karsten Doller View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3840152#3840152 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840152 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - AOP Security Service
Hello I want to use AOP Security Service, but first I' ve got a general question. How can I use programmatic security with AOP Security Service? Or isn't it possible to use this possibility with AOP Security Service? Many applications use programmatic security and I must reengineer an EJB application which uses methods like isCallerInRole etc. What can I do ? perhaps extend the AOP Security Interceptor? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839438#3839438 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839438 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - after advice
Hello, Can I define after advices in Jboss AOP like I can do in AspectJ, which executes after the execution of a join point? For Example an advice that executes after a method. Up to now I didn't need such an advice in JBoss AOP but I've a problem which can only be solved with after advice. until soon Karsten View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3835522#3835522 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3835522 --- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562alloc_id=6184op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - peristence+hibernate
You wrote that you use hibernate for peristence! how do you configure Jboss to use hibernate? Do you integrate hibernate as an Mbean service like it's described on http://www.hibernate.org//66.html or is hibernate always integrated in JBoss 4.0? In my opinion the use of hibernate is something like a crosscutting concern! (You must always open a session and save the object!...) Is there a hibernate aspect or something? Can you tell me something more, about how to use hibernate as a POJO-oriented persistence layer, please? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3834450#3834450 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3834450 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - AOP Remoting
I' ve got enormous trouble with AOP Remoting! Here a little Example! I hope someone can tell me what I make wrong! First the Simple Class HelloWorld: | package code; | | public class HelloWorld { | | private String message; | | public HelloWorld(){ | } | public void setMessage(String message){ | this.message=message; | } | public String getMessage(){ | return message; | } | } | This is the Mbean to is register my object with the Dispatcher! | import org.jboss.aop.Dispatcher; | import org.jboss.aop.remoting.Remoting; | import javax.naming.InitialContext; | | public class Test implements TestMBean{ | | public Test(){ | System.out.println(Hello MBean); | } | | public void register(){ | code.HelloWorld hello = new code.HelloWorld(); | hello.setMessage(HelloWorld); | Dispatcher.singleton.registerTarget(hello,hello); | } | public void start(){} | public void stop(){} | } | and now the Client: | import org.jboss.aop.remoting.Remoting; | public class Client{ | | public static void main(String[] args) { | try{ | code.HelloWorld proxy =(code.HelloWorld)Remoting.createRemoteProxy(hello,code.HelloWorld.class,socket://localhost:8084); | System.out.println(proxy.getClass()+); | System.out.println(proxy.getMessage()); | } | catch(Exception e1 ) { | System.out.println(Error happened !); | e1.printStackTrace (); | } | } | } | and here the output: class org.jboss.aop.proxy$code.HelloWorld | org.jboss.remoting.SubsystemNotSupported: Subsystem 'AOP' not supported on target VM (InvokerLocator [socket://172.17.199.225:8084/]) | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:355) | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:282) | at org.jboss.remoting.transport.socket.SocketServerInvoker$Client.run(SocketServerInvoker.java:208) | Error happened ! | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3833727#3833727 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3833727 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP Remoting
Now I get an other Exception: anonymous wrote : | class org.jboss.aop.proxy$code.HelloWorld | java.lang.NullPointerException | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107) | at org.jboss.aop.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:75) | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:369) | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:282) | at org.jboss.remoting.transport.socket.SocketServerInvoker$Client.run(SocketServerInvoker.java:208) | Error happened ! It seems that the Hello World object isn't registered by the dispatcher But as you can see, the register() method does this. And I've executed the register method before executing the client! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3833735#3833735 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3833735 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP Remoting
Here the output: anonymous wrote : R3/server/default/conf/jboss-service.xml | 15:27:42,894 INFO [Server] JBoss (MX MicroKernel) [4.0.0DR3 (build: CVSTag= | date=200403161350)] Started in 23s:293ms | 15:28:44,333 INFO [STDOUT] Dispatcher trying to find methodMap for: code.HelloWorld | 15:28:44,333 INFO [STDOUT] java.lang.NullPointerException | 15:28:44,333 INFO [STDOUT] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107) | 15:28:44,333 INFO [STDOUT] at org.jboss.aop.remoting.AOPRemotingInvocation | Handler.invoke(AOPRemotingInvocationHandler.java:75) | 15:28:44,333 INFO [STDOUT] at org.jboss.remoting.ServerInvoker.invoke(Server | Invoker.java:369) | 15:28:44,333 INFO [STDOUT] at org.jboss.remoting.ServerInvoker.invoke(Server | Invoker.java:282) | 15:28:44,333 INFO [STDOUT] at org.jboss.remoting.transport.socket.Socket | ServerInvoker$Client.run(SocketServerInvoker.java:208) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3833750#3833750 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3833750 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP Remoting
Now it runs thank you Karsten View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3833796#3833796 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3833796 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Persistence
I' ve testet the AOP Framework standalone for my Master Thesis. I've converted some Gof Patterns like (Observer, Bridge...) into JBoss AOP. Now I want to built a little J2EE Applikation with AOP Support. I've got a general question ! You wrote in your JBoss Aspect Oriented Programming Overview: The Aspect-Oritented Programming architecture of JBoss 4.0 enables it to provide a wide range of services, including object persistence, caching, replication, acidity, remoteness, transactions and security. The framework allows developers to write plain Java objects and apply these enterprise-type services later on in the development cycle -- without changing a line of Java code. And now my Question: How is persistence realized? I can't see an AOP service who realize this. Or what is the idea to do this? I've understand your Overview (see above) that I can write a normal Java Class. With AOP Remoting I can access the Object by a Client (or AOP remoting makes this possible). But what is with persistence? Must I always write Entity Beans? I guess not, because you wrote I can write plain Java Objects (see above). I hope someone can clear me up ( or help me)! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3832824#3832824 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3832824 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Precompilation+Field and Constructor pointcuts
Hello! It seems that the precompiler org.jboss.aop.standalone.Compiler has got problems with anonymous classes and inner Classes. I've got written a Class with two anonymous classes. If I use the precompiler to compile my classes I get always exceptions when I replace the anonymous classes by normal classes the precompiler runs. Other problems (or two questions): 1) is it possible to intercept a field access for a local variable? I've tried it out but it my example doesn't work. 2) is it possible in a ConstructorInvocation to get the object that the constructor creates? (Practically the same as Object mi = invocation.targetObject by a MethodInvoctaion); I think it should be possible by an after-advice (finally Block). I've tried that too, but it doesn't work too. Can you help me please View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3828525#3828525 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828525 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Precompilation+Field and Constructor pointcuts
I've tried it again with the Compiler and now it runs Probably I've made something wrong by my first try. I'm writing my Thesis (diploma) about AOP. First I used AspectJ and now JBossAOP since 2 weeks. And so I've another question! Is it possible to bind a pointcut to a constructor or method which is createt or called in an aspect class. Example: class AspectName{ | public Object constructorAdvice2(ConstructorInvocation invocation) throws Throwable{ | makePressure(); | press = (PressureSensorImpl) new fachcode.Nimbus1_0PressureSensor(); | return invocation.invokeNext(); | } | } Can I bind an execution pointcut to the constructor fachcode.Nimbus1_0PressureSensor() and how can I make that? Can I also bind a caller pointcut to a method that is declared and called in an aspect class? Thank you for your efforts Karsten Doller View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3828660#3828660 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828660 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Example metadata doesn't work
The Problem was the system property! I thought that when I am put both xml -files into Meta-inf it works, that was the problem. With the command java -Djboss.aop.aoppath=metadata.xml;jboss-aop.xml it works on commandline View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3828126#3828126 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828126 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Example metadata doesn't work
The Problem was the system property I thought that when I am put both xml -files into Meta-inf it works, that was the problem. With the command java -Djboss.aop.aoppath=metadata.xml;jboss-aop.xml it works on commandline View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3828125#3828125 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828125 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Example metadata doesn't work
I've got a question to the metadata example in the new JBoss 1.0 Beta Version. First I use the AnnotationCompiler to create metadata-aop.xml File. After that I compile all java Files (javac *.java) after that I use the jboss Compiler: java org.jboss.aop.standalone.Compiler *.class -verbose -aoppath metadata-aop.xml. The jboss-aop.xml File is in the META-INF directory. I think it compiled correctly. After the Compilation I run the program but I get only the following output: -- new Pojo(); -- empty constructor -- new Pojo(int); -- int constructor -- pojo.someMethod(); -- someMethod -- pojo.field = 55; -- I used JDK1.4_03 and JDK1.5Beta compile and run the program, but it doesn't work. What make I wrong? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827040#3827040;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827040Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development