Well, it seems solved  :)

In 'Main.java', method 'public static void main(String arg[])',
before the 'try{ ... }' sentence we should write the following:

System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url","localhost:1099");

I think there are more ways to do the same, but it works!
Now i wonder:
is the 'Main.java' a wrong file? or perhaps,
did i forget any deployment file?

__________________________________________
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 965040000 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias
W a n a d o o E s p a n a - http://www.wanadoo.es
__________________________________________



[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]

24/04/01 12:27
Please respond to jboss-user

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )




Chris wrote:

>>This looks like an error in that you have not defined the jndi settings - do
>>you have a jndi.properties file?

>>It should be on your classpath of the client and look something like this;


Hi Chris! : that's not the problem. My 'jdni.properties' file is Ok!

A pair of clues, in my 'ejb-jar.xml' file:

* I have had problems with the tag:

       <trans-attribute>NotRequired</trans-attribute>


  is not recognized by the parser (it fails when i deploy the application):

  i have changed by

       <trans-attribute>Required</trans-attribute>


 
 
* ...Moreover, can not label 'DurableTopicBean' the tag <ejb-name>...

 in section '<assembly-descriptor>'. The only way to deploy my bean

 is labeling as tag <ejb-name> in the 'message-driver' section.


More clues:

To run my 'Main.class' file i do the following:


java  -classpath  jboss-client.jar:jbs.jar:jbosssx-client.jar  Main


Thanks


__________________________________________
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 965040000 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias
W a n a d o o E s p a n a - http://www.wanadoo.es
__________________________________________



"Kimpton,C (Chris)" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

24/04/01 10:23
Please respond to jboss-user

       
       To:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>

       cc:        

       Subject:        RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )




Hi,

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

> "javax.naming.NoInitialContextException: Need to specify class name in
enviroment
> or system property, or as an applet parameter, or in an application
resource file:
> java.naming.factory.initial



############

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming

#############

HTH,
Chris

================================================================================================
This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery.



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user




Reply via email to