sam joe

Greenhorn
+ Follow
since Jul 23, 2003
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 joe

Does anybody know how to define args[] and sig[] for the following situation.

If I have

public void upload(String filename, byte[] data);
public int add(int a, int b);

in the mbean,

how should I define args[] and sig[] for them?

Thanks for your help.
Suppose I have a durable subscriber off line and I have a couple of messages publish to it. Now If I want to write another client to only read those messages instead of consume them (so the original durable subscriber still have a chance to get those messages). How should I do this?

Thanks,
Sam.
You are right. After I changed the XSL to



It works. Thanks a lot.
Sorry the graemlins ruined the XML. try to repost the XMLs.

I have an XML and XSL. The XML has a root node called <deployment>, the XSL will pick only <service> node (deep copy) and output. The strange thing is that if <deployment> have attributes 'xmlns' and
'xmlns:java' defined, the XSL doesn't output anything. If I change the the <deployment> node in XML from

to

.

The XSL works perfect. Does anybody know why the namespace affect the XSL transformation? Thanks a million.

You are right. Drop axis into Tomcat, everything just works.

The only explaination is that the standalone axis runtime classpath in jboss and the classpath picked by axis classloader to compile .jws are different.
14 years ago
I tried to install a standalone axis on jboss 4.0. I copied 'axis' folder to jboss 'deploy' folder, rename from 'axis' to 'axis.war'. Create a new file jboss-web.xml and add a context root '/axis'. Now, start the jboss server, I can view happyaxis.jsp. Everything looks fine except when I try to visit EchoHeaders.jws. The axis failed to compile by not finding javax.servlet.http.HttpServletRequest. If I copied $JBOSS_HOME/server/all/lib/javax.servlet.jar to axis.war/WEB-INF/lib. Everything works. But I don't want my web services depend on jboss and that's not the right way to do it. Is there anyway that I can config to let axis know the classpath to that jar in jboss?

<pre>

<soapenv:Envelope>

<soapenv:Body>

<soapenv:Fault>
<faultcode>ns1:Server.compileError</faultcode>

<faultstring>
Error while compiling: D:\server\jboss-4.0.2\server\default\.\deploy\axis.sar\axis.war\WEB-INF\jwsClasses\EchoHeaders.java
</faultstring>

<detail>

<Errors>
Error compiling D:\server\jboss-4.0.2\server\default\.\deploy\axis.sar\axis.war\WEB-INF\jwsClasses\EchoHeaders.java:
Line 0, column 0: could not parse error message: Note: sun.tools.javac.Main has been deprecated.
D:\server\jboss-4.0.2\server\default\.\deploy\axis.sar\axis.war\WEB-INF\jwsClasses\EchoHeaders.java:21: Class javax.servlet.http.HttpServletRequest not found in import.
import javax.servlet.http.HttpServletRequest;
</Errors>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

</pre>

Thanks a lot!
14 years ago
No luck, I still get the same thing. Here is my log4j.properties, is there something wrong with those parameters?
=========================================
### direct messages to file hibernate.log ###
#log4j.appender.file=org.apache.log4j.FileAppender
#log4j.appender.file.File=hibernate.log
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

### set log levels - for more verbose logging change 'info' to 'debug' ###

log4j.rootLogger=warn, stdout

#log4j.logger.net.sf.hibernate=info
log4j.logger.net.sf.hibernate=debug

### log just the SQL
#log4j.logger.net.sf.hibernate.SQL=debug

### log JDBC bind parameters ###
#log4j.logger.net.sf.hibernate.type=info
log4j.logger.net.sf.hibernate.type=debug

### log schema export/update ###
log4j.logger.net.sf.hibernate.tool.hbm2ddl=debug

### log cache activity ###
#log4j.logger.net.sf.hibernate.cache=debug

### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
#log4j.logger.net.sf.hibernate.connection.DriverManagerConnectionProvider=trace
[ January 11, 2005: Message edited by: sam joe ]
I know I can change property

hibernate.show_sql true

to show part of the SQL as

update SEQUENCE set I_SEQ=?, C_UPDATE_UID=?, T_STMP_UPD=? where C_TABLENAME=? and C_COLNAME=?

But is there anyway to show the real value instead of question mark?

Thanks in advance.
Hi, guys,

How can I design the XSLT to make the output value to be another xml's attribute?

XML: <url>/graphics/1.tiff</url>

XSLT: <fo:external-graphic src="url(<xsl:value-of select='url'/> "/>

Expected Output: <fo:external-graphic src="url(/graphics/1.tiff)"/>

Right now, the transformation has error if I define XSLT as above.

Anybody has any idea?

Thanks in advance.
Hi, guys, I just confused with the following relations,
In component or deployment diagram,
Can a component contain other components?
Can a component contain packages?
Can a package contain components?
How to express alternative course in sequence diagram? Do we need more than one sequence diagrams?
Thanks in advance,
Sam.
I agree partially what you said and what stated in https://coderanch.com/t/150936/java-Architect-SCEA/certification/IMPORTANT-Position-real-assignment-Part .
What I don't agree is:
The forum should allow people to share the understanding of business rules. No matter how great a software architect is, if he can only model based on his 'wrong/partially wrong' understanding of the business rules, he has no way to prove himself 'a great architect' at all. I guess less than 1% here really have experience with airlines. Assume one great architect submits the assignment with great design but based on wrong business rules because of lacking experience with airline system, Will Sun feel happy to fail him? In reality, an architect can count on business analyst to understand business rules, but in this assignment, it is assumed you are expert for airline systems, but we are not. Sun is testing our ability as an architect not our literature ability. I am not asking questions regarding how we should design the system, because I know that's my job and that's how Sun mark the scores.
Based on the travel glossary on the internet,
A flight can be a directing flight or connecting flight,
Connecting Flight - Air transportation arrangement that requires a passenger to change planes before reaching their final destination.
Direct Flight - A flight that does not require a passenger to change planes although there may be intermediate stops. Also known as a through flight.
A segment is to describe the unit of flight between take-off and landing. Sometimes used interchangeably with the term leg.
Obviously,
the flight should contains 1..n of segments, I cannot understand why it's a 1 to 1 relationship in the model ?
I bought
[1] Sun Certified Enterprise Architect for J2EE Study Guide (Exam 310-051)
by Paul Allen, Joseph J. Bambara
and
[2] Sun Certified Enterprise Architect for J2EE Technology Study Guide
by Mark Cade, Simon Roberts,
[3]Enterprise JavaBeans (3rd Edition)
by Richard Monson-Haefel

[1] is too detail for every topic. Those questions trap you into unnecessary detail, which is impossible to appear in real exam.
[2] is very good, but not enough for exam, especially EJB part. The questions are very similar to real exam.
[3] Read Transaction & Life Cycle related chapters carefully. Other chapters are not necessary for part I, but is useful for part II.