Connections behind classes
Hi! Could You help me resolve the problem with passing on object value from one class to another one. To clearing the situation I'll give You an example:
I' ve got three classes: classOne (with main method), classTwo, classThree
public class classOne {
classOne() {
//makes the GUI using swing
JButton button = new JButton()
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
classTwo cl2 = new classTwo();
cl2.show()
JButton button1 = new JButton()
button1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
classThree cl3 = new classThree();
cl3.show()
class classTwo {
classTwo(){
//another GUI
JButton button1 = new JButton()
button1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
classThree cl3a = new classThree();
cl3a.show()
class classThree {
//another GUI
That's all...
First I open classOne window (all it's swing) and I can open classTwo or classTree window with swing GUI. When I open classTwo, I can open class Three from there. I'd like to know how to send String value from GUI classThree to JTextField in GUI classTwo.
"I'd like to know how to send String value from GUI classThree to JTextField in GUI classTwo."
It really depends upon your overall design structure just how you do this, though the easier or more obvious way would be to have a method in class2, something like;-
public void setUpText(String str){
myTextfd.setText(str);
and in class3;-
class2 c2 = new class2();
c2.setUpText("Hello World");
Similar Messages
-
hi all,
In the jdbcpds.conf file, it is mentioned that we can write our own connection handling class which extends the provided JDBCConnectionHandling class
What i tried after looking at the methods of connection handler is something like this
class myJDBCConnectionHandling extends JDBCConnectionHandling
protected void parseConnectInfo(String s, JDBCConnectDialog jdbcconnectdialog, Plugin plugin)
throws Exception
String dbUrl = null;
dbUrl = "<user>/<pwd>@<remotedatabase>";
super.parseConnectInfo(dbUrl, jdbcconnectdialog, plugin);
Is there anything else that needs to be done
because this is throwing an error
JDBCPDS-62008 : Failed to connect to the datasource null
Invalid arguments in the call
Can anybody correct me
Of course my main purpose of trying this is to have something like a logical name given to the P_JDBCPDS parameter which can be mapped to the actual database url using JNDI lookup.
what i was expecting was, the string when passed to the connection handler, i can add the code to lookup the name in my own connection handler and leave the rest to the provided JDBCConnectionHandling class
Am i going in right direction or not
Or if anybody has any other solution you are welcome to suggest
Any sort of help is greatly appreciated
Thanks in advance
Ramakrishnahi,
One more thing i forgot to mention was that i am not too concerned about this lookup in reports builder
I need when this is running on the server
thanks & regards
ramakrishna -
Can Air application connect behind a proxy server
Can Air application connect behind a proxy server using HTTP
or SOCKS.
thanksI tried it but its not working. I am using XMLSocket
var socket:XMLSocket = new XMLSocket();
socket.connect( server, 5000 );
It returns "no response from server", It works fine if i
directly connected to internet.
My browser is able to connect to internet means all
configurations are fine. -
Public connection context class
Is there any way to force sqlj to generate a public
connection context class ? Right now, it always generates
connection context classes which are only accessible within
the current package, not outside of the package.
Regards,
Francois Staes.Is there any way to force sqlj to generate a public
connection context class ? Right now, it always generates
connection context classes which are only accessible within
the current package, not outside of the package.
Regards,
Francois Staes. -
Rookie Problem:Connection Pool Class not found
Hi All,
I'm new to java (3 days now!) and I was writing some sample JSP code to learn about Connection Pooling using Sun Server 8... My goal here is to hopefully learn how to use Connection pooling so I can develop a DAO class that uses good design patterens. It appears that that my J2EE server is not finding my db providers connection pooling class. If this is my problem where should I add this reference? I was looking at the Admin Console and did not see a way to add it there?
Someone please send me down the right path :)
I think my error is...."Wrong class name or classpath for Datasource Object : {0}
java.lang.ClassNotFoundException: com.ibm.db2.jdbc.DB2ConnectionPoolDataSource" (see below for trace)
Thanks in advance for the help and tips
John
My test JSP source code......
<%/* JMM This page was created on 9/1/2004
The purpose of this page is to test and learn basic JSP Connection Snytax and flow
control */%>
<%/* **********Begin JSP Page Directives********** */%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="javax.sql.*"%>
<%@page import="java.sql.*"%>
<%@page import="javax.naming.*"%>
<%@page import="java.util.Hashtable"%>
<%/* ********** End JSP Page Directive ********** */%>
<%! String pageName = "Johns Test JSP Page";
String jndi_ereporting_nm = "jdbc/F0654TE1";
%>
<html>
<head><title><%=pageName%></title></head>
<body>
<%-- <jsp:useBean id="beanInstanceName" scope="session" class="beanPackage.BeanClassName" /> --%>
<%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
Importing the follwoing Libs<br>
<br>import javax.sql.*;
<br>import java.sql.*;
<br>import javax.naming.*;
<br>import java.util.Hashtable;
<br>
<br>Attempting to connnect to F0654TE1 using JNDI Lookup....
<br>
<%
DataSource ds = null;
Connection con = null;
Context ctx = null;
Hashtable env = null;
long nStartTime, nStopTime, nElapsedTime;
// Set up environment for creating InitialContext object
//humm.. whats stored in here ....what are these used for?
out.println("Context.INITIAL_CONTEXT_FACTORY=" + Context.INITIAL_CONTEXT_FACTORY + "<br>");
out.println("Context.PROVIDER_URL=" + Context.PROVIDER_URL + "<br>");
InitialContext ic = new InitialContext();
ds = (DataSource) ic.lookup(jndi_ereporting_nm);
out.println("open connection....<br>");
con = ds.getConnection();
out.println("connection has been opened!!!....<br>");
con.close();
out.println("connection has been closed!!!....<br>");
%>
<br>
<br>Finished attempting to connnect to F0654TE1 using JNDI....
</body>
</html>
Errror Log file.....
[#|2004-09-02T10:08:42.951-0400|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=11;|RAR5099 : Wrong class name or classpath for Datasource Object : {0}
java.lang.ClassNotFoundException: com.ibm.db2.jdbc.DB2ConnectionPoolDataSource
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at com.sun.gjc.common.DataSourceObjectBuilder.getDataSourceObject(DataSourceObjectBuilder.java:198)
at com.sun.gjc.common.DataSourceObjectBuilder.constructDataSourceObject(DataSourceObjectBuilder.java:65)
at com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:70)
at com.sun.enterprise.resource.LocalTxConnectorAllocator.createResource(LocalTxConnectorAllocator.java:63)
at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:501)
at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:176)
at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:314)
at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:260)
at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:244)
at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:137)
at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:194)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:94)
at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:68)
at org.apache.jsp.jsp.jndi_005fdb_005ftest_jsp._jspService(jndi_005fdb_005ftest_jsp.java:102)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
at java.lang.Thread.run(Thread.java:534)
|#]
[#|2004-09-02T10:08:42.961-0400|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=11;|RAR5038:Unexpected exception while creating resource|#]
[#|2004-09-02T10:08:42.961-0400|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=11;|RAR5117 : Failed to obtain/create connection. Reason : Class name is wrong or classpath is not set for : com.ibm.db2.jdbc.DB2ConnectionPoolDataSource|#]
[#|2004-09-02T10:08:42.961-0400|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=11;|RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : com.ibm.db2.jdbc.DB2ConnectionPoolDataSource]|#]
[#|2004-09-02T10:08:43.131-0400|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=11;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : com.ibm.db2.jdbc.DB2ConnectionPoolDataSource
at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:72)
at org.apache.jsp.jsp.jndi_005fdb_005ftest_jsp._jspService(jndi_005fdb_005ftest_jsp.java:102)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
at java.lang.Thread.run(Thread.java:534)
|#]Sorry this is not the way i usually handle db connectivity, i think you need to set up a name in your server.xml file (this is for tomcat based applicatin servers) which is then referenced in your jsp file. I have had a quick google and found this.
http://manual.evolutionhosting.com/evochunk/ch19s04.html
You menttioned that you wanted to devolp really good design patterns, how big is your project going to be, if it is going to be a large project then you may want to look at
http://www.hibernate.org -
Connecting Driver class to an UntrustedApplet
How to include a policy file to an <applet> tag?
*I want to connect to an Driver Class in an init() method of applet. Instead of using Appletviewer such as
> appletviewer -J-Djava.security.policy=securityfilename appletpgmname.java
--I want to include policy file in an Applet tag of HTML.Hey if you are the lalitha from Kakinada and working for Sun in testing...then mail me at my ibm id..i have your jaket
-
Java Connectivity - No classes appearing in the Java Beans Classes dropdown
Hi,
VERY NEW user to Crystal Reports. I am trying to create a report using a java class as a datasource. I have updated the setting in the CRConfig.xml file, and can get the Java Beans Connectivity screen to appear, but is shows none of my classes in the dropdown. I found a knowlege base entry that indicated this problem was caused by the JavaBeansClassPath value in the CRConfig.xml file being invalid. But I've verified the location and it is pathed directly to the classes.
Not sure what I am missing, but any help is greatly appreciated.
Thanks!Ted,
Thanks for the reply. I checked out each of your suggestions, but haven't had any luck thus far. Here's what I found:
1. We created a simple method in an existing public class to return a ResultSet. The method looks like this:
public ResultSet GetAllMediaTypesRS()
String strFuncName = "ScsXDMDatabase::GetAllMediaTypesRS : ";
ScsDebug coutDebug = new ScsDebug();
String strSqlStmt;
String strMediaType;
ScsStringList sslReturnList = new ScsStringList();
// Create the SQL to get all the Displayable Media Types.
strSqlStmt =
"SELECT DISTINCT mt.Media_Type_Name "
+ "FROM dbo.Media_Type mt "
+ "WHERE mt.Media_Type_Rqst_Display_Ind = 1 "
+ "ORDER BY mt.Media_Type_Name";
coutDebug.println(strFuncName + "SQL Statement: " + strSqlStmt);
// Run the Query
Statement stmt = null;
ResultSet SQLResult = null;
try
stmt = GetConnection().createStatement();
SQLResult = stmt.executeQuery(strSqlStmt);
} //End of Try
catch (SQLException sqle)
if (sqle.getErrorCode() != 0)
coutDebug.println(
"Error in ExecuteQuery: "
+ "Error code - "
+ sqle.getErrorCode());
coutDebug.println("Message - " + sqle.getMessage());
return SQLResult;
The signature, and the method look fine to us, but maybe we are missing something obvious.
2. We do use JDK 1.5 to compile the classes, but my JavaDir setting in the CRConfig.xml file points to jre1.6.0_02. I assume this is OK.
3. We do see java.exe start up when opening the JavaBeans connection.
4. No firewall issues as we are inside our corporate network.
Any other thoughts or ideas? I did see a knowledge base entry that indicated the cause of this particular problem is that the JavaBeansClassPath in CRConfig.xml is incorrect or invalid. I've validated the path takes me right to the classes, so I believe that is OK. Is there some way that we can see the actual path that is searched when the JavaBeans connection is opened?
Thanks for your help.
--john davies -
Connection Object Class Overview
Hello Experts,
I created a class (cl02) and the related characteristics (ct04) to be used for connection objects. I wonder if there is a way to make the class field in the Assignments section pre-filled (or pre-selected) when creating the connection object, so that the user won't have to select this class to enter the characteristics. I used the standard class indicator but I had no luck.
Thanks in advance!Hi Eren,
You can do this kind of default value assignments into screen fields by implementing user exits.
Please have a look at exits EXIT_SAPLES55_001 to EXIT_SAPLES55_011 residing under component XES55.
Regards,
Dilek -
Connection Factory class for Distributed Transaction?
Definition of Managed Datasources goes like this at URL: http://download.oracle.com/docs/cd/B31017_01/web.1013/b28958/datasrc.htm#CHDDADCE
Managed data sources are managed by OC4J. This means that OC4J provides critical system infrastructure such as global transaction management, connection pooling, and error handling.
In the same document, I could also see a section for configuring Connection Pool, that uses 'factory-class' as 'oracle.jdbc.pool.OracleDataSource' as shown below:
<connection-pool name="myConnectionPool">
<connection-factory
factory-class="oracle.jdbc.pool.OracleDataSource"
user="scott"
password="tiger"
This configuration has worked well for my web application where I was using a single instance of Oracle database. In a new application I've to use two separate instance of Oracle databases and there is a need of distributed transaction.
I know, I've to create two separate datasources for the two separate Oracle instances.
My question is: Since now my transaction will be distributed in nature, do I need to use any other factory-class for configuring XA aware Datasources on OC4J? Or whether the same factory-class (oracle.jdbc.pool.OracleDataSource) will work even for distributed transactions?Here is the link for using Oracle RAC with WLS
http://e-docs.bea.com/wls/docs81/jdbc/oracle_rac.html -
Connection between class, WPF-controls and parameters
Hello,
How do I show an instance of a class on my form and how do I connect this instance to my parameters?
I have defined a class VV and added validation to it (I intend to use this class im multiple projects):
public class VV
private Int64 id;
private string code;
private string naam;
public Int64 Id
get { return this.id; }
set { this.id = value; }
public string Code
get { return this.code; }
set
if (String.IsNullOrEmpty(value))
throw new ApplicationException("Code is een verplicht veld");
else
this.code = value;
I have made a form in XAML-code and connected the fields with my class:
<TextBox Name="tbNaam" Width="Auto" Style="{StaticResource errorStyle}">
<TextBox.Text>
<Binding Source="{StaticResource vvData}" Path="Code" >
<Binding.ValidationRules>
<ExceptionValidationRule/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
This works fine.
To save the data in de database I use a stored procedure.
When I declare the parameter.value as:
insertCmd.Parameters.Add("code_ipar", OracleDbType.Varchar2);
insertCmd.Parameters["code_ipar"].Value = tbCode.Text; ====> this is the name of my textbox in XAML
everything wordks fine. But instead of the textbox I want to connect the parameter to the class VV.
(so I can use this in multiple places)
How do I do that??
I tried to create a new instance of the class VV:
VV newVV = new VV();
but when I do that, I can't see this record on the screen.
How do I get this to work?
Thanks in advance.Take the Toshiba BT-Stack away and use the one from XP SP2 or Vista, inbuild. I recently bought a V270 mouse and couldn´t install the Logitech program that I needed and I had troubles with the Nokia-PC-Suite as well. Now I switched to the inbuild BT-Stack from Vista (XP has as well) and all problems are gone!
-
Java database connection method class for review
Can you guys tell me any specific coding standard has to be followed here(i guess i need not hard code the pwd's)
import java.sql.*;
public class DBLocator {
* Obtains and returns a connection to database
* @return database connection
public static Connection getConnection() {
Connection con = null;
try {
Class.forName("com.informix.jdbc.IfxDriver");
String url = "jdbc:informix-sqli://151.140.160.201:1527/ssde_db:INFORMIXSERVER=ssde_infx";
con = DriverManager.getConnection(url,"haha06","123123");
} catch (ClassNotFoundException e) {
System.out.println("Driver not found");
} catch (SQLException e) {
System.out.println("SQL exception");
e.printStackTrace();
return con; // returns connection
}Can you guys tell me any specific coding standard has
to be followed here(i guess i need not hard code the
pwd's)More than just the passwords. Why are the driver class and URL hard-coded?
I wouldn't use this class. It's not very useful as written. It's a poor abstraction for one. There's lots of other useful things that you could include, like methods for closing and rolling back a connection, closing a statement and result set. You don't log any exceptions or messages. You preclude the use of a connection pool managed by an Java EE app server.
% -
Question about a client moving around and don't get connect behind the secound IPhone
hi all
i have a ISE setup, and a lot of 3560 (12.2.5 SE8) and 2960S switches
but my challenge is that some of the client are moving from one seat to another seat, and connect there pc to the local docking station (behind another IPhone)
it seams to me, that the phone isn't release the "unit" behind, anyone have a idé
my port cfg is
the PC will not' work and the second spot, but when the move back to the first place ,, they get connection again
i have now authentication timer reauthenticate 60 , but it generate a lot of trafic (3000 Phone and 2800 pc's)
description *** Host ***
switchport access vlan 10
switchport mode access
switchport voice vlan 15
ip access-group ACL-ALLOW in
no logging event link-status
srr-queue bandwidth share 1 70 25 5
srr-queue bandwidth shape 3 0 0 0
priority-queue out
authentication event fail action next-method
authentication event server dead action reinitialize vlan 20
authentication event server dead action authorize voice
authentication event no-response action authorize vlan 20
authentication host-mode multi-auth
authentication open
authentication order mab dot1x
authentication priority dot1x mab
authentication port-control auto
authentication periodic
authentication timer restart 30
authentication timer reauthenticate 60
authentication violation restrict
mab
mls qos trust cos
auto qos trust
dot1x pae authenticator
dot1x timeout server-timeout 5
spanning-tree portfast
service-policy input SP-UNTRUSTEDHaving participated in these boards for quite some time, I have to say that the iPhone 5 and it's newer cousins offer a Great product, from a creative and practical point of view. My iPhone 5, including the various releases of iOS software has exhibited high quality and reliability. Have I ever had a problem, issue or frustrating operational question ...Yes. Have these problems, issues and questions been mitigated ...Yes. I would say your list needs to add a little more emphases to the opportunity to exchange a non-working device rather than just return it. People would otherwise be missing out on a very satisfying ownership experience.
-
Slow Internet Connection behind RV016
We have a RV016 that is using two broadband connectionss: 768k SDSL and Comcast Broadband (16+M). Speed test behind the router come between 1-5M Downloand... Speed tests connected directly to the Comcast modem are10-20M (varies based on geographical location of speed test server)
I just upgraded to the latest firmware hoping that would help. We have about 20 computers on our network. The connection times above are the same during the day and in the early morning when no one is here.
What else should I check? Any ideas why the Router would throttle the connection?
ThanksFinally got a chance to call tech support... only other thing the support rep suggested is to reset to factory defaults and manually reset everything. I did that and it did not make any difference. I then unplugged everything from the router except for the one computer I was testing from and it worked fine... after replacing another switch, finally determined it was a cable running from the router to another switch. Replaced the cable and it works fine now. One cable was effecting network speed for every computer on the network. (Even computers that were plugged directly into the router)
-
Avetana Bluetooth - is there a connected devices class?
Hi Guys,
I am using Avetana Bluetooth and I need to find out what devices are currently connected to my Server.
Does anybody know if Avetana provides a class that provides you with the details of connected mobile devices?
If it does then what is it called please? I have had a look through the Avetana documentation but can't see what I am looking for.
Thanks in advance.
mdayBluetooth would be too slow for video. The iPad camera adapter should be able to transfer video via the iPhone's USB cable. Depending on your iPad, get the 30-pin or Lightning version.
<http://store.apple.com/us/product/MC531ZM/A/apple-ipad-camera-connection-kit>
<http://store.apple.com/us/product/MD821ZM/A/lightning-to-usb-camera-adapter> -
Firefox Sync can't connect behind Zscaler proxy
Last week the enterprise I work in changed their proxy to a Zscaler one. With the previous proxy I could use Firefox Sync without any trouble but since that it seems I can't use Sync anymore.
The error that shows says "Sync encountered an error while syncing: Incorrect account name or password. Sync will automatically retry this action" but I'm 100% sure that both account name and password are right because I haven't changed them and they work in my computer at home.
In my Firefox Preferences > Advanced > Network > Connection > Settings I'm using "Use system proxy settings" as I always did (tried with our PAC file in "Automatic proxy configuration URL" but haven't had any luck too), have all the Zscaler certificates installed and can browser to any allowed site.
The result of the last about:sync-log file is the following: https://pastebin.mozilla.org/8831301
Anyone can help me?The logs provided might not be enough to determine what is happening on the proxy side. It was mentioned that the proxy might be refusing to send an auth header or something, but that's largely invisible to Firefox sync servers. It seems you already got the message to cordinate with rfkelly to find the request in logs to make sure.
Comparing this to your timestamp in the proxy on your network may reveal. Go to the #sync channel or we can file a bug at bugzilla.mozilla.org and needsinfo rfkelly with this troubleshooting information for more details. Please respond with any questions about this, we are happy to assist.
Maybe you are looking for
-
No quotation found even after message "Quotation 20000051 has been saved"
Dear SAP friends I am trying to createa quote using the bapi (BAPI_QUOTATION_CREATEFROMDATA2). It runs with the following message 233 SALES_HEADER_IN has been processed successfully 233 SALES_ITEM_IN has been processed succesfully 555 The sales docu
-
[solved] Automount USB disk on startup?
Hi! I've got an external USB disk that's always connected to my computer (it sits in a "slot" in my computer) and I'm having trouble getting it to automount upon startup. I use openbox as WM and pcmanfm as FM. To mount it I have to access the disk th
-
Imac mail open and mouse has frozen on screen...please advise?
-
How can I get web searches to start with uk sites.
When I do a web search for a product it shows USA sites which is frustrating. How can I get UK sites to be the first sites displayed? Cheers Pat
-
How Does On Reference An Array Of Objects?
Howdy! Ive read through Flex 2's help and also through the wonderful book 'Developing Rich Clients With Flex' for topics relating to this question but very strangely with no luck (and I assume it's quite straight forward)! So hopefully you chaps can