Christophe Grosjean

Ranch Hand
+ Follow
since Jan 22, 2002
Merit badge: grant badges
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 Christophe Grosjean


Is it possible to get the backing bean of a component from that component instance ?
And how ?

Thanks for your answer(s)

16 years ago

You can also look at

You can exploded you EAR file and any other containes artifacts.
16 years ago
Well, in fact, it 's not the problem. I've tried with an empty function and got the same problem.
16 years ago

I also have this problem. Js files are downloaded but Neko parsing failed because of not found function. But this function is well localed in the JS file.

16 years ago
Thank you.
If someone who has the same assignment version (2.1.1) can confirm my understanding of the requirements...
I have a question about requirements. I saw several times in this forum the following requirement for the database : the public methods of the database interface must be called by the client! Does it means that the database interface must be made Remote ?
Well, in fact, in my instructions, I see that the GUI client must connect to the database. But that's all..
Does it mean that I can use a remote Server object on which I can implement a Facade pattern (like the session facade EJB pattern), i.e. make a unique method on the server to which I pass an action to perform ?
Thx for any answer,
Thanks for your answers
Well in some particular cases, it is useful to specify order :
Let's assume that an external jar is provided with an implementation of xerces embedded ( version 1.3 for instance ) but I want to use the version 2.5. Without specifying classpath order, I have no way to force JBoss to use the second one : it will depend on JBoss way of ordering jar deployment!
(yes, I could also remove the embedded version from the external jar...).
Concerning the build directory, let's assume that my IDE build my classes into c:\myproject\classes. Actually, I have a Ant script that copy my changed classes from c:\myproject\classes to the jboss\deploy. I'd like JBoss to automatically use them from c:\myproject\classes. How is it possible ?
18 years ago
I am using JBoss 3.0.4. I have the following questions about jars and classpath.
* the "server/default/lib" directory should contains Mbeans JAR that are automatically deployed at start time. Is it correct?
* Where can I put the external JAR files that I use (castor, JDBC driver and so on) ? I read that I can put those in the lib/ext directory but it does'nt seem to work?
* Where can I specify the classpath order between the JAR file ? Is is in the bin/run.bat ? Or in an XML file like the jboss-service.xml or user-service.xml ?
* Can I add a build directory in the classpath directly without building my classes in a JAR file ?
Thank you for any help (I'm a bit lost :-)
18 years ago
Well, in fact it is 2.
The '[]' indicates the mode is facultative.
Hi Emil,
In fact, if you read the characters method javadoc :

This means that an element data is not sure to be read in one time. You need to stack the characters until the complete value is read (for instance, you know it when the endElement method is called for the current element).
No. In fact, what I'm suggesting is to avoid using Transformer and XSL.
Perhaps you can do the transformation by yourself by :
1) parse the XML input file with a SAX parser
2) sets to the SAX parser an XMLFilter as ContentHandler
3) sets an XMLWriter as the parent for the XMLFilter
4) The XMLFilter set in (2) must be a subclass of XMLFitlerImpl in which the event methods have been overriden (do specific job that was in your XSL, for instance in the startElement()).
But :
* this works if your output format is XML
* if not (HTML, text...) do not use XMLFilter and XMLWriter, but simply create an implementation of ContentHandler directly writing the output data in a File.
Questions :
* Did you try your transformation with a smaller version of your document ? Was it working ?
* Is your transformation complex ? An example ?
I may be wrong but :
72M is quite huge... The transformation requires the building of a DOM-like structure of the XML (in Xalan, I think that they have a "light" implementation of DOM), so it takes memory !
If your XSL is simple, perhaps a solution is to parse your XML with SAX and to output the content in your text file (doing the XSL job in the java code instead).
Does anyone already use de XIclude feature ?
I try it with Xerces and it's working.
Is there a mechanism like the EntityResolver in order to resolve the href attribute value ? In fact, the referred XML files are in a JAR file and I'd like to refer to them like :
<xi:xinclude href="com.mypackage.file.xml"/>
instead opf <xi:xi:xinclude href="c://com//mypacakge//file.xml"/>
Perhaps extending org.apache.xerces.parsers.XIncludeParserConfiguration is a solution but I found no documentation on how to do it.
Any idea ?
Hi all,
I have the following problem : some code is run in the context of an SessionBean or a Message-Driven Bean.
In the first case, the code assume that I am in bean-managed transaction, so i mark the transaction bounds manually. In the second one, the transaction is container managed.
I have a portion of code that starts a new UserTransaction and do other things... I'd like to re-use this code in the context of the MDB but I'd like to modify it in order to decide or not to start a new UserTransaction (as I should not in case of MDB)...
How can I now that a UserTransaction is currently running ?
The only way I found until now is to do like :
UserTransaction tran = ... ;
boolean transactionAlreadyRunning = false;
try {
} catch (NotSupportedException) {
transactionAlreadyRunning = true;
Any other idea ?