Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jms thread: Subscriber side definition (j2ee sdk 1.3 - jms server)


Message #1 by "Ariel" <ariel_ad@y...> on Sun, 2 Sep 2001 09:19:57
actauuly the values will only change but the properties are the same as
they are defined by JMS specifications
for sun u can use the context factory
com.sun.jndi.fscontext.RefFSContextFactory
you can refer the vendor docs for the values
Piyush

-----Original Message-----
From: Ariel [mailto:ariel_ad@y...]
Sent: Monday, September 03, 2001 7:54 PM
To: Pro_Java_Message_Service
Subject: [pro_jms] RE: Subscriber side definition (j2ee sdk 1.3 - jms
server)


Hi,
Thank you for your help.
Your simple is for Fiorano vendor.
What are the properties value for sun vendor?

Thanks,
Ariel



> Hi Ariel,
> Basically it is the same as connecting through the publisher
> application.You have to create a hashtable with the params and then
> create an initial context using those params.An example to this will
be
>
> 	  Properties env = new Properties();
> 	  //use either the vendor specific context factory or the one
> given by sun
>         env.put
>
(Context.INITIAL_CONTEXT_FACTORY,"fiorano.jms.runtime.naming.FioranoInit
> ialContextFactory");
>         env.put (Context.SECURITY_PRINCIPAL, "anonymous");
>         env.put (Context.SECURITY_CREDENTIALS, "anonymous");
>         env.put (Context.PROVIDER_URL,"http://inl0w2230:1856");//host
> port and protocol to connect to the JMS server
>
>         // ... specify the JNDI properties specific to the vendor.the
> format can be diff acording to the vendor.
>
> 	 /create the initial context using
> 	InitialContext jndi =3D new InitialContext(env);
>
> do the lookup using jndi then.I hope this addresses ur problem
> piyush
>
> -----Original Message-----
> From: Ariel [mailto:ariel_ad@y...]
> Sent: Sunday, September 02, 2001 2:50 PM
> To: Pro_Java_Message_Service
> Subject: [pro_jms] Subscriber side definition (j2ee sdk 1.3 - jms
> server)
>
>
> Hi,
> Please help me :)
>
> I run JMS server and the JMS publisher application in one machine, and
> the JMS subscriber application in another machine in the same subnet
(LAN).
>
> What are the definitions in the subscriber application to connect the
> JMS server?
>
> (When the subscriber application run in the same machine as the JMS
> server, I set the system property-'jms.properties' to the
> file 'jms_client.properties'.)
>
> Thanks,
> Ariel

  Return to Index