Aryan Venkat

1

votes
0

answer
9

views

H2 database gets activated by default, although I have enabled oracle from Spring boot property files

We use hierarchically organised Spring boot property files in our application. For example, Our application.properties will just contain a single line. spring.profiles.include = logging, kafka, oracle, misc Where all the values separated by comma here are other property files (namely application-log...
Aryan Venkat
6

votes
2

answer
5.2k

views

How can I get a cookie value inside websocket end-point

I'm using Websocket-API based on JavaEE 7, in my application. I'm required to access the values set in cookies inside my websocket endpoint [Annotated one : @ServerEndpoint ("/websocket") ]. How would I do that? @onOpen() method is there, which will be called automatically when a connection to this...
Aryan Venkat
3

votes
2

answer
262

views

Unable to convert a given Local Date to GMT Date using Java 8

I'm having hard time converting a given local date (which is in IST) to GMT using Java 8 classes LocalDateTime and ZonedDateTime. Consider the following code snippet. LocalDateTime ldt = LocalDateTime.parse("22-1-2015 10:15:55 AM", DateTimeFormatter.ofPattern("dd-M-yyyy hh:mm:ss a")); ZonedDateTime...
Aryan Venkat
3

votes
1

answer
235

views

Dynamic pagination using ember

We use EmberJs to make up our webapp. I have a pagination code that displays 5 items per each from a total of 100 items. All the thousand 100 items are taken from a single API call and will be passed to the 'model' as an array; and the controller will slice the array based on the page no and page s...
Aryan Venkat
12

votes
2

answer
19.9k

views

How to get an existing websocket instance

I'm working on an application that uses Websockets (Java EE 7) to send messages to all the connected clients asynchronously. The server (Websocket endpoint) should send these messages whenever a new article (an engagement modal in my app) is created. Everytime a connection is established to the webs...
Aryan Venkat
7

votes
0

answer
252

views

Send binary input data (gzip compressed) from POST request to Spring Web Flux

I'm trying to send a bunch of gzip compressed data (basically a json, compressed using gzip) to my Spring Web Flux application. I'm currently using Postman as my web client, and sending the data via request payload (Body -> raw). Here's a glimpse of my payload. [31, -117, 8, 0, 0, 0, 0, 0, 0, 0, -51...
Aryan Venkat
3

votes
1

answer
1.1k

views

URL Rewrite Filter not working with query parameters containing special characters

I'm using URL Rewrite Filter to forward some ugly URLs to pretty Urls. Referring to Conditions Based On URL Parameters, I’ve done something using UrlRewriteFilter which is actually required to make my site Google crawl-able. Here’s how it goes. The rule means that requests to /test/status/ will...
Aryan Venkat
2

votes
1

answer
2.2k

views

Jmap - Error connecting to remote debug server

My requirement is to create a dump file of heap memory of a remote server using Jmap. I did this way. jmap -dump:file=remoteDump.txt,format=b 3104 This worked fine as 3104 is the pid of a process from my local machine. How do I do the same with remote server? I tried jmap -dump:file=remoteDump.txt,f...
Aryan Venkat