milan doshi

Ranch Hand
+ Follow
since Nov 03, 2000
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 milan doshi

Hello,

We are using EHCACHE as the second level caching mechanism in our Hibernate project. As part of EHCACHE configuration I want to cache certain associations.

Thus in a hbm file I have added

<cache usage="read-only" />

at the class level and also at the association level.

However due to the addition of

<cache usage="read-only" />

at the association it gives me this error :
[i]
Can't write to a readonly object
java.lang.UnsupportedOperationException: Can't write to a readonly object
[/i]

What is the reason for this ? I can make it work if I make it <cache usage="read-write" />. However I want to keep it read-only.

In the hbm file at the class level, I have stated mutable="false". How do I do that for the association ? Adding mutable as an attribute of 'set' does not seem to work (although it should have).Anyways, although I strongly feel that it is due to mutable issue, it maybe due to somthing else. Any ideas / suggestions ?

Thanks and regards,
Milan
Hello,

We have an application where we have developed MDPs to listen to JMS Queues (In our case MQ). We are using weblogic server.

We were able to configure test queues on our local development weblogic box . We were able to drop a message and the MDP was invoked and did the required processing. HOWEVER , in real world, our MQ is remote. We are NOT going to use our Weblogic queues. i.e the Listenere will have to point to remote MQ hosted on a different box. What change is required to accomplish this ?

Relevant excerpt of our current jms-context.xml (config) file is as follows :


Any thoughts what changes do I make, of course , apart from changing the server name and port . Any help appreciated.

Thanks,
Milan
14 years ago
One more clarification is sought:

Would such a conversion require any special handling for any characters ? So when I am generating an EBCDIC file, will it require special handling for any character(next line etc) ?

I know that most probably this is a NON Issue but I thought of clarifying it while I am in design stage.

Thanks again!
16 years ago
Thanks Paul !

Thats a very helpful reply. The probelem seems to be much less complex than I what originally perceived . Yes, we will be using Cp037.

As far as images are concernmed, I need to embedd the BINARY image in the generated file.

So it's time for me to try out your suggestions...

Thanks again!
Milan
16 years ago
Hello,

I need to generate an EBCDIC file. The file will also have binary images embedded in it.

Can someone tell me how do I convert a Java String to EBCDIC and generate a file which has EBCDIC data ?

Thanks in advance,
Milan
16 years ago
Hello,

We have an application where I need to put huge amount of records in a flat file. The records are text and binary (images) and the size of the file will probably run int0 700 MB to 800 MB.

I would be firing various queries/SPs and plan to append the data to the output file (The output file will be first created when the first query/SP is fired and subsequently the data will be appended to it).

My question is:

Is this a feasible idea? When I say append to an existing file, I am not sure, if that requires the ENTIRE file to be read in memory and then append the part´┐Ż Is that how io works in java? If that happens than I will again run into memory issues. OR is it that when I say append to an existing file than io will only flush out my new record to an existing flat file without reading the entire file in memory(and make life simple for me ) . Kindly advice on what is the best approach for this .

Thanks in advance,
Milan
16 years ago
Hi,

Thanks for the suggestion. You are an author of a Book and hence you will understand better than others that life is not so easy.....

I have an ongoing project which already has many many products and it has been using JRE 1.3 since the project started .

Yes, we do have upgration plan but in a project of this magnitude it will take few months and I do not think all the Producst will be upgradede before 2006.Hence I am looking for an alternative solution.

I can ofcourse, parse it and do it myself (without using JDOM, NetBeans ,Castor, JAXB etc)...but does that make sense?

Thanks,
MD
Hello Krishna,

Does NetBeans work with JRE 1.3 /JDK 1.3

Thanks,
MD
[ June 03, 2005: Message edited by: milan doshi ]
Hi,

In our existing project we are using JDK / JRE 1.3.

We need to add a module wherein we need to pick up an XML object (from MQ) and convert it into a Java Object.

I was initially planning to use JAXB, but it appears that it needs Java 1.4 (or above). Is it ? So what is the other option available ?

Is JDOM a worthwhile alternative ? Would it be supported on Java 1.3?or any other suitable alternative.

Kindly advice as need to finalize on this as soon as possible.

Thanks,
MD
Hi,

I need to design /code an MDB which will listen to an MQ Queue.

I need to know how to create Queue Manager, Queue, Channel, etc. I do not have a Websphere Studio license and instead I am using Eclipse.

While I know how to write the MDB, I need more information regarding Configuration(Queue Manager, Queue, Channel) and deployement.

Can someone guide me to the steps ? Also if you can point me to any links , that will be appreciated.

Thanks,
MD
Hi Kumaran,

Yes I am currently having multiple TCPMons open(listening at different ports) as in my current development I am connecting to many Middletier Services.

The probable reason for this error (if at all if this is an error) is that the request is NOT reaching TCPMon at all!!!

I do not think the TCPMon is hung or something, its quite likely that TCPMon has not received any request to entertain...

Thanks,
MD
17 years ago

Does XML Spy show us the request and response soap envelopes when consuming remote web services availale at Amazon, eBay etc. ?



I am not sure what you mean by Amazon, ebay etc..but yes, XMLSpy would show the complete Request / Response.

In Fact, it will allow you to fill up different values for request (input) and you can then submit it and see the response for that input.

Thanks,
MD
17 years ago
Also XML Spy is a wonderful tool which has the facility of passing the WSDL URL and it can act as a client. This is especially useful during Development when the development of Webservice is complete but there is NO client to invoke and test it.

Unfortunately, XML SPY is free only for a month

Thanks,
MD
17 years ago
Based on your question, http://javaboutique.internet.com/tutorials/Axis/ should hlp you get going with client code.

By the way, the stub , with which you just invoked the webservice is a Client! What else are you looking for?

Thanks,
MD
17 years ago
Hi,

I have developed few Webservices and also worked on the client side. But there are few things which I am not sure of :

We often say that "Messages goes through many endpoints on the way to their destinations..". What does this mean exactly?

Let us say my endpoint is :

http://dev.milan.com:9080/something/services/

When and how will the message go to ANOTHER endpoint?

when does the mustUnderstand attribute in the header come into play?

I have only read it theoritically but I do not understand its actual meaning. Can it be ellaborated.

Thanks in advance,
Milan Doshi
17 years ago