The thing is that I want the new method to look the same as the original code, for that I want to copy the original code.
The problem is that when I use the:
newMethod.setBody(method, null); to copy the original body I need to add the following code to fix the MaxLocals:
CodeAttribute code = newMethod.getMethodInfo().getCodeAttribute();
code.setMaxLocals(code.getMaxLocals() + 1);
Isn't there a better way?
Guy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128207#4128207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128207
Hi,
I am deploying my jboss application server behind amazon ec2. It is essentially like deploying behind a firewall.
1. I do : run.sh -b 0.0.0.0 to bind the jboss deployment to the physical local interface
2. When a http request arrives on ec2, it is supposed to be NAT'ed to the physical host where the jboss instance is bound (on port 8080)
It works just fine when I run Apache httpd, but when I run JBoss there is no traffic.
Any ideas ?
thanks,
vsa
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128206#4128206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128206
Thank you very much. WHere do I specify that the JPA annotated classes have to be loaded automatically? I used the entry
property name="hibernate.archive.autodetection" value="class, hbm" and still see that when I refer to an entity class, it gives me an exception that the entity class is not mapped.
When I add an entry mapping class in hibernate.cfg.xml, the error disappears.
Also, I see that the dvdstore demo does not use any entry to autodetect the schema and this is where I missed the link.
Thanks again
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128204#4128204
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128204