Instantly share code, notes, and snippets.

Embed
What would you like to do?

Ask questions and see you at November, 5th, 6.PM. CET: http://www.ustream.tv/channel/adambien

Also checkout recent episode:

555h airhacks.tv

Please keep the questions Java EE-stic. Means: as short and as concise as only possible.

@Zodzie

This comment has been minimized.

Show comment
Hide comment
@Zodzie

Zodzie Oct 6, 2018

Hi Adam! Thanks for hosting an opportunity for questions.

I am thinking about the best way for me to store secrets for my Java ServerSocket app, with the only non-standard lib I'd like to depend on is javax.json.

With regard to storing secrets, I was thinking about encrypting the string using openssl, storing the encrypted string as a resource packed in the jar, and decrypting by providing the private key like so:
/bin/openssl rsautl -inkey ../../key.txt -decrypt < ../../password

But then I'm wondering how to store the private key and so forth...

Can you please offer some advice or best method to handle these types of secrets?

Zodzie commented Oct 6, 2018

Hi Adam! Thanks for hosting an opportunity for questions.

I am thinking about the best way for me to store secrets for my Java ServerSocket app, with the only non-standard lib I'd like to depend on is javax.json.

With regard to storing secrets, I was thinking about encrypting the string using openssl, storing the encrypted string as a resource packed in the jar, and decrypting by providing the private key like so:
/bin/openssl rsautl -inkey ../../key.txt -decrypt < ../../password

But then I'm wondering how to store the private key and so forth...

Can you please offer some advice or best method to handle these types of secrets?

@vanuatoo

This comment has been minimized.

Show comment
Hide comment
@vanuatoo

vanuatoo Oct 7, 2018

Objective is to prevent other transaction insert a row in a table during another transaction is manipulating on the data.
With JDBC you can use Connection.setTransactionIsolation(TRANSACTION_SERIALIZABLE) to lock the table.
How can you achieve the same effect with JPA? Even if you use Pessimistic Write it locks the object (row in a table) not the whole table.

vanuatoo commented Oct 7, 2018

Objective is to prevent other transaction insert a row in a table during another transaction is manipulating on the data.
With JDBC you can use Connection.setTransactionIsolation(TRANSACTION_SERIALIZABLE) to lock the table.
How can you achieve the same effect with JPA? Even if you use Pessimistic Write it locks the object (row in a table) not the whole table.

@kret11

This comment has been minimized.

Show comment
Hide comment
@kret11

kret11 Oct 8, 2018

How to implement data internationalization for rest api javaee server? i mean something like cms backend

kret11 commented Oct 8, 2018

How to implement data internationalization for rest api javaee server? i mean something like cms backend

@tnsasse

This comment has been minimized.

Show comment
Hide comment
@tnsasse

tnsasse Oct 11, 2018

You develop an application like GitHub that is hosted on the cloud. You would like to offer an on-premise Version like GitHub Enterprise for premium clients. What’s the best way to ensure that users have a valid license and remain in the negotiated constraints, like number of servers / users?

tnsasse commented Oct 11, 2018

You develop an application like GitHub that is hosted on the cloud. You would like to offer an on-premise Version like GitHub Enterprise for premium clients. What’s the best way to ensure that users have a valid license and remain in the negotiated constraints, like number of servers / users?

@noherczeg

This comment has been minimized.

Show comment
Hide comment
@noherczeg

noherczeg Oct 17, 2018

Hello Adam,

You've been talking about using the platform for web applications without frameworks. I find this a really nice way to go but I have a few questions regarding how is it achievable in a production ready way.

So my questions are:

  • what about uglifying sources?
  • cache busting suffixes?
  • concatenation where there is no HTTP2 support?

Thank you,
Norbert

noherczeg commented Oct 17, 2018

Hello Adam,

You've been talking about using the platform for web applications without frameworks. I find this a really nice way to go but I have a few questions regarding how is it achievable in a production ready way.

So my questions are:

  • what about uglifying sources?
  • cache busting suffixes?
  • concatenation where there is no HTTP2 support?

Thank you,
Norbert

@dempile

This comment has been minimized.

Show comment
Hide comment
@dempile

dempile Oct 17, 2018

Hi Adam
If we consider a context of large application with a thousands of users and alot of forms, is it more suitable from performance perspective to use JSF ( primefaces ) or using one of the frontend javascript based frameworks like React or Angular, and if we use React or Angular what do you suggest , server side rendring , or client side rendring
thanks

dempile commented Oct 17, 2018

Hi Adam
If we consider a context of large application with a thousands of users and alot of forms, is it more suitable from performance perspective to use JSF ( primefaces ) or using one of the frontend javascript based frameworks like React or Angular, and if we use React or Angular what do you suggest , server side rendring , or client side rendring
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment