https://openliberty.io/blog/2018/06/08/java-microservices-microprofile.html
https://jakarta.ee/about/
https://www.amazon.com/Hands-Cloud-Native-Microservices-Jakarta-microservices-ebook/dp/B07NDBQPLF/ref=sr_1_4?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&keywords=microprofiles&qid=1558959093&s=books&sr=1-4
Showing posts with label javaee. Show all posts
Showing posts with label javaee. Show all posts
Saturday, June 8, 2019
Monday, April 29, 2019
Swagger for Java EE reasteasy or jersey
Making Swagger work in Spring is very easy.
You can use it also in Java EE (Wildfly, WebLogic, even Tomcat!!! )
but all the documentation I have found is a bit outdated:
I have tried APIEE https://dzone.com/articles/apiee-an-easy-way-to-get-swagger-on-java-ee and https://github.com/phillip-kruger/apiee but it's not showing my services and I see no error.
Some other outdated articles:
https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-Jersey-2.X-Project-Setup-1.5
https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-RESTEasy-2.X-Project-Setup-1.5
I have no time now, but if I need to write REST services in Java EE I would not live without Swagger...
You can use it also in Java EE (Wildfly, WebLogic, even Tomcat!!! )
but all the documentation I have found is a bit outdated:
I have tried APIEE https://dzone.com/articles/apiee-an-easy-way-to-get-swagger-on-java-ee and https://github.com/phillip-kruger/apiee but it's not showing my services and I see no error.
Some other outdated articles:
https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-Jersey-2.X-Project-Setup-1.5
https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-RESTEasy-2.X-Project-Setup-1.5
I have no time now, but if I need to write REST services in Java EE I would not live without Swagger...
Sunday, April 28, 2019
CDI and javax.transaction.TransactionScoped
I was wondering how TransactionScoped works, and I stumbled upon this wonderful example:
https://www.byteslounge.com/tutorials/java-ee-cdi-transactionscoped-example
This also is a great explanation on Injected beans https://www.byteslounge.com/tutorials/java-ee-cdi-dependency-injection-inject-tutorial
It's so clearly explained that I was deeply impressed by this www.byteslounge.com
Gonçalo Marques. We need more of this stuff. Often people post partial, overcomplicated examples.... Gonçalo instead goes straight to the point.
https://www.byteslounge.com/tutorials/java-ee-cdi-transactionscoped-example
This also is a great explanation on Injected beans https://www.byteslounge.com/tutorials/java-ee-cdi-dependency-injection-inject-tutorial
It's so clearly explained that I was deeply impressed by this www.byteslounge.com
Gonçalo Marques. We need more of this stuff. Often people post partial, overcomplicated examples.... Gonçalo instead goes straight to the point.
Labels:
cdi,
javaee,
transactions
Tuesday, April 24, 2018
Useful Java EE patterns
If you need a self-refreshing cache - with a timer to fetch updates - visible to all users:
annotate a class ApplicationCache with:
@javax.enterprise.context.ApplicationScoped
@javax.ejb.Singleton
@javax.ejb.ConcurrencyManagement(ConcurrencyManagementType.BEAN)
initialize it with a method annotated with
@javax.annotation.PostConstruct
public void startup()
provide a scheduled method:
@javax.ejb.Schedule(dayOfWeek = "1-5", hour = "*", minute = "*/30", persistent = false)
public void refreshCache()
Wherever you want to invoke a service method on the above class, you acquire a reference with
@javax.inject.Inject
private ApplicationCache applicationCache;
=================
If you need a logger:
@javax.inject.Inject
private org.slf4j.Logger logger;
=================
if you need a thread-safe collection:
private final List employees = Collections.synchronizedList(new ArrayList());
private final Map employeesMap = Collections.synchronizedMap(new HashMap());
===================
annotate a class ApplicationCache with:
@javax.enterprise.context.ApplicationScoped
@javax.ejb.Singleton
@javax.ejb.ConcurrencyManagement(ConcurrencyManagementType.BEAN)
initialize it with a method annotated with
@javax.annotation.PostConstruct
public void startup()
provide a scheduled method:
@javax.ejb.Schedule(dayOfWeek = "1-5", hour = "*", minute = "*/30", persistent = false)
public void refreshCache()
Wherever you want to invoke a service method on the above class, you acquire a reference with
@javax.inject.Inject
private ApplicationCache applicationCache;
=================
If you need a logger:
@javax.inject.Inject
private org.slf4j.Logger logger;
=================
if you need a thread-safe collection:
private final List
private final Map
===================
Labels:
javaee
Monday, December 19, 2016
WebLogic 12 shared libraries
https://docs.oracle.com/cd/E24329_01/web.1211/e24368/libraries.htm#WLPRG325
Excellent presentation here:
it's always recommended to set Specification Version and Implementation Version in the MANIFEST.MF
same is true with Applications : Weblogic-Application-Version should be set in MANIFEST.MF (see https://docs.oracle.com/cd/E24329_01/web.1211/e24368/versioning.htm#WLPRG250 )
Excellent presentation here:
it's always recommended to set Specification Version and Implementation Version in the MANIFEST.MF
same is true with Applications : Weblogic-Application-Version should be set in MANIFEST.MF (see https://docs.oracle.com/cd/E24329_01/web.1211/e24368/versioning.htm#WLPRG250 )
Labels:
javaee,
sharedlibrary,
weblogic
Saturday, December 3, 2016
WebLogic Java EE tutorials
(or J2EE as someone still says)
putting together a lost of documentation and training material to become a WebLogic and Java Enterprise Edition GURU:
https://docs.oracle.com/javaee/7/JEETT.pdf
https://docs.oracle.com/middleware/12212/wls/WLPRG/WLPRG.pdf "Developing Applications for Oracle WebLogic Server"
https://docs.oracle.com/middleware/1221/wls/EJBAD.pdf Developing Enterprise JavaBeans for Oracle WebLogic Server
Install latest JDK from here http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
You can download "Oracle Enterprise Pack for Eclipse" from here http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html and the WLS 12 installer here http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
Security https://docs.oracle.com/middleware/1221/wls/SCOVR.pdf
Web Services https://docs.oracle.com/middleware/1221/wls/WSOVR.pdf and https://docs.oracle.com/middleware/12212/wls/WSGET/WSGET.pdf
WebService security https://docs.oracle.com/middleware/1221/wls/WSSOV.pdf
Restful WebServices https://docs.oracle.com/middleware/1221/wls/RESTF.pdf
Securing WebServices with Policies https://docs.oracle.com/middleware/1221/owsm/OWSMS.pdf
Developing Web Applications https://docs.oracle.com/middleware/12212/wls/WBAPP/WBAPP.pdf
Of course, don't expect to find anything readable in the Oracle documents, they are made 90% of "if you want to know something about this, follow this link" , or just a dry list of standards, all in a completely unemotional language that puts you immediately to sleep. But their JEE7 Tutorial is quite decent, however it's only meant for Glasshfish development.
Here also plenty of short tutorials https://apexapps.oracle.com/pls/apex/f?p=44785:OLL_SEARCH:116956567220019:::2:P2_SEARCH_TEXT:Weblogic
And of course all the OracleWeblogic youtube videos https://www.youtube.com/user/OracleWebLogic/videos
putting together a lost of documentation and training material to become a WebLogic and Java Enterprise Edition GURU:
https://docs.oracle.com/javaee/7/JEETT.pdf
https://docs.oracle.com/middleware/12212/wls/WLPRG/WLPRG.pdf "Developing Applications for Oracle WebLogic Server"
https://docs.oracle.com/middleware/1221/wls/EJBAD.pdf Developing Enterprise JavaBeans for Oracle WebLogic Server
Install latest JDK from here http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
You can download "Oracle Enterprise Pack for Eclipse" from here http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html and the WLS 12 installer here http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
Security https://docs.oracle.com/middleware/1221/wls/SCOVR.pdf
Web Services https://docs.oracle.com/middleware/1221/wls/WSOVR.pdf and https://docs.oracle.com/middleware/12212/wls/WSGET/WSGET.pdf
WebService security https://docs.oracle.com/middleware/1221/wls/WSSOV.pdf
Restful WebServices https://docs.oracle.com/middleware/1221/wls/RESTF.pdf
Securing WebServices with Policies https://docs.oracle.com/middleware/1221/owsm/OWSMS.pdf
Developing Web Applications https://docs.oracle.com/middleware/12212/wls/WBAPP/WBAPP.pdf
Of course, don't expect to find anything readable in the Oracle documents, they are made 90% of "if you want to know something about this, follow this link" , or just a dry list of standards, all in a completely unemotional language that puts you immediately to sleep. But their JEE7 Tutorial is quite decent, however it's only meant for Glasshfish development.
Here also plenty of short tutorials https://apexapps.oracle.com/pls/apex/f?p=44785:OLL_SEARCH:116956567220019:::2:P2_SEARCH_TEXT:Weblogic
And of course all the OracleWeblogic youtube videos https://www.youtube.com/user/OracleWebLogic/videos
Subscribe to:
Posts (Atom)