How to access manifest of jar inside ear deployed on weblogic
<p>I have an ear deployed on weblogic console. I need to check contents of manifest file of a jar that is present in the deployed ear.</p>

<p>Currently I am using below code to access jar inside ear deployed :</p>

<pre><code>           Hashtable env = new Hashtable(5);
            env.put(Context.INITIAL_CONTEXT_FACTORY,
                        "weblogic.jndi.WLInitialContextFactory");
            env.put(Context.PROVIDER_URL,
                        url);
            env.put(Context.SECURITY_PRINCIPAL, user);
            env.put(Context.SECURITY_CREDENTIALS, password);
            Context ctx = new InitialContext(env);
            mBeanHome = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);


            String type = "EJBComponentRuntime";  
            Set beans = mBeanHome.getMBeansByType(type);  


            try{
            for(Iterator it=beans.iterator();it.hasNext();)
            {      
                  EJBComponentRuntimeMBean rt = (EJBComponentRuntimeMBean)it.next();  

                  if(rt.getParent().getName().equals("xxx.ear")){
                        System.out.println(rt.getName());
</code></pre>

<p>Here rt.getName() will give jar inside "xxx.ear"</p>

<p>Now I need to access the manifest file of this jar.</p>
