Can i use a stateless session bean to insert data into a table.I am only inserting data to it,Not performing any operations on it.Also I am not using any Transaction Management for it. Or should i design a Entity bean for it.
Stateless Session beans, (beans in general) form the business layer of your application. Call the business methods on the stateless session bean, pass the parameters through a ValueObject and call Data Access layer to do the actual insert. Do not bother about DB connectivity in the bean.