Nakataa Kokuyo

Ranch Hand
+ Follow
since Jul 24, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
31
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Nakataa Kokuyo

Thanks Jelle Klap for the guidance, will certainly look into it
Thanks Bill, I certainly miss out this
3 years ago
Thanks a million K. Tsang and Ulf Dittmer for the warm replies, it really help !

for the front end, is that possible we can make tenant have their own URL rather than append general URL with tenantID ? for instance, www.hosptal-1.com for tenant1, and www.hospital-2.com for tenant2
3 years ago
Sorry for misunderstanding and bad language

Assume this is an online healthcare application, each hospital setup their own information like product or services which going to publish to public, and can be done under an URL say www.e-care.com, which is also treat as back-end office application.

however, on user interface side, it will have separate URL to show their UI page, public can go though URL like www.hospital1.com to view their hospital-1 information, and www.hospital2.com to view hospital-2 information. but internally, those information are captured and entered under one back-end system, in this case www.e-care.com.

Question :

1. Can we build or is it make sense to have application to behave this as above mentioned (back-end in one application, front-end in another URL) ?
2. Should i achieve this under web hosting or cloud base in term of infrastructure setup ?
3. In term of software design, how to design such application especially data display(user interface, configuration, etc) base on user login in effective way?
4. this is licensed base application, it allow multiple user login for the same instance, for instance, Hospital-1 might have 10 users to login to www.e-care.com for back-end administrative and view the same page.
5. How to make sure user do not misuse the login and ensure with security?
6. Is there a better alternative ?

Thanks in advance for enlightenment !
3 years ago
Good day,

Appreciated someone can enlighten me with the idea of how we can turn the application to licensing and cloud base.

By depending on user login, user will direct to different instance of the application with respective data showing.

just like how salesforce.com react

Thanks in advance!
3 years ago
Good day,

I'm new in ANT, I'm about creating a build.xml for my deployment, and current task that i working on is about do zip file from respective folder.

I want to zip all the file under c:\myproject_folder\xml , but how come i can't use ${xml.dir} in includes tag ? if i remove it and place includes="xml/**", it works! , can anyone please enlighten me on this? thanks in advance!

3 years ago
Thanks Tim,

We can also run the ftp and login to linux task from ANT too ? my understanding is that ANT is for most build task, maven is more on project initialze too even it can run the ANT script as well.

Do i need to use ANT script to trigger shell script from window system?
3 years ago
Good day,

I'm using window 8 OS and new in linux, would like seek for your advice how to handle below task with script, thanks ahead for the guidance!

1. Checkout latest code from svn (window)
2. Zip related file(window) and transfer it to linux (window ftp)
3. Copy the zip file and build the .jar file (linux)
4. Stop current process and replace the latest .jar file which was build (linux)
5. Start the application (linux)

May i know how i can achieve these and what script expecting to learn from my end?

thank you !
3 years ago
Hi K. Tsang,

there are two ways user can trigger the file generation - manual or auto.

Both approach will trigger from web UI, for manual, user can download the file and allow to upload it into different environment at anytime.
for auto, user trigger the file generation process from web UI and the generated file will transfer over via FTP to other environment instantly.

the file size checksum is to ensure the content is not being modify by the user.

3 years ago
Thanks K. Tsang, that's sound a better idea on using modified date !

Between, After the file generation, it will drop into a unix folder and then move into DB, it suppose not interfere by the user, management want to ensure security.

regards the implementation, if possible could you please shed some light on this too ?

3 years ago
Good day,

I would like to create a component to detect the file being modify before process.

Seeking for the advice, whether my thought is make sense and is it the right way to detect the file modification based on file size value?

Below are the flow:

1. Get the file size of a file
2. Used file size value encrypt it with MD5 algorithm, and say it generated us encrypted value "0123sdf"
3. to avoid user modify the file content, before file process, we take the file and do the encryption with md5 again, if it return value "0123sdf", then we are sure it doesn't have modification.

my question:
a. is it the right approach to detect file modification?
b. what the library advise to use or using java.security.DigestInputStream will do?

Thanks for enlighten!
3 years ago
Thanks Jeanne for enlightenment!

Between, If i make the count as static variable, how come it doesn't show me right value after i changed it from beforeMethod ?
3 years ago
Thanks Jeanne! I figure out in below way, May I know is there a better way to make it work?

can i update the variable "count" whenever any method call ? i try to make it Static but seem not working..

3 years ago
Good day,

if i have a bean class like below, how can my MethodBeforeAdvice implementation class increase value of "count" ?






Thanks!
3 years ago