Dear jgallimore Thanks a lot for you reply; I tried the below:
Context initContext = new InitialContext(); DataSource ds = (DataSource) initContext.lookup("openejb:Resource/services"); this.ConnectDataSource = ds; But I received the below exception: javax.naming.NameNotFoundException: Name "Resource/services" not found. PS: Waiting your Example. Best Regards -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html