Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!

Dilshad Marikar

Ranch Hand
+ Follow
since Sep 08, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dilshad Marikar

In my XML schema, i have a simple type defined which is an enumeration of string values. What is the best way of converting this information into constants?

I'm hand coding a constants file at the moment, which is fine as there are a few values, but would rather have something autogenerated off the schema.

Am using JAXB, and it doesn't look like such information is available once the schema has been compiled.

any help appreciated
i too am looking for a tool to diagram the dependencies in ant tasks. Looking at the ant tools page on I found the yed editor that can read ant files (it can read xml files and provides and xsl for ant xml files).

The editor is a bit flaky, but its a super tool for visualising the dependencies, and it can export to various formats. Freeware I think.

Anyone has experience of other diagramming tools?
[ June 23, 2005: Message edited by: Dilshad Marikar ]
12 years ago
reading the jaxp api documentation a bit more closely shows that there is an unmarshall method that can be used to accept a character reader Reader via a decorator - the marshal(Source source) method
I have confirmed that you do not need to do modify the manifest file when adding jars to an ejb-jar.

Newbie question coming up:

I have built an ejb-jar and would like to include some utility classes in it (eg jars for jaxp and jaxb). Am I right in assuming that this is simply a case of adding whatever jars I need to the ejb-jar at the top-level?

I've read a forum thread on the issue here which covers ear files, but I just want to clarify the situation for just using an ejb-jar. I won't need to do any extra work, such as putting the jars in some particular directory, or modifying the manifest file?

Well, i'll give it a try tomorrow and hopefully it'll work as i think!

The xml technology centre is a good place for information

I've pasted a code snippet below to illustrate my query:

could using clob.getAsciiStream() cause problems if unicode chars are involved?

I have a query about unmarshalling XML data derived from a clob column in a database. If I use the getAsciiStream() method of java.sql.Clob and pass it to the Unmarshaller.unmarshall(InputStream) method, is there a risk that unicode characters in the XML won't get interpreted correctly? I cannot see how to use the Clob.getCharacterStream method with JAXB.

Any suggestions would be appreciated

thanks for the article Jeanne. Interesting to note that the vm parameters to enable remote debugging may vary with the vendor. Calling "java -x" from the command line appears to show the supported vm params.
i've been using eclipse and something called cqjd. But the flags in question are pretty such general to all enviromnents are they not?


I'd like to know the meaning of the vm parameters and system parameters needed for remote debugging.

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5555

what is the meaning of the -Xnoagent vm param and the system param -Djava.compiler=NONE? What do they do? Can I get away with not using them?


i'm not sure of anything online, its a naming convention we have at the company I work for. But we probably have dozens of link tables to name..
oh dear, missed that multiselect word! Also i got a bit confused because i usually expect link tables to be named with XhasY, eg filterhasuser .

BTW thats a very polite way of pointing out i've been spouting complete nonesense
Hi greg

No, i used | just to suggest separate the exclusive values in the list box. When it comes to storing this in my suggested table, the status would only hold one value.

Hmm, but if you wanted to select multiple statuses in your list box, rather than just could use a bitwise operator? Like say if you selected OPEN and IN PROGRESS and they were represented by 1 and 2 respectively you could do a bitwise or (using | !) and store that in the column. And when reading it back you can use bitwise and to check what status option need to be selected. I refreshed my bitwise stuff here with good old java tutorial

Of course this assumes you only have a finite small set of status values. Otherwise you'll need a separate table (call it filterhasstatus). Hope this isn't complete nonesense...i'm very tired
no, but i can point you to the globalisation guides for oracle 9i which has all the info you need!

You'll need to create an oracle account first though (free as far as I know)

I did this some time ago, and I don't recall it being too difficult, a case of creating a unicode database and having various NLS_LANGxxx parameters (both database initialisation parameter and os environment variables) set up correctly...

[ December 18, 2004: Message edited by: Dilshad Marikar ]

[ December 18, 2004: Message edited by: Dilshad Marikar ]
[ December 18, 2004: Message edited by: Dilshad Marikar ]
and if you have a query like

select * from filter
where user_id = ?{user_id}

its probably a good idea to add an index to the user_id column to avoid scanning the whole table