Hello
I am working with Netbeans and the JADE platform for the creation of agents and I have a database also
So I want to know how I can send an object that contains ID "Integer" and this object is the result of a query that results in 0.1 or several ID
That's a part from my code:
Code:Object[] obj={"Id1 1","Id 2","Id 3","Id 4","Id 5","Id 6"} ;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
cnx = DriverManager.getConnection("jdbc:odbc:Produits_link");
St = cnx.createStatement();
ResultSet Rs;
i=0;
Rs=St.executeQuery("Select * From Liste_produits WHERE (Nom_produit=msg");
while (Rs.next()){
i=i+1;
Id = Rs.getInt("Id");
// obj=Id;
try {
// Le contenu de réponse est l'objet <obj>
reply.setContentObject(obj);
} catch (IOException e) {
e.printStackTrace();
}

