websphere-liberty

JSR 352 with Liberty Profile - how to implement checkpointing when ItemReader does a DB query

会有一股神秘感。 提交于 2019-12-04 03:47:44
问题 I have 10 records in my source table and I am having item count as 3. I have 2 partitions to process these 10 records(i.e first 5 records will be processed in first partition and remaining records processed in 2nd partition while processing records in 2nd partition I am throwing an exception so job will be failed at 2nd chunk of 2nd partition.when I am restarting the job ,failed partition is processing all the records again(that is first chunk and 2nd chunk). Restarting the job should only

How to use Websphere liberty in spring boot application

左心房为你撑大大i 提交于 2019-12-04 03:18:00
I want to use Websphere liberty in spring boot application instead of tomcat server. If I am correct it is not supported out of the box. How can I configure spring boot/websphere liberty to achieve this? Using the Liberty app accelerator you can download a zip containing a Maven buildable 'Spring Boot with Spring MVC' app as your starting point. Just run mvn install and you'll get the app running at http://localhost:9080/myLibertyApp/ Chris Vignola Actually, you can now create runnable jar files with WebSphere Liberty. You need v8.5.5.9 or higher. Create a runnable jar this way: server package

Configuring a JNDI resource that isn't a datasource in Liberty Profile

╄→尐↘猪︶ㄣ 提交于 2019-12-03 20:13:00
I'm trying to run an existing WebSphere application in Liberty Profile but have run into a problem. The application has a resource environment entry configured in the server which I need to translate into a Liberty Profile resource. How can I configure a JNDI resource in the server.xml, that isn't a datasource (dataSource) or a constant (jndiEntry)? Many thanks You can configure this using the element in the server.xml. This is documented in the infocenter . Essentially you enable the jndi feature in the server.xml using this: <featureManager> <feature>jndi-1.0</feature> </featureManager> Then

log4j2: Location for setting Log4jContextSelector system property for asynchronous logging

非 Y 不嫁゛ 提交于 2019-12-03 12:46:18
I am attempting to set up asynchronous logging (for performance reasons) within REST web methods that currently run in a liberty profile server. In order to do this, I have set up the following property: System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector"); My problem is that no matter where I do this, sometimes it works and logging is very fast, and sometimes it doesn't. I have tried (a) in the constructor for the class containing all the REST web methods (b) in the filter doFilter method that gets called prior to the REST method (c) in

Push Notification doesnt work in a liberty profile

感情迁移 提交于 2019-12-02 21:26:10
问题 Im trying to send a push to a android device from this configuration: MobileFirst 6.3.0.00-20150404-1503 in libery profile: WebSphere Application Server 8.5.5.4 (wlp-1.0.7.cl50420141121-1414) The user logs correctly to the realm and the suscription to the push was successful in the eclipse development and in our liberty customer edition, when i execute a push to a user in my development server does work, but in our customer edition server doesnt (even if he apears as suscribed). im getting a:

How to define CORS in Websphere Application Server Liberty Profile V8.5

倾然丶 夕夏残阳落幕 提交于 2019-12-02 19:24:06
Is it possible to apply cross-origin resource sharing (CORS) in a Websphere Application Server Liberty Profile V8.5 ? I searched the redbook but couldn't find IBM mention anything about it. ( http://www.redbooks.ibm.com/abstracts/sg248076.html?Open ) It's not possibility for me to set the headers programmatically like this: Access-Control-Allow-Origin: * ( http://enable-cors.org/server.html ) You have to add following jars to your WEB-INF/lib folder: cors-filter-1.8.jar java-property-utils-1.9.jar In your web.xml you have to add following rules: <filter> <filter-name>CORS</filter-name> <filter

websphere - CWWKE0054E error unable to open file

谁说胖子不能爱 提交于 2019-12-02 18:36:32
问题 i am trying run the websphere liberty profile server from the command line. I am following the steps told here : https://developer.ibm.com/wasdev/downloads/liberty-profile-using-non-eclipse-environments/ I have created the server with the name server1. But when the extraction completes and I try to start the server using the command : server start server1 the server throws an error : CWWKE0054E: Unable to open file C:\wlp\wlp\usr\servers\server1\logs\C:\Users\Furquan\AppData\Local\Temp\\ihp

How to reference flyway.locations via application.properties on Liberty Profile using classpath:

巧了我就是萌 提交于 2019-12-02 14:49:20
问题 I have a SpringBoot application running on Liberty using flyway and working with filesystem: to reference the db/migration files locally. For our deployed environment I would prefer to keep the files inside of the generated war and not in a server folder and specified directly. When I try to use classpath:db/migration I get the following: 2017-06-21 13:50:20.494 INFO 2600 --- [ecutor-thread-3] o.f.core.internal.util.VersionPrinter : Flyway 4.2.0 by Boxfuse 2017-06-21 13:50:21.521 INFO 2600 --

Push Notification doesnt work in a liberty profile

夙愿已清 提交于 2019-12-02 07:31:59
Im trying to send a push to a android device from this configuration: MobileFirst 6.3.0.00-20150404-1503 in libery profile: WebSphere Application Server 8.5.5.4 (wlp-1.0.7.cl50420141121-1414) The user logs correctly to the realm and the suscription to the push was successful in the eclipse development and in our liberty customer edition, when i execute a push to a user in my development server does work, but in our customer edition server doesnt (even if he apears as suscribed). im getting a: [4/22/15 17:18:22:163 ART] 000000ab com.worklight.gadgets.serving.ClientConfigProfileServlet W com

Log4j JDK Logging adapter: Apply LogManager system property late in the startup process

纵然是瞬间 提交于 2019-12-02 05:54:07
问题 I have an WebSphere Application Server which runs an WebApp. I start the Server from Eclipse. The main logging framework in that application is log4j2, but there are some third party libraries which use java.util.logging. I want to redirect those logs to log4j2 so it uses my filters, log format etc. To achieve this I can use the Log4j JDK Logging Adapter. Usually one would set the system property -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager , for example in the jvm