which as are you using ?
i can give you my full working example.
1. Management Interface:

  | @Management
  | public interface CommonServiceMan {
  |         void create() throws SomeMyException;
  |     void start() throws SomeMyException;
  |     void stop() throws SomeMyException;
  |     void destroy() throws SomeMyException;
  | }
  | 
2.Remote Interface

  | @Remote
  | public interface CommonServiceInt {
  |     public String testMethod(String name) throws SomeMyException;
  | }
  | 
3.Implementation

  | @Remote(CommonServiceInt.class)
  | @Service(objectName = "jboss:custom=CommonServiceBean")
  | public class CommonServiceBean implements CommonServiceInt,
  |             CommonServiceMan {
  |     public String testMethod(String name) throws SomeMyException{
  |               System.out.println("my test method call");
  |               return "Hello : "+name;
  |         }
  |         public void create() throws SomeMyException {
  |              System.out.println("Create method ....") ;
  |         }
  |         public void start() throws SomeMyException {
  |              System.out.println("Start method ....") ;
  |         }
  |         public void stop() throws SomeMyException {
  |              System.out.println("Stop method ....") ;
  |         }
  |         public void destroy() throws SomeMyException {
  |              System.out.println("Destroy method ....") ;
  |         }
  | }
  | 
  | 


This example is working fine for me.
I test it on jboss as 4.2.1, 4.2.2, 4.2.3 and 5.1.0 (i use each one for 
different projects.)

______________________
Regards,
Paata Lominadze.
Magticom LTD.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262554#4262554

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262554
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to