Tutorials
EnterPrise Java Beans
Tutorial Index Page

Deploying the Session Bean

Deploying the session bean is similar to deploying the entity bean, but we don't have to worry about a datasource, because entity beans are not backed up by persistent storage.  We can modify the ejb.ini file as before and add just one line specifying the location of the "ejbJar", but this is also not necessary.  Since no datasource is involved, we can entirely skip the ejb.ini file.  Just copy the .jar file to the "ejbdir" folder of your Blazix installation.

Now restart the server (or tell the server to rescan its "ejbdir" folder by using the EJB remote administration tool.)

You should see the following line in the output from the EJB server showing your EJB was deployed:

Deploying EJB-Home class "stocks.StockQuotesHome" at JNDI name "StockQuotes"
Exercise:  Deploy your BankAccount EJB.
 
Next tutorial: Using the Session Bean