Listener for Message gateway
Hi,
I am trying to get the Message gateway for MQ series setup in Windows XP. I have followed the documentation but just cant seem to get the right setup in my listener.ora, tnsnames.ora and sqlnet.ora.
If anyone has this working and is willing to share their config with me it would be much appreciated.
Thanks
David
A listener for an image, as in ActionListener. So basically you're saying there is no way to have something within a cell have an ActionListener - it would have to be cell itself that listens?
thanks
Similar Messages
-
Listening for messages for a certain duration
I have a situation where my JMS client should listen for messages from
Queue for a certain amount of time. Is this possible?
Thanks,
Sanjay
Why not create a timer and close the JMS subscriber (and maybe even the
session and the connection) after the time elapses?
--dejan
Sanjay Ungarala wrote:
>Gregory,
>
>Thanks for your reply.
>
>I was looking for Async message listener. I want my message listener to stop
>listening to queue after certain duration. Is this possible?
>
>Thanks,
>Sanjay
>
>Gregory Brail wrote:
>
>
>
>>I guess no one has answered yet, but what exactly do you mean? Obviously,
>>when you receive a message synchronously the various "receive" calls give
>>the option to specify how long you want to wait for a message to become
>>available. But I imagine you want more than that...
>>
>> greg
>>
>>"Sanjay Ungarala" <[email protected]> wrote in message
>>news:[email protected]..
>>
>>
>>>I have a situation where my JMS client should listen for messages from
>>>Queue for a certain amount of time. Is this possible?
>>>
>>>Thanks,
>>>Sanjay
>>>
>>>
>>>
>>>
>
>
>
-
How to stop and start MDBs to listen for JMS messages
Hello! This might be more of an architecture question rather than a technical questing, but I post it here, in the lack of a better place...
For several years I have been using Webster and Webster MQ to send messages back and forth to clients. The architecture for the middleware platform has been designed around the functionality of ListenerPorts. Listenerports is a Webster functionality that let you "stop" and start to listen to JMS messages for a given MDB either by admin console, or by JMX.
The arhitecture we used was something like this :
1.Client sends a persistent message to a queue. (order)
2. An MDB pics up the order message, calls a SessionBean that "fronts" the IIOP back end system.
This is quite "out of the box" architecture, but we used the Listenerports to solve a stability problem for our back end system.
The backEnd system was quite unstable, so the EJB threw an exception (typically because of timeout or connection refused) back to the MDB.
The Listenerport was "defined" to handle 3 errors before stopping, so the MDB resent the message twice before the listenerport automatically stopped. The nice thing about this feature was that the client could continue to send orders, and was not bothered when the back end system was down.
When the backEnd system was up and running, we could start the listenerport and it was all back to normal state. We even had a start script that checked the state of the listenerport every 30 minute, and started it automatically if it was stopped, making the admin task of starting the MDB unnecessary..
Now.. Why am I telling this story..
I would like to know how this could be done using "clean" J2EE technologies..That is..Not using any technology that is not portable..
I`m playing with glassfish at home, and it struck me that there is nothing in the J2EE spec that defines the functionality described above ? Am i missing something ?
I Do not want to stop My application because the back end system is down? That is the only way (i know of) that i can "stop" to listen for messages..
I can put all the messages on an error queue when the backbend system is down, but that would lead to more code just to handle the error messages. Maybe the easiest way to solve this is to "move" (programmatically) all messages from the error queue over to the "standard" queue every XX minute, but somehow that sounds "wrong"
Can anyone give me some advice to how this problem situation should be solved ? I`m interested in the solution both from an architectural perspective and from a more technical perspective..
Best regards
Hans-Jacob MelbyBreakpoints, whether normal or conditional, are just meant for debugging of your code. I had the sense from your question that the pausing you want to do is a part of normal operation of your code. I would NOT recommend using a breakpoint for that situation. It would bring up the block diagram showing the breakpoint when it occurs. A user besides the programmer would not know what to do in that case.
Yes, both the inner and outer loops would have shift registers.
Putting a case structure with a small while loop inside the "Pausing Case" is doable. It just depends on what you are doing or waiting for while the program operation is "paused". -
Transaction Support for message broker channel
Hi all,
I have created a JPD and subscribing to an MB channel and listening for messages, suppose the message is delivered to the JPD i.e onMessage is invoked successfully, but at the next node there is an exception thrown, so I want to rollback all the stuff done and also pushback the message to the channel, (and if possible get the message back to the JPD by retrying the entire tranaction).
1. Can the message be pushed back to the channel?
2. Will the channel try to send the same message again to the JPD incase we rollback and wait again at onMessage in the same JPD by means of exceptional path (retry count)?
3. Is the message available for consumption for other subscribers incase we are able to pushback the message to the channel?
4. Bottomline - How can I include the MB channel(message delivery) within transactional boundary?
TIA
AbhishekHi kai/All,
Thanks for ur response, but I still have some questions.
1. If the message is not going to be pushed back to the channel, what exactly do we mean by "retry"(is it that I have to resubscribe(and wait at onMessage call in my subscriber jpd) to the channel, and wait for the same message to be pusblished by the publisher JPD)?
Also my requirement is - I am having number of subscriber(JPD instances say workflow JPDs) to the same channel and using filters to deliver the message to the appropriate workflow JPD instance, So, One and only one instance can listen for a particular message, so incase there is an exception in a particular workflow JPD, no other instance can cover for it beacuse of a particualr filter value for the message subscription. How can I overcome this shortcoming?
TIA
Abhishek -
RDBMS version 9.2.0.7. The documentation for Messaging Gateway states "After a propagation subscriber is created, the gateway creates a subscription on the propagation source if the source is a topic (publish-subscribe). The gateway moves all messages that are published to the topic after the subscriber is created. If the propagation source is a point-to-point queue, the gateway moves all messages in the queue to the destination." However, when I create a point-to-point queue (single-consumer) I cannot get the messages to propagate. I am able to create a publish-subscribe queue, create a subscriber/schedule and propagate the message that way. But I need to set this up as a point to point.
btw, it was working - i was not checking right things. but there is still a bug:
in SYS.MGW_SUBSCRIBERS view columns LAST_ERROR_DATE and LAST_ERROR_TIME are populated without any apparent reason: messages are moving between queues OK. -
Messaging Gateways (MQ for example)
Hi there,
Is it possible to use Enterprise Messaging Gateways on standard edition Oracle.
I would like to give my clients the option of what version they wish to use but need to connect to MQ Series.
If the Oracle Product does not allow this, are there any other 'Gateway' providors that do develop such a bridge for the Standard edition.
Many ThanksWrong place to ask this.
This forum is for the Sun MQ, not the IBM MQ. I would suggest, either going to the IBM site for this, or to the http://forum.java.sun.com/forum.jspa?forumID=29 on the JMS specifications.
TE -
Messaging Gateway agent not starting
I have configured Messaging gateway for connecting Oracle AQ to Websphere MQ. Oracle version is Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production on Linux. I was able to execute all the steps as documented in user's guide without any issues. However now when I try to start the Messaging gateway agent, it gives following error ORA-28575: unable to open RPC connection to external procedure agent.
I have tried changing listener.ora without any luck. Is there any compatibility issue between 64-bit linux and MGW? Enclosed below are the entries from my listener.ora
# Define "where" to listen
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = AVAQD))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS = (PROTOCOL = TCP)(Host = adaq03.oneabbott.com)(Port = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
# Pre-Defined Services
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SDU = 1460)
(SID_NAME = AVAQD)
(GLOBAL_DBNAME = AVAQD)
(SERVICE_NAME = AVAQD.world)
(ORACLE_HOME = /ofa/product/10.2.0/DB)
(SID_DESC =
(SID_NAME = mgwextproc)
(ENVS = EXTPROC_DLLS=/oracle_home/lib32/libmgwagent.so, LD_LIBRARY_PATH=/oracle_home/jdk/jre/lib/i386:/oracle_home/jdk/jre/lib/i386/server:/oracle_home/lib32)
(ORACLE_HOME = /ofa/product/10.2.0/DB)
(PROGRAM = /ofa/product/10.2.0/DB/bin/extproc32)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /ofa/product/10.2.0/DB)
# (ENVS=EXTPROC_DLLS=/ofa/product/10.2.0/DB/lib32/av_extproc_LINUX.so)
(PROGRAM = extproc)
Thanks in advance
KiranHi,
I got this working finally. All of the issues were mainly related to properly setting environment variable LD_LIBRARY_PATH. Oracle Metalink helped in solving those issues so I recommend searching there first if you are getting stuck.
Regards
Kiran -
How to get Messaging Gateway working with MQ Serieson 9.2 on NT
I wonder if you can help me a little more to get a pilot installation running on NT.
I'm trying to get the Message Gateway set up from a 9i Rel2 instance on Windows NT 4.0 SP6a talking to a remote MQ Series Q. The docs are confusing,as they don't seem to be based on 9i Rel 2.
This is my current config:
tnsnames.ora:
MGW_AGENT =(DESCRIPTION=(ADDRESS_LIST=
(ADDRESS= (PROTOCOL=IPC)(KEY=EXTPROC_KEY)))
(CONNECT_DATA = (SID=mgwextproc) (PRESENTATION=RO)))
extproc_connection_data = (DESCRIPTION =(ADDRESS = (PROTOCOL = IPC)(KEY = extproc_key))
(CONNECT_DATA = (SID = extproc)))
listener.ora
listener =( address_list =
(address = (protocol = tcp)(host = swr851)(port = 1521))
(address = (protocol = ipc)(key = extproc_key)))
sid_list_listener = (sid_list =
(sid_desc = (global_dbname = raj1)(oracle_home = d:\oracle\902)(sid_name = raj1))
(sid_desc = (program = extproc)(sid_name = extproc)))
mgw_ora
log_directory=d:\oracle\902\mgw\log
log_level = 2
set LD_LIBRARY_PATH=d:\oracle\902\jdk\jre\lib;d:\oracle\902\rdbms\lib;d:\oracle\902\lib;c:\program files\ibm\mqseries\java\lib
set MGW_PRE_PATH=D:\oracle\902\jdk\jre\bin\classic
set CLASSPATH=D:\oracle\902\jdbc\lib\classes12.zip;d:\oracle\902\jdk\jre\lib\i18n.jar;d:\oracle\902\jdk\jre\lib\rt.jar;d:\oracle\902\sqlj\lib\runtime12.zip;d:\oracle\902\jdbc\lib\nls_charset12.zip;d:\oracle\902\sqlj\lib\translator.zip;d:\oracle\902\jdbc\lib\nls_charset12.zip;d:\oracle\902\mgw\classes\mgw.jar;c:\program files\ibm\mqseries\java\lib
set ORACLE_SID=raj1
when I run dbms_mgwadm.startup, I get ORA-32830: result code -3 returned by Messaging Gateway agent as the last_error_msg when I query mgw_gateway. There is no log generated in $ORACLE_HOME\mgw\log. If I rerun dbms_mgwadm.startup, the agent is reachable - what could be wrong ?Hi,
-3...An error occurred creating the MGW log file. Verify that the log directory is writeable. The default location is <ORACLE_HOME>/mgw/log.
In documentations is described the following on the link:
http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96587/qfaqs.htm
What if MGW_GATEWAY view shows LAST_ERROR_MSG of "ORA-32830: result code <value> returned by Messaging Gateway agent?"
The result code may be one of the following:
-1...An error occurred starting the Java Virtual Machine (JVM). Check the MGW log file for an entry that contains one of the following lines.
Can't create Java VM Verify that the Java version you are using is correct. Verify that your operating system version and patch level are sufficient for the JDK version. Verify that you are using a reasonable value for the JVM heap size. The heap size is specified by the max_memory parameter of dbms_mgwadm.alter_agent.
Can't find class oracle.mgw.engine.Agent Verify that the CLASSPATH set in mgw.ora contains mgw.jar. For example:
set CLASSPATH=<ORACLE_HOME>/mgw/classes/mgw.jar
-2...An error occurred reading mgw.ora. Verify that the file is readable.
-3...An error occurred creating the MGW log file. Verify that the log directory is writeable. The default location is <ORACLE_HOME>/mgw/log.
-100...The MGW agent JVM encountered a runtime exception or error on startup.
-101...The MGW agent shut down due to a fatal error. Check the MGW log file.
Zdenek. -
Huge performance differences between a map listener for a key and filter
Hi all,
I wanted to test different kind of map listener available in Coherence 3.3.1 as I would like to use it as an event bus. The result was that I found huge performance differences between them. In my use case, I have data which are time stamped so the full key of the data is the key which identifies its type and the time stamp. Unfortunately, when I had my map listener to the cache, I only know the type id but not the time stamp, thus I cannot add a listener for a key but for a filter which will test the value of the type id. When I launch my test, I got terrible performance results then I tried a listener for a key which gave me much better results but in my case I cannot use it.
Here are my results with a Dual Core of 2.13 GHz
1) Map Listener for a Filter
a) No Index
Create (data always added, the key is composed by the type id and the time stamp)
Cache.put
Test 1: Total 42094 millis, Avg 1052, Total Tries 40, Cache Size 80000
Cache.putAll
Test 2: Total 43860 millis, Avg 1096, Total Tries 40, Cache Size 80000
Update (data added then updated, the key is only composed by the type id)
Cache.put
Test 3: Total 56390 millis, Avg 1409, Total Tries 40, Cache Size 2000
Cache.putAll
Test 4: Total 51734 millis, Avg 1293, Total Tries 40, Cache Size 2000
b) With Index
Cache.put
Test 5: Total 39594 millis, Avg 989, Total Tries 40, Cache Size 80000
Cache.putAll
Test 6: Total 43313 millis, Avg 1082, Total Tries 40, Cache Size 80000
Update
Cache.put
Test 7: Total 55390 millis, Avg 1384, Total Tries 40, Cache Size 2000
Cache.putAll
Test 8: Total 51328 millis, Avg 1283, Total Tries 40, Cache Size 2000
2) Map Listener for a Key
Update
Cache.put
Test 9: Total 3937 millis, Avg 98, Total Tries 40, Cache Size 2000
Cache.putAll
Test 10: Total 1078 millis, Avg 26, Total Tries 40, Cache Size 2000
Please help me to find what is wrong with my code because for now it is unusable.
Best Regards,
Nicolas
Here is my code
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import com.tangosol.io.ExternalizableLite;
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;
import com.tangosol.util.Filter;
import com.tangosol.util.MapEvent;
import com.tangosol.util.MapListener;
import com.tangosol.util.extractor.ReflectionExtractor;
import com.tangosol.util.filter.EqualsFilter;
import com.tangosol.util.filter.MapEventFilter;
public class TestFilter {
* To run a specific test, just launch the program with one parameter which
* is the test index
public static void main(String[] args) {
if (args.length != 1) {
System.out.println("Usage : java TestFilter 1-10|all");
System.exit(1);
final String arg = args[0];
if (arg.endsWith("all")) {
for (int i = 1; i <= 10; i++) {
test(i);
} else {
final int testIndex = Integer.parseInt(args[0]);
if (testIndex < 1 || testIndex > 10) {
System.out.println("Usage : java TestFilter 1-10|all");
System.exit(1);
test(testIndex);
@SuppressWarnings("unchecked")
private static void test(int testIndex) {
final NamedCache cache = CacheFactory.getCache("test-cache");
final int totalObjects = 2000;
final int totalTries = 40;
if (testIndex >= 5 && testIndex <= 8) {
// Add index
cache.addIndex(new ReflectionExtractor("getKey"), false, null);
// Add listeners
for (int i = 0; i < totalObjects; i++) {
final MapListener listener = new SimpleMapListener();
if (testIndex < 9) {
// Listen to data with a given filter
final Filter filter = new EqualsFilter("getKey", i);
cache.addMapListener(listener, new MapEventFilter(filter), false);
} else {
// Listen to data with a given key
cache.addMapListener(listener, new TestObjectSimple(i), false);
// Load data
long time = System.currentTimeMillis();
for (int iTry = 0; iTry < totalTries; iTry++) {
final long currentTime = System.currentTimeMillis();
final Map<Object, Object> buffer = new HashMap<Object, Object>(totalObjects);
for (int i = 0; i < totalObjects; i++) {
final Object obj;
if (testIndex == 1 || testIndex == 2 || testIndex == 5 || testIndex == 6) {
// Create data with key with time stamp
obj = new TestObjectComplete(i, currentTime);
} else {
// Create data with key without time stamp
obj = new TestObjectSimple(i);
if ((testIndex & 1) == 1) {
// Load data directly into the cache
cache.put(obj, obj);
} else {
// Load data into a buffer first
buffer.put(obj, obj);
if (!buffer.isEmpty()) {
cache.putAll(buffer);
time = System.currentTimeMillis() - time;
System.out.println("Test " + testIndex + ": Total " + time + " millis, Avg " + (time / totalTries) + ", Total Tries " + totalTries + ", Cache Size " + cache.size());
cache.destroy();
public static class SimpleMapListener implements MapListener {
public void entryDeleted(MapEvent evt) {}
public void entryInserted(MapEvent evt) {}
public void entryUpdated(MapEvent evt) {}
public static class TestObjectComplete implements ExternalizableLite {
private static final long serialVersionUID = -400722070328560360L;
private int key;
private long time;
public TestObjectComplete() {}
public TestObjectComplete(int key, long time) {
this.key = key;
this.time = time;
public int getKey() {
return key;
public void readExternal(DataInput in) throws IOException {
this.key = in.readInt();
this.time = in.readLong();
public void writeExternal(DataOutput out) throws IOException {
out.writeInt(key);
out.writeLong(time);
public static class TestObjectSimple implements ExternalizableLite {
private static final long serialVersionUID = 6154040491849669837L;
private int key;
public TestObjectSimple() {}
public TestObjectSimple(int key) {
this.key = key;
public int getKey() {
return key;
public void readExternal(DataInput in) throws IOException {
this.key = in.readInt();
public void writeExternal(DataOutput out) throws IOException {
out.writeInt(key);
public int hashCode() {
return key;
public boolean equals(Object o) {
return o instanceof TestObjectSimple && key == ((TestObjectSimple) o).key;
}Here is my coherence config file
<?xml version="1.0"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>test-cache</cache-name>
<scheme-name>default-distributed</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>default-distributed</scheme-name>
<backing-map-scheme>
<class-scheme>
<scheme-ref>default-backing-map</scheme-ref>
</class-scheme>
</backing-map-scheme>
</distributed-scheme>
<class-scheme>
<scheme-name>default-backing-map</scheme-name>
<class-name>com.tangosol.util.SafeHashMap</class-name>
</class-scheme>
</caching-schemes>
</cache-config>Message was edited by:
user620763Hi Robert,
Indeed, only the Filter.evaluate(Object obj)
method is invoked, but the object passed to it is a
MapEvent.<< In fact, I do not need to implement EntryFilter to
get a MapEvent, I could get the same result (in my
last message) by writting
cache.addMapListener(listener, filter,
true)instead of
cache.addMapListener(listener, new
MapEventFilter(filter) filter, true)
I believe, when the MapEventFilter delegates to your filter it always passes a value object to your filter (old or new), meaning a value will be deserialized.
If you instead used your own filter, you could avoid deserializing the value which usually is much larger, and go to only the key object. This would of course only be noticeable if you indeed used a much heavier cached value class.
The hashCode() and equals() does not matter on
the filter class<< I'm not so sure since I noticed that these methods
were implemented in the EqualsFilter class, that they
are called at runtime and that the performance
results are better when you add them
That interests me... In what circumstances did you see them invoked? On the storage node before sending an event, or upon registering a filtered listener?
If the second, then I guess the listeners are stored in a hash-based map of collections keyed by a filter, and indeed that might be relevant as in that case it will cause less passes on the filter for multiple listeners with an equalling filter.
DataOutput.writeInt(int) writes 4 bytes.
ExternalizableHelper.writeInt(DataOutput, int) writes
1-5 bytes (or 1-6?), with numbers with small absolute
values consuming less bytes.Similar differences exist
for the long type as well, but your stamp attribute
probably will be a large number...<< I tried it but in my use case, I got the same
results. I guess that it must be interesting, if I
serialiaze/deserialiaze many more objects.
Also, if Coherence serializes an
ExternalizableLite object, it writes out its
class-name (except if it is a Coherence XmlBean). If
you define your key as an XmlBean, and add your class
into the classname cache configuration in
ExternalizableHelper.xml, then instead of the
classname, only an int will be written. This way you
can spare a large percentage of bandwidth consumed by
transferring your key instance as it has only a small
number of attributes. For the value object, it might
or might not be so relevant, considering that it will
probably contain many more attributes. However, in
case of a lite event, the value is not transferred at
all.<< I tried it too and in my use case, I noticed that
we get objects nearly twice lighter than an
ExternalizableLite object but it's slower to get
them. But it is very intersting to keep in mind, if
we would like to reduce the network traffic.
Yes, these are minor differences at the moment.
As for the performance of XMLBean, it is a hack, but you might try overriding the readExternal/writeExternal method with your own usual ExternalizableLite implementation stuff. That way you get the advantages of the xmlbean classname cache, and avoid its reflection-based operation, at the cost of having to extend XMLBean.
Also, sooner or later the TCMP protocol and the distributed cache storages will also support using PortableObject as a transmission format, which enables using your own classname resolution and allow you to omit the classname from your objects. Unfortunately, I don't know when it will be implemented.
>
But finally, I guess that I found the best solution
for my specific use case which is to use a map
listener for a key which has no time stamp, but since
the time stamp is never null, I had just to check
properly the time stamp in the equals method.
I would still recommend to use a separate key class, use a custom filter which accesses only the key and not the value, and if possible register a lite listener instead of a heavy one. Try it with a much heavier cached value class where the differences are more pronounced.
Best regards,
Robert -
Hi,
system i am using for Oracle SOA is :
Windows 64 Bit
i5 Processor
6 GB RAM
29 GB on C Drive is already free after installation of all SOA related products.
I have installed wlserver_10.3 for SOA 11g Development purpose and followed exact installation sequence and procedure as mention in oracle documentation
i created domain also and every thing look correct but after installation procedure there are "Additional actions required just after every thing installed" :
setting memory limit
starting weblogic server (Admin Server)
starting weblogic managed server
and so on
now Problem is when i execute C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin startWebLogic.cmd
as mention in oracle documentation i am getting following error message : (i have only included last error lines instead of complete console log)
oConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\
sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\syse
xt_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_ma
nifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manif
est_classpath weblogic.Server
Listening for transport dt_socket at address: 8453
Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
Caused by: java.lang.ClassNotFoundException: vXmx512m
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ++Xmx512m. Program will exit.
Now to resolve this what i already tried are :
I change JAVA_HOME and PATH to jdk6 which came with web logic installer
Location is at :
JAVA_HOME : C:\Oracle\Middleware\jdk160_29
PATH : C:\Oracle\Middleware\jdk160_29\bin
The above dose not include any space between path
I ran the startWebLogic.cmd and got same error
After that I also added
CLASSPATH : C:\Oracle\Middleware\jdk160_29\lib\tool.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdk160_29\bin
WL_HOME: C:\Oracle\Middleware\wlserver_10.3
I ran the startWebLogic.cmd and got same error
I also used earlier path which I used with eclipse when I was working on other java development.
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21
PATH : C:\Program Files\Java\jdk1.7.0_21\bin
I ran the startWebLogic.cmd and got same error
Then I also gave PATH: C:\Oracle\Middleware\wlserver_10.3\server\lib (including the existing one using ; )
I ran the startWebLogic.cmd and got same error
Now may be there is a file called setSOADomainEnv.cmd in
< C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\ setSOADomainEnv.cmd>
That include some values for memory set :
set JAVA_OPTIONS=%JAVA_OPTIONS%
set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m
set PORT_MEM_ARGS=-Xms512m –Xmx768m
if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m
now as I change the red highlighted value to 512 value because I have less memory resource and I checked in installation documentation to change the above red highlighted value to 512 original is 1024 which is too high and it was crating problem and showing memory space problem so I change it to 512 and now I am not getting that memory space problem error but may be the above error is related with change value in setSOADomainEnv.cmd file or not
Following are my domain, weblogic and soa home directory path and all these path are exactly what it suppose to be according to Oracle Installation Documentation:
WebLogic :
C:\Oracle\Middleware\wlserver_10.3
C:\Oracle\Middleware\coherence_3.7
C:\Oracle\Middleware\oepe_11.1.1.8.0
SOA Oracle Home Directory :
C:\Oracle\Middleware\Oracle_SOA1
OSB Home Location :
C:\Oracle\Middleware\Oracle_OSB1
Domain name : soa_div_domain
Domain Location : C:\Oracle\Middleware\user_projects\domains
Application Location : C:\Oracle\Middleware\user_projects\applications
Domain Location: C:\Oracle\Middleware\user_projects\domains\soa_div_domain
form here i am trying to start weblogic : C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\startWebLogic.cmd
Please tell me any body want more details.
Thanks.I think you are missing a character '-'
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
"-Xms512m -Xmx512m -XX:MaxPermSize=128m" -
Hello,
I just have a simple question. In my Flex program, I am trying to find a way to listen for an incoming HTTP POST message - something with functionality similar to that of the HttpListener class in C#. I have not been able to find anything at all to help with this though, would anyone know of something like this?
Thanks.My Flex program subscribes to changes that occur in a program on remote server. The change notifications are sent back to my client in the form of an HTTP Post message. The Flex program needs to be able to detect when these Posts are received.
-
Is it possible to have listener for orcale shut won event ?
Hi,
We know that during normal shut down of the oracle database, message is sent to the clients. Is it possible to have listener for that event using JDC ?
Any suggestion is welcome.
TIA,
SudarsonThis is not something that Verizon would handle or be able to change. It would be something that Google would have to change in the Android source code, or the OEMs in their device specific versions. Or you could just look for another app.
-
I have a FLVPlayer with a skin on stage and I want to listen for the player going into full screen mode when the skin's fullscreen button is clicked. And I want to listen for it going back to normal but I think that is easy enough, I just listen for the escape key, I think. How do I do that?
not the browser
im using a stand alone swf player
Date: Mon, 9 Apr 2012 09:05:51 -0600
From: [email protected]
To: [email protected]
Subject: Listen for Full Screen mode
Re: Listen for Full Screen mode
created by kglad in Action Script 3 - View the full discussion
you should not try and control a user's browser window. but, if you insist, you'll need to use javascript.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4322220#4322220
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4322220#4322220. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Action Script 3 by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Problem listening for a customevent question
I'm new to WLP and trying to setup a portlet to listen for a custom event.
I'm using WLP 10.3.2 with two portlets on a page. Portlet 'A' fires a custom event when it is maximized. I verified the event is getting fired. Portlet 'B' is listening for my 'TestEvent' and should display a message if it receives the event. However portlet 'B' never receives the event. Portlet 'B' is a JSP portlet. Below is the code used to fire the event from portlet 'A', and the code from the 'B' portlet .portlet file. Can anyone tell me why portlet 'B' does not receive the event?
thanks
PORTLET A CODE TO FIRE EVENT:
public void fireTestEvent(HttpServletRequest request,
HttpServletResponse response, Event event) {
System.out.println("prepairing to fireTestEvent");
PortletBackingContext context = PortletBackingContext.getPortletBackingContext(request);
context.fireCustomEvent("TestEvent", "test message");
System.out.println("fired TestEvent");
PORTLET B CODE FROM .portlet file
<?xml version="1.0" encoding="UTF-8"?>
<portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
<netuix:portlet backingFile="backing.Listening" definitionLabel="bPortlet" title="Bportlet">
<netuix:handlePortalEvent event="onMinimize" eventLabel="handlePortalEvent1"
fromSelfInstanceOnly="false" onlyIfDisplayed="true" sourceDefinitionLabels="aPortlet">
<netuix:invokeBackingFileMethod method="handlePortalEvent"/>
</netuix:handlePortalEvent>
<netuix:handleCustomEvent event="TestEvent" eventLabel="handleCustomEvent1"
fromSelfInstanceOnly="false" onlyIfDisplayed="true" sourceDefinitionLabels="aPortlet">
<netuix:invokeBackingFileMethod method="handleTestEvent"/>
</netuix:handleCustomEvent>
<netuix:titlebar>
<netuix:maximize/>
<netuix:minimize/>
</netuix:titlebar>
<netuix:content>
<netuix:jspContent contentUri="/portlets/bPortlet.jsp"/>
</netuix:content>
</netuix:portlet>
</portal:root>I figured out the issue. Portlet B only listens for the event if it is visible. The event gets fired when portlet A is maximized, so portlet B is no longer visible.
thanks -
Listening for bubble-clicked event on trayicon
i'm trying to listen to mouse clicks on balloon messages that are displayed when you call TrayIcon#displayMessage.
i added an action listener (TrayIcon#addActionListener), which gets called, but it also gets called when you double-click
on the tray icon itself, so i want to differentiate between clicking on a balloon message and double-clicking on the tray icon.
its basically the same question as in two previous threads, but one of the administrators (DarrylBurke) said i needed to create a new thread.
http://forums.sun.com/thread.jspa?threadID=5284529&tstart=0
http://forums.sun.com/thread.jspa?threadID=5403857&tstart=0
any ideas appreciated.a code sample doesn't help when the functionality of a balloon action listener doesn't exist.
anyhow, it looks like the original jdesktop project had the concept of adding a balloon listener:
http://download.java.net/javadesktop/swinglabs/releases/0.8/docs/api/org/jdesktop/jdic/tray/TrayIcon.html
specifically method TrayIcon#addBalloonActionListener, which lets one listen for interaction with a balloon message.
looks like that functionality was lost/not added to the java.awt version of the system tray class.
Maybe you are looking for
-
X230T camera does not work under windows 8
Hi! Is your camera working under Windows 8? Mine is not. It used to work some time ago, but even then the driver was instable. Now, since a few weeks, it seems not to work at all anymore. Reinstalling the driver does not help. This may ba a hardware
-
I face to 2 problems with my app after reserving app name for published app. 1. IAP I published my WP8 apps ~1 year ago (we didn't have to reserve app name at this time). Recently, I reserved an app name (same with published app) and published app. A
-
When I save a document in Microsoft Word 2010 and then open it, I am unable to read it
When I save a document in Microsoft Word 2010 and then open it, I am unable to read it because it is gibberish with all kinds of symbols and numbers. I understand it has something to do with Adobe Reader. Has anyone else had this problem and how do
-
Outlook clients unable to connect to Exchange / Windows user profile
Exchange 2010 Outlook 2010/2013 I've seen a dozen or so computers in the last few weeks with this problem. The user suddenly cannot connect to the Exchange server in Outlook. (Sorry, I don't have specific error messages for this part.) If I try a rep
-
This has happened repeatedly and I don't understand.