You must write in your servlet code the same code you would write in a simple Java application:
Create an initial context
Look up the bean home
Find or create a bean and access it.
An example of Java servlet can be found in the websample example.