Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

Couple of Java EE related questions, CDI, JPA

$
0
0

Hi,

 

I thought I'd write an article or two about using Vaadin as a UI library for a SAP Hana backed applications. I got something up and running, based on the EJB example that comes with the SDK, but also got couple of questions related to the provided Java EE Web Profile execution environment.

 

First is about CDI? It'd be awesome helper for Vaadin apps and also other UI frameworks. That would help both injecting the EJB to UI classes and also to write cleaner UI code. Vaadin CDI integration library looks for BeanManager in some cases via JNDI lookup from java:comp/BeanManager. This don't seem to be in SAP Hana Cloud server, although it should be there by the specification. Is there some alternative JNDI location where it could be searched for?

 

Another question is about JPA provider. I see that you are using EclipseLink, which is my favourite as well ;-) But the question is, is it on purpose added to war files as a normal dependency (and jar file to WEB-INF/lib)? Shouldn't that be provided by the execution environment and have <scope>provided</scope> in the dependency declaration?

 

I was also struggling to get the local development server setup up and running, but this is probably an issue in my tunnel setup.

 

cheers,

matti


Viewing all articles
Browse latest Browse all 3131

Trending Articles