Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!

shell Johnson

Ranch Hand
+ Follow
since Jul 17, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shell Johnson

Is the code available to download?
16 years ago
I found my answer. I have to start server first before I run the application client. I got different exception this time.(see at the bottom. If you know the answer post here). But it doesn't matter, I switch from QM simulator for java developer to embedded messaging. Then it works. Here are the tips:
1) Be sure to stop server before you change server config. The change won't be saved if you didn't stop it. Restart the server evertime you change server config.
2) Use "server1" as server name in server config, not the name you create.
3) start server.
4) Choosing embedded messaging and be sure to put these two jars in the application client module's run external classpath.
C:\wsad\v5.1\runtimes\base_v5\mqjms\Java\lib\com.ibm.mq.jar
C:\wsad\v5.1\runtimes\base_v5\mqjms\Java\lib\com.ibm.mqjms.jar
5) then run.
The following is the exception I got when I run MQ simulator.
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2012
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:246)
at com.ibm.mq.MQJDManagedConnectionFactoryJ11._createManagedConnection(MQJDManagedConnectionFactoryJ11.java:128)
at com.ibm.mq.MQJDManagedConnectionFactoryJ11.createManagedConnection(MQJDManagedConnectionFactoryJ11.java:146)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:171)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:737)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:671)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:452)
at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:52)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1659)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1129)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:170)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:80)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:145)
at PointToPoint.<init>(PointToPoint.java:31)
at PointToPoint.main(PointToPoint.java:90)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:556)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1736)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1129)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:170)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:80)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:145)
at PointToPoint.<init>(PointToPoint.java:31)
at PointToPoint.main(PointToPoint.java:90)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
16 years ago
I got the following exception. What does this mean? This is my first time to use JMS from application client model. I'm using the MQ simulator in WSAD 5.1.
javax.naming.CommunicationException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "corbaloc:iiop:myhost". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. Root exception is org.omg.CORBA.COMM_FAILURE: WRITE_ERROR_SEND_1 minor code: 49421050 completed: No
at com.ibm.ws.orbimpl.transport.HTTPOutputStream.write(Unknown Source)
at com.ibm.rmi.iiop.IIOPOutputStream.writeTo(IIOPOutputStream.java:283)
at com.ibm.rmi.iiop.Connection.send(Connection.java:1483)
at com.ibm.rmi.iiop.Connection._locate(Connection.java:263)
at com.ibm.rmi.iiop.Connection.locate(Connection.java:242)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:184)
at com.ibm.rmi.corba.Corbaloc.locateUsingINS(Corbaloc.java:305)
at com.ibm.rmi.corba.Corbaloc.resolve(Corbaloc.java:367)
at com.ibm.rmi.corba.ORB.string_to_object(ORB.java:2929)
at com.ibm.ws.naming.util.WsnInitCtxFactory.stringToObject(WsnInitCtxFactory.java:1254)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1105)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:677)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:605)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:480)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:408)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at PointToPoint.<init>(PointToPoint.java:27)
at PointToPoint.main(PointToPoint.java:90)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
16 years ago
Kyle, Thank you. Refactoring is not possible at this moment. We have several servlets toss messages around. HttpURLConnection requires to open a doorway from existing servlet or create another new servlet. JMS needs additional port configuration. None of this are cheap. Basically, you may have better suggestion. We have a customer written implement class (using listner and call back model. e.g async. request and response). We used to put it into our classpath, load it to our JVM and run with our application (one single big WAR with application visibility). Recently, we need to expand its funcation and realize we have security problem. The customer written implement class can use our resources! We need to put it into separate container. The scenarion I describe earlier is to put into EJB container and run it as different application. Do you have any other idea?
16 years ago
If EJB B and servlet are in the same JVM. (Servlet has been promoted to application visibility), then a static simple List class can be used fifo queue between EJB B and servlet. Using HttpURLConnection going through TCP/IP localhost overkills it, don't you think so?
16 years ago
I have a legacy servlet which I have a EJB (A) need to send a message to it to process. It seems that I can write a local EJB (B) acting as proxy of EJB A. Then I define a static queue that EJB B and servlet can send and receive the message. Since EJB B and servlet are in the same JVM, it seems work. Can anyone tell me what I would have missed?
16 years ago
They are not in inatallableApps directory. It is WAS 5.0.1. They are in installedApps directory but not in one single file and they were recognized by Admin console, but not any more.
16 years ago
I have applications that were left in installedApps directory, but not recognized by the admin console. Is there any way I can regenerate ear file from installedApps directory?
16 years ago
I'm new. After I deploymented a sample Helloworld EAR to websphere 5.0, I found from Administrator console that all shipped samples including Helloworld disappeared from console. An application installed earlier on the other server disappeared from console as well. All the samples code, xml files seem intact and in the installed application directory. I use "listModule" command they don't show up. Is there any way I can restore them back without reinstallation?
16 years ago
As your explanation, java will recognize localized "white space" or "word break" to break one single line into several arguments. Is this true? It seems that is it not what the BreakIterator sample shows. I'm on US locale. I always get 7 arguments. Is this true that I always get 7 arguments from all different locale?
16 years ago
If I have command syntax usage like this:

listAllAccount -d <date> -o <owner name> -desc <description>
and need to support internationally. What I will get from main()? a single argument or multiple argument? The BreakIterator sample in API shows that args.length =1. Is this true?
public static void main(String args[]) {
if (args.length == 1) {
String stringToExamine = args[0];
//print each word in order
BreakIterator boundary = BreakIterator.getWordInstance();
boundary.setText(stringToExamine);
printEachForward(boundary, stringToExamine);
//print each sentence in reverse order
boundary = BreakIterator.getSentenceInstance(Locale.US);
boundary.setText(stringToExamine);
printEachBackward(boundary, stringToExamine);
printFirst(boundary, stringToExamine);
printLast(boundary, stringToExamine);
}
}
16 years ago
Are these two the same? or totally different? or one is super set of the other?
16 years ago
Any one know how to do the following sql in Oracle?
select c1 from table1 order by c2 fetch first 1000 rows only
Any one know if there is open souce java version of SMS protocol stack that I can embeded to send the SMPP pdu to SMSc. It is what Kannal offers but in Java version.
16 years ago
Where can I find the free SMSC emulator or SMSc (3.3 and 3.4) to test push function.
16 years ago