Sam Pablo

Greenhorn
+ Follow
since Apr 08, 2010
Sam likes ...
Eclipse IDE Tomcat Server
Merit badge: grant badges
For More
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sam Pablo

Winston Gutkowski wrote:

Sam Pablo wrote:To simplify what I have written, as quoted above, I hope you know tools like JMap, JConsole, JStack, etc, which takes heap dumps.
As far as I can understand, they collect the number of heap objects (which are being referenced or ready for garbage collection). I too want to do the same, say for example, count the total number of objects in the heap, through a Java Code (I do not know how JMap or JConsole does it, maybe by native calls or through Java API).


And in addition to Tony's link, you might also want to look at the java.lang.management package that was introduced in 1.6.

However, before you go too far down this road, you'd better be able to justify your decision; because it sounds to me an awful lot like re-inventing the wheel.
I suspect you'll also find you're in a 'bleeding-edge' area where you can't rely on a lot of help, and will probably have to learn a lot of stuff by trial and error.

If someone asked me to do this, my first question to them would be: Why?
And if that didn't stop them, I'd come up with suitably padded estimates of how long it will take, and how much it'll cost (usually the nail in the coffin of any speculative project). And if that didn't stop them, then I'd accept defeat and settle in for a nice 3 month R&D exercise.

One question for you though: Do you really think you need to retrieve objects in order to get a count of them?

Winston



Winston, yes, i agree to what you said. It is just that this question was asked to me in one of the interviews, so thought of trying it out. Anyways, thank you for your time
11 years ago

Tony Docherty wrote:The simple answer is I don't know for sure. I know there is an instrumentation api and I believe these products use that.
A quick google found this site http://www.javamex.com/tutorials/memory/instrumentation.shtml which may be useful to you.



Thanks Tony..
Thanks for your time..
11 years ago

Tony Docherty wrote:

I want to retrieve objects from Java Heap, and want to write a code for the same.


Can you explain what you mean by this and also explain what you are trying to achieve.



Thanks for your interest Tony...

To simplify what I have written, as quoted above, I hope you know tools like JMap, JConsole, JStack, etc, which takes heap dumps.
As far as I can understand, they collect the number of heap objects (which are being referenced or ready for garbage collection). I too want to do the same, say for example, count the total number of objects in the heap, through a Java Code (I do not know how JMap or JConsole does it, maybe by native calls or through Java API).

11 years ago
Hi Gurus,

I want to retrieve objects from Java Heap, and want to write a code for the same.

Can someone tell me which API should I use to do the same?

Any pointers would be helpful.

Regards,

Sam.
11 years ago
Hi All,

After quite a search, I understood that the asyncsod.wsdl file is what the WL server is looking for during deploying the application.

To resolve the issue, in the war file, I added a folder wsdls and added the asyncsod.wsdl file. The asyncsod.wsdl file can be found in the following location of OIM installation:

[bea-home]/Oracle_IDM1//server/apps/oim.ear/sodcheck.war/WEB-INF/wsdls/asyncsod.wsdl

This issue has been logged with Oracle but I do not know if there is any patch available for this.

Thank you.

Sudipto.
12 years ago
Hi Bosun,

Thank you for the reply.

After I build the project using ant, we get the ear file generated as a result of execution of the build.xml.

We deploy this as an application on a Weblogic 11gR1 server.

As I build this application manually, the possibility of a weblogic.jar file being included in the build path is ruled out.

During deployment, we get this error.
12 years ago
Hi Friends,

I have a code which works with Oracle Identity Manager for user profiles management, created on a OIM server. I want to expose these methods as web service.

The code and the methods that I want to expose as web service is as follows:

Removing the code


The build.xml file that I use to build my project is as follows:



I run ant to build the project. The ant run is fine and the build completes successfully, but when I deploy the application from the ear directory , the deployment fails.

Following is the weblogic server log:



I cannot figure out what actually is going on. Any suggestion and clues would be greatly appreciated.

Waiting in anticipation.
12 years ago
Hi Experts,

Hope you all are doing well.

I have a WebCenter Portal Application running on WLS server.

There is a web service (i created the web service application in eclipse IDE along with Lomboz plug in) that has a custom method getName() of HelloWorld.java, which return a string.

The interesting thing is that now I want this WebCenter Portal Application to make a web service call to this custom method.

Please guide how do I do a web service call from a WebCenter Portal Application.

I searched through the standard Oracle Documents about integrating of WebCenter Portal Application with web services without any luck.

Seeking some expert advice.

Any pointers would be helpful.
12 years ago
Hi Folks,

Hope you all are doing well.

I would like to share the technical difficulty that I am facing.

I am currently assigned the task of creating a sample application on Oracle WebCenter.

Now what I cannot understand is, as I am very new to Web Services, ADF and the rest of the different technologies, what should I go for first to understand what an Oracle WebCenter is?

Should I learn web services, or should i go with JSF or what exactly do I have to study?

Please spare a little time to guide me.

That would be a lot of help to me.

Regards,

Sam P.
12 years ago
Hey Sean,

Thanks for your thoughts but I am more interested in getting this done as I know that the organization for which I am developing this does not recommend to turn off javascript! also, this same technique is used at lots of pages.

Any ways, thanks for your time
I am sorry not provide you guys the details.

Ok, so here it is. I have the following text in my text box:

Sudipto Shekhar (ID2345), Jerrki (ID9301), Sam Pablo(ID1002)

I want these data to be saved in the database. Now, as the data in the textbox is fetched from the database, the user is not supposed to delete any details from the one that is present in the textbox. What I mean is I cannot change Sudipto Shekhar (ID2345) to Sudipto Shekhar (ID2346). And so, if the user tries to change anything from the text, I want to delete the whole text. For example:

Sudipto Shekhar (ID2345), Jerrki (ID9301), Sam Pablo(ID1002). If the user tries to change Sudipto Shekhar (ID2345) to Sudipto Shekhar (ID2346) and hit a backspace or delete button, I want to delete entire Sudipto Shekhar (ID2345), but just that, and want to retain rest of the text in the text box:

Jerrki (ID9301), Sam Pablo(ID1002)

A better example would be how the outlook To: textbox.

I hope I am clear now. Please let me know if I am still not clear.


This piece of code accomplishes the above stated reqirement of clearing the textfield. Now I want to delete a part of the text in the text field:

e.g. Sudipto Shekhar (ID2345), Jerrki (ID9301)

If the user tries to delete any character from Jerrki (ID9301) or Sudipto Shekhar (ID2345) , I want to delete the particular name & id group, leaving the other part of the text intact.

I do not need any written code,just a hint on the trick to solve this and the javascript functions that can be used would be fine.

Thank you Eric for showing interest in the post...
Hi Folks,

Hope you guys are doing well.

My text box takes multiple names and the employee id as input with "," seperating them. If the user tries to delete any character/number from those details, the text field should be cleared.

I have achieved the task of clearing the whole text box if the user hits backspace or delete button (works fine with single name entry )

N w that I have multiple names, I only want to delete the only name and its corresponding employee id text; leaving the rest of the text in the box intact.

Any idea to accomplish the same would be great.

What are the parameters that are to be specified? Is it a ratio like 40 and 70 or something else? Please help.
14 years ago