vijay jamadade

Ranch Hand
+ Follow
since May 12, 2008
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vijay jamadade

Thanks Tim.

but when i try to access normal GIT file which is accessible without authentication can be downloaded. Problem here is authentication might not getting applied. And its not throwing authentication related error. Other files in other repositories like https://jcenter.bintray.com/ are getting downloaded. So I think there is no issue with connection. But whatever i am trying, Is it possible? I am not getting any samples on internet. There is very limited information.

4 months ago
Hi Ranchers,

I have a requirement where i want to download jar files required for my build from one of our GIT repository which needs authentication. I am using below in my build.xml,

///
<target name="vijay" unless="ivy.installed">
<mkdir dir="${ivy.home}"/>
<get src="https://github.com/abc/module/raw/lib/apache-ant-1.7.0/ant.jar" dest="${ivy.home}/h.jar"/>
</target>
///
to download above jar. But i am getting below exception,
[get] Error opening connection java.io.FileNotFoundException:
///

Is this due to thing that my github repository needs authentication? Can I achieve this thing of downloading some jars build time from github?
4 months ago
I agree Junilu. I think i will raise this issue for analysis and changes in design and it will take lot of time for resolution. Many people use this thing.
6 months ago
Based on name of this class, people have wrote customized solutions in our application. we have around 200 clients which uses our product and customize things using different scripts where they create instance of this class and access functions which are exposed to them. This class itself implements an interface in upper layer in our product. These customized scripts get interpreted using bean shell library. so scripts can be in any language which are understood by bean shell implementation. Thats why i said i cant change this class and i have to live with it. 
6 months ago
Thank you Junilu and Stephan.

You got it correct Junilu. But I cant change this class to interface. Now what i am planning to do is create 2 service classes.




What do you think about this approach?
6 months ago
One more thing is client only know about class-A. They have written own implementations using class-A. So i want to redirect them to new implementation based on some condition or flag that will be passed by them to class-A constructor.
6 months ago
okay my mistake. I haven't wrote that in code but class-A implements an interface. This class-A was providing some functionality to clients using methods like add(). Now I have 2 clients, one wants to use implementation in class-A and other wants implementation of class-B method like add(). Untouched i meant i want to deprecate class-A's add() method in future. thats why i dont want changes in that for mixed behavior which will result in complications while deprecating it. New clients for class-A will should use class-B's add() method based on some flag or value like i passed in constructor using below code. 



Is it possible? like can i cast an object to subclass object so that it will start referring methods of class B.
6 months ago
Hi All,

I have an existing java class which is having some functions implemented based on interface. Now I want to add new class which will have same functions and will get instantiated within constructor of my original class. So consider below example,



So if client class calls add() method, it should be Add() from class B. Limitation i have with my code is i can make changes in class A only. This is needed for backward compatibility where i want Class A to be untouched. This is because this class A gets instantiated through various scripts and method like Add() are used.

Thank you in advance. I hope my question is clear.
6 months ago
yes whole idea behind my application is doing administrative tasks.
9 months ago
hi,

I have a query for revoke which i execute using java class on db2 database.
//
REVOKE ROLE 'xyz' FROM USER 'john' BY ALL
//
In java i pass values for xyz and john through variables which can be attacked using sql injection. I cant use prepared statement here as this is DCL statement. I can't also use stored procedure to avoid this due to our application restrictions.

Is there any way to prevent/fix this injection?
9 months ago
Is it open for india as well?
1 year ago
I found solution for this and wanted to share. there is an API yjp-controller-api-redist.jar which can be used and commands can be as below,

java -jar yjp-controller-api-redist.jar localhost <agent_port> capture-performance-snapshot


these can capture snapshots. Thanks for replies.
2 years ago
Hi,

I have installed yourkit on linux machine for checking performance of application running on tomcat server. Requirement is i want to capture snapshots without using yourkit profiler UI. Can we do this? How? I cant install profiler yourkit UI due to permissions issue in my organisation.

Thanks
Vijay
2 years ago
I would say 5K is very less. You should at least get 6.5 or more than that for your experience level. Singapore work culture is different than india. In few days you will feel that you are underpaid. I think its better to be in india then.
3 years ago