Author |
Message
|
Vitor |
Posted: Tue Nov 06, 2012 10:21 am Post subject: Re: issues with java and WMB v7.0.0.3 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Shuyin wrote: |
mmm ok, your opinion is very helpful!! |
And one I concur with because...
Shuyin wrote: |
what could i read just for understand about java-broker? |
...with some training you'd understand that you can't deal with "java-broker" in isolation. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Shuyin |
Posted: Tue Nov 06, 2012 11:34 am Post subject: Re: issues with java and WMB v7.0.0.3 |
|
|
Novice
Joined: 26 Jul 2012 Posts: 23
|
Vitor wrote: |
Shuyin wrote: |
mmm ok, your opinion is very helpful!! |
And one I concur with because...
Shuyin wrote: |
what could i read just for understand about java-broker? |
...with some training you'd understand that you can't deal with "java-broker" in isolation. |
sorry, i can't undertand your response, so is just possible use a jcn with JavaMail API and the WMB? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 06, 2012 11:52 am Post subject: Re: issues with java and WMB v7.0.0.3 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Shuyin wrote: |
sorry, i can't undertand your response |
I sort of expected that.
Shuyin wrote: |
so is just possible use a jcn with JavaMail API and the WMB? |
It's possible. It's pointless. It won't help this issue in all likehood.
But if you feel that's best then go in peace with your decision. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Shuyin |
Posted: Tue Nov 06, 2012 3:29 pm Post subject: Re: issues with java and WMB v7.0.0.3 |
|
|
Novice
Joined: 26 Jul 2012 Posts: 23
|
Vitor wrote: |
Shuyin wrote: |
sorry, i can't undertand your response |
I sort of expected that.
Shuyin wrote: |
so is just possible use a jcn with JavaMail API and the WMB? |
It's possible. It's pointless. It won't help this issue in all likehood.
But if you feel that's best then go in peace with your decision. |
thanks to all for your time! and you Vitor, sorry but only say bla bla bla and don't help!! Remember that you were rookie too!!  |
|
Back to top |
|
 |
Shuyin |
Posted: Tue Nov 06, 2012 3:34 pm Post subject: Re: issues with java and WMB v7.0.0.3 |
|
|
Novice
Joined: 26 Jul 2012 Posts: 23
|
Shuyin wrote: |
Vitor wrote: |
Shuyin wrote: |
sorry, i can't undertand your response |
I sort of expected that.
Shuyin wrote: |
so is just possible use a jcn with JavaMail API and the WMB? |
It's possible. It's pointless. It won't help this issue in all likehood.
But if you feel that's best then go in peace with your decision. |
thanks to all for your time! and you Vitor, sorry but only say bla bla bla and don't help!! Remember that you were rookie too!!  |
And about my problem, it was the way that i used the BrokerProxy class, because this was causing the memory leak!!
Have a great life!! |
|
Back to top |
|
 |
rekarm01 |
Posted: Wed Nov 07, 2012 1:19 am Post subject: Re: issues with java and WMB v7.0.0.3 |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
Shuyin wrote: |
I use the clearmessage method, but it still "eating" memory and CPU. Is there any other way to clean the objects? |
Again, without seeing any actual code, it's really impossible to diagnose anything. The clearMessage() method is only useful for freeing up memory associated with MbMessage objects, but the JCN could be creating other types of objects ...
Shuyin wrote: |
And about my problem, it was the way that i used the BrokerProxy class, because this was causing the memory leak!! |
It's not at all obvious why a JCN meant to "retrieve email with javamail API" would be using the BrokerProxy class, but as long as the problem is resolved ...
Shuyin wrote: |
Have a great life!! |
|
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Nov 07, 2012 5:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Can you please be more specific in how your issue got resolved.
I am sure that there are more people out there using the broker proxy or planning to use it that would love to know.... Thanks  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Shuyin |
Posted: Wed Nov 07, 2012 8:45 am Post subject: |
|
|
Novice
Joined: 26 Jul 2012 Posts: 23
|
fjb_saper wrote: |
Can you please be more specific in how your issue got resolved.
I am sure that there are more people out there using the broker proxy or planning to use it that would love to know.... Thanks  |
Oh it's so simple, when you get the localinstance of broker proxy, you have to do'it only one time, and i was getting each time i execute the evaluate function. it was causing the leak memory.
regards!!  |
|
Back to top |
|
 |
Shuyin |
Posted: Wed Nov 07, 2012 8:51 am Post subject: Re: issues with java and WMB v7.0.0.3 |
|
|
Novice
Joined: 26 Jul 2012 Posts: 23
|
rekarm01 wrote: |
Shuyin wrote: |
I use the clearmessage method, but it still "eating" memory and CPU. Is there any other way to clean the objects? |
Again, without seeing any actual code, it's really impossible to diagnose anything. The clearMessage() method is only useful for freeing up memory associated with MbMessage objects, but the JCN could be creating other types of objects ...
Shuyin wrote: |
And about my problem, it was the way that i used the BrokerProxy class, because this was causing the memory leak!! |
It's not at all obvious why a JCN meant to "retrieve email with javamail API" would be using the BrokerProxy class, but as long as the problem is resolved ...
Shuyin wrote: |
Have a great life!! |
|
Hi rekarm01!
sorry because i don't post my code, but i was busy searching for information about JVM-WMB.
I was using the BrokerProxy class for retrieving "UserDefined" properties. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Nov 07, 2012 6:37 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Shuyin wrote: |
Oh it's so simple, when you get the localinstance of broker proxy, you have to do'it only one time, and i was getting each time i execute the evaluate function. it was causing the leak memory.
regards!!  |
I hope you opened a PMR with IBM. This memory leak should not happen especially if you disconnect every time you are done with using it...
Just as an additional information what did you do? Create the brokerproxy as an initialized field?
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
rekarm01 |
Posted: Thu Nov 08, 2012 3:57 am Post subject: Re: issues with java and WMB v7.0.0.3 |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
Shuyin wrote: |
I was using the BrokerProxy class for retrieving "UserDefined" properties. |
Typically, the JavaCompute node uses its own getUserDefinedAttribute() method for that ... not the Message Broker Java API. |
|
Back to top |
|
 |
Esa |
Posted: Thu Nov 08, 2012 4:02 am Post subject: Re: issues with java and WMB v7.0.0.3 |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
rekarm01 wrote: |
Shuyin wrote: |
I was using the BrokerProxy class for retrieving "UserDefined" properties. |
Typically, the JavaCompute node uses its own getUserDefinedAttribute() method for that ... not the Message Broker Java API. |
I think the OP fetches the properties from an user defined configurable service. For that, you need to use the Broker proxy API. |
|
Back to top |
|
 |
|