sir,
we are facing a problem while deploying session bean in IBM websphere 3.0
we have written the following  code in bean class.
all the  code written is according to EJB 1.0 specification from o'reilly.
we have used manifest file instead of ejb-jar.xml since websphere 3.0 does
not support ejb 1.1
specification.

private Connection getConnection() throws SQLException
    {

       Properties environmentProps=context.getEnvironment();
       String
url=environmentProps.getProperty("jdbcURL","jdbc:inetdae:shekar:1433?databas
e=shk&user=sss&password=shekar&sql7=true");
       return DriverManager.getConnection(url);
    }
    public int createCustomer(int eno)
    {
       int i=0;
       Connection con=null;
     try
      {
       con=getConnection();
        Statement st=con.createStatement();
        rs=st.executeQuery("select * from user_master where userid<5");
        while(rs.next())
        {
         i=rs.getInt(1);
        }
      }
     catch(Exception e){}
      return i;
   }

-----------------------------------------
we have written code in makeDD(class used to generate deployment descriptor)


package BeanPerform;

import javax.ejb.deployment.*;
import javax.naming.CompoundName;
import java.util.*;
import java.io.*;

public class MakeDD
 {
  public static void main(String args[])
   {
   try{
       if(args.length<1)
         {
     System.out.println("must specify target directory");
     return;
         }
                             SessionDescriptor sd=new SessionDescriptor();
        sd.setEnterpriseBeanClassName("BeanPerform.PerformanceBean");

sd.setHomeInterfaceClassName("BeanPerform.PerformanceHome");

sd.setRemoteInterfaceClassName("BeanPerform.Performance");
                             sd.setSessionTimeout(300);

sd.setStateManagementType(SessionDescriptor.STATELESS_SESSION);
                             ControlDescriptor cd=new ControlDescriptor();

cd.setIsolationLevel(ControlDescriptor.TRANSACTION_READ_COMMITTED);
                             cd.setMethod(null);

cd.setRunAsMode(ControlDescriptor.CLIENT_IDENTITY);

cd.setTransactionAttribute(ControlDescriptor.TX_REQUIRED);
                             ControlDescriptor [] cdArray={cd};
                             sd.setControlDescriptors(cdArray);
                             Properties ep=new Properties();
                             ep.put("PerformanceHome","PerformanceHome");

ep.put("jdbcURL","jdbc:inetdae:shekar:1433?database=shk&user=sss&password=sh
ekar&sql7=true");
                             sd.setEnvironmentProperties(ep);
                             Properties jndiProps=new Properties();
                             CompoundName jndiName=new
CompoundName("PerformanceHome",jndiProps);
                             sd.setBeanHomeName(jndiName);
                             String
fileSeparator=System.getProperties().getProperty("file.separator");
                             if(!args[0].endsWith(fileSeparator))
                                args[0]+=fileSeparator;
                             FileOutputStream fos=new
FileOutputStream(args[0]+"PerformDD.ser");
                             ObjectOutputStream oos=new
ObjectOutputStream(fos);
                             oos.writeObject(sd);
                             oos.flush();
                             oos.close();
                             fos.close();
                           }
                        catch(Throwable t){t.printStackTrace();}
   }
 }
-------------------
while deploying we are getting the following error


Deployment[open] failed:EJB Deploy:setupworkingDir():setting up working
directory.

we would be greatly thankful to u if u kindly help us in solving the above
problem.

thanking u

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to