Gregory Garrison

Ranch Hand
+ Follow
since Oct 05, 2001
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 Gregory Garrison

Can anyone tell me what port JMS listens on as a consumer/provider?
Tim - how do you connect from a remote client to JMS. That is, a client outside the VM within which JMS resides?
Thanks Tim - this was my plan if all else failed. I thought that there might be a solution through JMS.
Need to integrate a C++ application using tcp/ip. How do you configure WL using a JMSMQ or bean to accept messages from a port?
18 years ago
Roland or Kyle, I have a seperate post for this question but since you are on this topic I thought I would ask here as well. Could you please explain your approach in connecting ejb's to a legacy system. We have several tcp/ip connected systems and are replacing the middleware routing with an application server. What is the best approach in connecting to existing tcp/ip oriented applications.
Thanks.
We have several C/C++ socket oriented legacy systems. Can anyone explain what approach would be best to connect J2EE beans to these systems (MDB/JMS, Statefull Session bean w/socket connection, etc). The new system must accept TCP/IP messages, store in database and possibly route messages to another system.
Any feedback would be appreciated.
]
[ March 26, 2002: Message edited by: Gregory Garrison ]
If a remote client nees a JMS Queue connection to an application server it must employ classes such as QueueConnectionFactory, QueueConnection, QueueSession, etc. However, it appears that the JDK 1.3 api does not supply these classes. So, this means that a remote interface must also contain the j2ee.jar which contains these classes. Is this correct? If so, what was Sun thinking by not including these in the jdk for remote client access? Anyone care to explain?
[ March 25, 2002: Message edited by: Gregory Garrison ]
get the following :
SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
I only get this when running from win2000 to Linux. While on the linux box this runs fine exactly as stated below - no change in code between Win2K and Linux.
Here's the code:
import java.sql.*;
public class jdbcTest {

public static void main(String args[]) {
String url="jdbc racle:thin:@192.168.0.22:1521:test1";
Statement stmt;
Connection con;
String createString = "select * from dept";
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
}
try {
con=DriverManager.getConnection(url,"scott","tiger");
stmt=con.createStatement();
ResultSet rs = stmt.executeQuery(createString);
while(rs.next()) System.out.println(rs.getString(1));

stmt.close();
con.close();
}
catch(SQLException e) {
System.err.println("SQLException: " + e.getMessage());
}
}
}
Looked at the error message on OTN and they request that I submit a bug report. The driver class is class111.zip.
Any ideas?
[ March 19, 2002: Message edited by: Gregory Garrison ]
Never mind. I got it. It's so simple it's stupid.
18 years ago
Sean - Need a link that downloads a file from a remote site. Not an applet. Any help in pointing me to the right resources would be really appreciated.
Thanks.
18 years ago
What the situation really is (after much patience) is that it takes a reeaally long time for the ftp or telnet server to respond. Why is this happening. I have two machines and only one does this.
18 years ago
Don't even know where to start. How can I build a download link on a web page. I need to build a link that will download a jar file with a swing interface for potential clients. Just point me in the right direction. Thanks.
18 years ago
Can anyone provide me with an overview of how two threads can share the same data/buffer/char array?
Would really appreciate the help.
Thanks.
Can anyone tell me how to equate a C/C++ struct formed message in java, eg,
C/C++ (excuse my C/C++ lingo)
struct {
char parm1,
char parm2,
int parm3 }

I need to send the equivalent message in Java over a socket connection.
Thanks.