permaculture playing cards*
The moose likes BEA/Weblogic and the fly likes Using JMS with Weblogic ..please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Using JMS with Weblogic ..please help" Watch "Using JMS with Weblogic ..please help" New topic
Author

Using JMS with Weblogic ..please help

sunilkumar ssuparasmul
Ranch Hand

Joined: Dec 13, 2000
Posts: 142
We're currently thinking about using Javascript from within a HTML frame to refresh itself
The scenario is something like this ,
The DB is updated some process, whenever the DB updates a particular table a message is
published to a JMS. What we wanted to do is some way to notify the HTMl/JSp that a DB is updated
and refresh the particular page provided if it open in browser by some client.
a) Is this a common implementation or is there another way to do this?
b) Can we use the Weblogic JMS implementation to accomplish this or do we need to consider a comercial implementation of JMS, like JMQ?
c) If we decided to do use applets, could we 'push' events out to the browser?
I am using weblogic JMS
If you can share your ideas if possible source code it would be very great of you.


"Winners don't do different things<br /> They do things differently"
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
>> a) Is this a common implementation or is there another way to do this?
The common way to manage this is to set a refresh period on the browser. Pushing out updates to a thin client is more trouble than it is usually worth.
>> b) Can we use the Weblogic JMS implementation to accomplish this or do we need to consider a comercial implementation of JMS, like JMQ?
JMS will not help with your problem if you are just using plain HTML + Javascript.
>> c) If we decided to do use applets, could we 'push' events out to the browser?
JMS would useful in this case. However you will not be "pushing" messages. The Applet will have register as a listener on the JMS Destination.
sunilkumar ssuparasmul
Ranch Hand

Joined: Dec 13, 2000
Posts: 142
Thnaks Chris For the reply ,
RIght now ia m concentration on the third point.
Do you have any idea how to establish that
if you have any code to do teh sam e it wold be of great help to me .
Right now if i connect to JMS using applet i am getting a exception like this
in NEtsacpe : -
java.lang.NullPointerException
at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
at javax.naming.spi.NamingManager.getInitialContext(Compiled Code)
at javax.naming.InitialContext.getDefaultInitCtx(Compiled Code)
at javax.naming.InitialContext.init(Compiled Code)
* at javax.naming.InitialContext.<init>(Compiled Code)
at Applet1.initJMS(Compiled Code)
at Applet1.init(Compiled Code)
at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.r
teh following is teh Exception in IE
com.ms.security.SecurityExceptionEx[Applet1.initJMS]: cannot access file C:\WINNT\Java\lib\jndi.properties
at com/ms/security/permissions/FileIOPermission.check (FileIOPermission.java)
at com/ms/security/PolicyEngine.deepCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkPermission (PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk (StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkRead (StandardSecurityManager.java)
at java/io/FileInputStream.<init> (FileInputStream.java)
at com/sun/naming/internal/VersionHelper11.getJavaHomeLibStream (VersionHelper11.java:136)
at com/sun/naming/internal/ResourceManager.getApplicationResources (ResourceManager.java:451)
at com/sun/naming/internal/ResourceManager.getInitialEnvironment (ResourceManager.java:152)
at javax/naming/InitialContext.init (InitialContext.java:214)
at javax/naming/InitialContext.<init> (InitialContext.java:190)
at Applet1.initJMS (Applet1.java:114)
at Applet1.init (Applet1.java:44)
at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
 
GeeCON Prague 2014
 
subject: Using JMS with Weblogic ..please help