//Create Stateless EJB

@Stateless
public class LibraryPersistentBean implements LibraryPersistentBeanRemote {
	
   public void addBook(Book book) {
     //persist book using jdbc calls
   }    

   public List<Book> getBooks() {        
     //get books using jdbc calls
   }
   ...
}

@@ -21,64 +21,120 @@
 JB%0A%0A
-@Stateless%0Apublic class LibraryPersistentBean implements
+import com.tutorialspoint.entity.Book;%0Aimport java.util.List;%0Aimport javax.ejb.Remote;%0A%0A@Remote%0Apublic interface
  Lib
@@ -164,20 +164,12 @@
 e %7B%0A
-%09
 %0A   
-public 
 void
@@ -190,145 +190,45 @@
 book
-) %7B%0A     //persist book using jdbc calls%0A   %7D    %0A%0A   public List%3CBook%3E getBooks() %7B        %0A     //get books using jdbc calls%0A   %7D%0A   ...
+Name);%0A%0A   List%3CBook%3E getBooks();%0A    
 %0A%7D%0A

Update LibraryPersistentBean.java