ismail hassani

Greenhorn
+ Follow
since Feb 20, 2006
Merit badge: grant badges
For More
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 ismail hassani

Hi:

I'am trying to implement a validation rule for an XML file,in wich three elements element 1,element2 and element3 are optional,but it's necessary to have at least one of them.

<xs:element name="element1" minOccurs="0" maxOccurs="unbounded">
....
<xs:element name="element2" minOccurs="0" maxOccurs="unbounded">
.....
<xs:element name="element2" minOccurs="0" maxOccurs="unbounded">[/i]

Is it possible to implement this validation rule in XSD ?

Thank you
Ismail.
I have a problem to getting a full response when i made a connection with a socket to a jboss service,because the jboss generates a message1 then after a while generates a message 2,the method readBuffer reads in run mode only the message1 and don't wait for the server to send the message2,but in the debug mode readBuffer reads both message1 and message2.

How can i make my method readBuffer waits for the jboss service to send both message1 and message2 in other words how can i transform the non blocking InputStream is in a blocking one ?


import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;


............

private Socket s;
private InputStream is;
private OutputStream os;


s = new Socket(host, port);

is = s.getInputStream();


//methode to read from the jboss service.
public readBuffer(byte[] buf)
{

try
{

int size = is.read(buf)
}

catch(Exception e)
{..

}



}


Thank you

Ismail

[ November 28, 2008: Message edited by: ismail hassani ]

[ November 28, 2008: Message edited by: ismail hassani ]

[ November 28, 2008: Message edited by: ismail hassani ]
[ November 28, 2008: Message edited by: ismail hassani ]
You can use ant not only to build large projects,but also to generate code for many framworks based on java like struts,spring,ejb 2.0 and others,so using ant will make your devellopement go faster and will make you independant of a special IDE,and that can bes useful if you switch from a project to another.
[ January 14, 2007: Message edited by: ismail hassani ]
17 years ago
Look at this excellent 4 parts XML tutorial from IBM
https://www6.software.ibm.com/developerworks/education/x-cert1421/index.html
I think it's cover the major part of the required knowledge for the certification
I think it's a good idea to start learning patterns with reading the patterns bible The GoF,it' seems by starting a little difficult and dry but you gain a deep understanding of patterns.

I think also it's a good idea to read that book together with another person to discuss frequently.
[ January 07, 2007: Message edited by: ismail hassani ]
Ok Frank,that was done,sorry that were my first posts in javaranch.
[ January 05, 2007: Message edited by: ismail hassani ]
Does anyone knows of a eclipse plugin that supports the Rational unfied process ?,I'am thinking to a plugin that help in all the phases of a project elaboration with RUP(or UP)
Try to download the Jboss-IDE based on eclipse,it's supports XDOCLET.

[ January 05, 2007: Message edited by: ismail ]
[ January 05, 2007: Message edited by: ismail hassani ]
To reply to the question,with JavaBeans you can handle transaction,security and workflow features better as with servlets.
[ January 05, 2007: Message edited by: ismail ]
17 years ago