Hi everybody! I've read documentation about remoting and wished to remote my plain Pojo object:
public static void main.. | Pojo my = new Pojo(17); | | after advice: | Dispatcher.simgleton.registerTarget("/pojo", my); | return my; | As I've expected a client code might look like this (from jboss-aspects-library documentation): | (client code) | Pojo proxy = (Pojo)Remoting.createRemoteProxy("/pojo", pojo.getClass(), "socket://servername:8084"); | new InitialContext().bind("/remote/pojo", proxy); | But I got exception: | java.lang.InstantiationException: org.jboss.aop.proxy$Pojo | at java.lang.Class.newInstance0... | at org.jboss.aop.proxu.ClassProxyFactory.newInstance(ClassProxyFactory.java:60) | at org.jboss.aspects.remoting.Remoting.createRemoteProxy(Remoting.java:46) | .... | Any suggestions what's wrong here? Best regards, Tomasz Nazar View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852333#3852333 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852333 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development