package com.apress.springrecipes.post;
import javax.ejb.Remote;
import javax.ejb.Stateless;
@Stateless
@Remote( { PostageService.class })
public class PostageServiceBean implements PostageService {
public double calculatePostage(String country, double weight) {
return 1.0;
}
}
jndi-name="PostageServiceBeanRemote">
<jee:environment>
java.naming.factory.initial=org.apache.openejb.client.RemoteInitialContextFactory
java.naming.provider.url=ejbd://127.0.0.1:4201
</jee:environment>
</jee:jndi-lookup>
<bean id="frontDesk"
class="com.apress.springrecipes.post.FrontDeskImpl">
<property name="postageService" ref="postageService"/>
</bean>
</beans>