Kabir,
I was able to build the jar file successfully following your instructions. I have created the mainest.mf file and jboss-service.xml file with your directions by hand. I have added the global JNDI names of all my stateless session beans to the right section inside jboss-service.xml file. Then, created a folder called EjbLookup.sar inside deployments folder, created MTEA-INF folder inside the EjbLookup.sar and copied the manifest file and jboss-service.xml files to it. Copied the jboss-as-remote-via-jmx.jar to EjbLookup.sar folder and then fired up JBoss AS. I get the following error
As you can see it is not able to find the RemoteViaJMX class. I have verified that this class exists in the jar file in the right package (org.jboss.as.remote.jmx.mbean). Not sure what am i doing wrong. Can you please help me?
Mohan