Erreur compilation Java - API SUN de CORBA
EN fait dans mon code j'appel des classe de SUN, le package :
com.sun.corba.se.impl.orbutil
[mkdir] Created dir: /u02/bscsproducts/futbdmco/ix_001/FTS/bin
[javac] Compiling 37 source files to /u02/bscsproducts/futbdmco/ix_001/FTS/bin
[javac] /u02/bscsproducts/futbdmco/ix_001/FTS/src/com/cge/mvne/fts/ServiceRoot.java:19: cannot resolve symbol
[javac] symbol : class ORBConstants
[javac] location: package orbutil
[javac] import com.sun.corba.se.impl.orbutil.ORBConstants;
Sachant que j'ai verifié dans $JAVA_HOME/jre/lib/rt.jar, effectivement le JAR ne contient pas ce package car je suis pas sur une machine SUN,
mais comment faire dans ce cas pour avoir Une JVM dans laquelle je peux faire référence à ces classes, , notamment pour compiler ?
Merci
Resultats de java -version
En fait quand je tape java-version sur mon serveur Unix,
j'ai :
java version "1.4.2.20"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.20-080814-16:18)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.20-080814-22:10-IA64N IA64, mixed mode)
Utilisation pour threadPoolManager de l'orb
Bonjour,
en fait j'en ai besoin, pour utiliser un threadPoolManager comme suivant :
Code:
((com.sun.corba.se.impl.orb.ORBImpl) orb).setThreadPoolManager(new ThreadPoolManagerImpl(minSize, maxSize, timeout));
car j'ai une appli qui utilise le niveau corba et qui a des soucis de threading ...
Oui mais dans mon cas la JVM n'est pas celle de SUN
Oui mais selon le resultat de java - version
la JVM n'est pas celle de SUN
Fichier orb.properties que j'ai
Le fichier que j'ai ressemble à ça :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#
# This file contains properties (associations of a name with a value)
# used by ORB, This file is used on a server and on a client side
#
# Properties specified here are passed to the ORB.init()
# These properties are also important for bootstraping of the naming service
# using ORB.resolve_initial_references()
#
#
# These properties should be set when the system is used with the namings
# service orbd included JDK 1.4 or running on AIX with TAO naming service
#
#org.omg.CORBA.ORBInitialPort=2010
#org.omg.CORBA.ORBInitialHost=localhost
# Specifies the initial context of the name service when using another
# naming service as orbd.
# Use following syntax: "org.omg.CORBA.ORBInitRef=NameService=<URL of name service>"
# Here <URL of name service> could be specified with the help of
# "IOR" or "corbaloc" or "corbaname" schemes. The syntax used to specify
# a concrete instance of the name service is vendor-specific.
#
# Note: only INS-compatible name service could be specified here
# (INS - Interopeable Name Service)
#
# Example 1:
# org.omg.CORBA.ORBInitRef=NameService=corbaname::localhost:1050
#
# Example 2 (for TAO naming service running on host toronoto port 1061):
#org.omg.CORBA.ORBInitRef=NameService=corbaloc:iiop:montreal:10051/NameService
org.omg.CORBA.ORBInitRef=NameService=corbaloc:iiop:TENERIFE:41301/NameService
#
# This property used to specify the file where IOR of the naming service is saved.
# Specifying this file is an alternative to use ORB.resolve_initial_references()
# for bootstraping of the naming service.
#
# Usage of file with IOR of the naming service provides a workaround
# when not INS-compatible naming service is used (like tnameserv)
#
#com.slb.sema.ccb.FileWithIOR=myfile.txt |