Venkat dasari

Ranch Hand
+ Follow
since Nov 12, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Venkat dasari

Hi,
We are trying to implement the interportlet communication between, IBM Websphere(from where the request comes), to Weblogic (the request is processed and displays a portal page) on websphere.
i couldnt find any samples or maybe i am searching wrong. I am unable to retrieve the request parameters that comes from Websphere. It always returns null.
Is there any way that we can do this implementation? The Websphere that we use is version 6, and weblogic is 10.3

Any inputs are appreciated. Totally new to IPC.

Thanks,
Venkat Dasari
15 years ago
Hi,
I am totally new to portlets. But i had done some samples on this.
My requirement is this. We have an application in Flex. And We need to embed a screen in that application in the portal.
The portal is running on Websphere, and the application is on Weblogic. I am trying to use WSRP to do this. I am not sure how flex response page can be embedded onto the portal.

Any help will be appreciated.

Thanks for your time.

--Venkat Dasari
15 years ago
Hi,
Thanks for your replies. But i really need an XA driver and my kodos persistence.xml is attached as below. (I tried even using connection2properties also). And i still face the same problem. I am configuring the XA driver from weblogic console...(I am using Weblogic 10.0)

<?xml version="1.0"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="atmFrOmsJpaPersistence" transaction-type="JTA">
<jta-data-source>XA-Name</jta-data-source>
<mapping-file>atmfroms.properties</mapping-file>
<class>class....</class>
<properties>
<property name="kodo.LicenseKey" value="license.val"/>
<property name="kodo.ConnectionUsername" value="val"/>
<property name="kodo.ConnectionPassword" value="val"/>
<property name="kodo.ConnectionURL" value="jdbc racle:thin:@120.120.120.120:1521 ev1"/>
<property name="kodo.ConnectionDriverName" value="oracle.jdbc.xa.client.OracleXADataSource"/>
<property name="kodo.ConnectionFactoryProperties" value="MaxActive=20, MaxIdle=10"/>
<property name="kodo.TransactionMode" value="managed"/>
<property name="kodo.ConnectionFactoryMode" value="managed"/>
<!-- property name="kodo.DataCache" value="lru(CacheSize=5000, SoftReferenceSize=0)"/ -->
<!-- property name="kodo.Sequence" value="table(Table=KODOSEQ, Increment=100)"/ -->
</properties>

</persistence-unit>
</persistence>
16 years ago
Hi,
I am trying to create an XA datasource on weblogic 10 and when i try to retrieve the records from the db, i get the below error. "Cannot Set Auto-Commit mode when using distributed transaction" Also below is my persistence.xml

Exception in thread "main" javax.ejb.EJBException: nested exception is: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is <openjpa-1.0.2-r420667:627158 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot set auto-commit mode when using distributed transactions
org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is <openjpa-1.0.2-r420667:627158 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot set auto-commit mode when using distributed transactions
at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:379)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:261)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

<?xml version="1.0"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="persistence1" transaction-type="JTA">
<jta-data-source>persist-XA</jta-data-source>
<class>---</class>
<properties>
<property name="kodo.Connection2Username" value="val"/>
<property name="kodo.Connection2Password" value="val"/>
<property name="kodo.Connection2URL" value="jdbc racle:thin:@IP:1521 ev1"/>
<property name="kodo.Connection2DriverName" value="oracle.jdbc.xa.client.OracleXADataSource"/>
<property name="kodo.ConnectionFactory2Properties" value="MaxActive=20, MaxIdle=10"/>
<property name="kodo.TransactionMode" value="managed"/>
<property name="kodo.ConnectionFactoryMode" value="managed"/>
</properties>
</persistence-unit>
</persistence>

Please provide your inputs.

Regards,
Venkat Dasari
Hi,
I am trying to create an XA datasource on weblogic 10 and when i try to retrieve the records from the db, i get the below error. "Cannot Set Auto-Commit mode when using distributed transaction" Also below is my persistence.xml

Exception in thread "main" javax.ejb.EJBException: nested exception is: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is <openjpa-1.0.2-r420667:627158 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot set auto-commit mode when using distributed transactions
org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is <openjpa-1.0.2-r420667:627158 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot set auto-commit mode when using distributed transactions
at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:379)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:261)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

<?xml version="1.0"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="persistence1" transaction-type="JTA">
<jta-data-source>persist-XA</jta-data-source>
<class>---</class>
<properties>
<property name="kodo.Connection2Username" value="val"/>
<property name="kodo.Connection2Password" value="val"/>
<property name="kodo.Connection2URL" value="jdbc racle:thin:@IP:1521 ev1"/>
<property name="kodo.Connection2DriverName" value="oracle.jdbc.xa.client.OracleXADataSource"/>
<property name="kodo.ConnectionFactory2Properties" value="MaxActive=20, MaxIdle=10"/>
<property name="kodo.TransactionMode" value="managed"/>
<property name="kodo.ConnectionFactoryMode" value="managed"/>
</properties>
</persistence-unit>
</persistence>

Please provide your inputs.

Regards,
Venkat Dasari
Hi,
We use weblogic 10 and configured an XA datasource for the spring application. and i see that when i try to run a retrieve query on the application,
It says, "Cannot set auto-commit mode when using distributed transactions" though we are not doing any explicit setting to the autocommit. Does Spring or OpenJPA does this explicit set, if so, how do i override?

Any inputs?
Thanks in advance.

Regards,
Venkat Dasari
16 years ago
Thanks a Lot!! I solved the problem.

Venkat
Hi,
I am trying to generate POJOs using hbm2java. I downloaded the hibernate extensions package and after setting the appropriate class path, I am trying to execute the hbm2java file giving the mapping file as input. When I do that it throws me net. sf. hibernate. MappingExpcetion. I looked into the downloaded jar file and the source of the file. But it is not showing that particular file in the package. Can someon help me out in downloading the net.sf.* package. I tried searching google but in vain. I am trying from the past so many days. Any help would be appreciated.

Thanks in advance,
Venkat Dasari
Hi,
I am trying to create a lomboz j2ee module, but i am unable to do it. I am unsing eclipse 2.1 with lomboz on jdk1.3. When i try creating a lomboz j2ee module in the following steps.
1) Configured the Sever Definitions in Windows-->Preferences|-->Lomboz--> Server Definitions to Weblogic v8.1
2) Opened the Lomboz J2EE Module and configured the targeted servers and added two folders one for web module and other for ejb module. But when i click on finish after doing that it is not even giving an error msg or it is not adding the modules to my project explorer.
Any help would be appreciated.
Thanks in advance,
Venkat Dasari
Hi,
We are working on a product which currently runs on jdk 1.4.2_05 version and we are using the java help 1.2. Now we are upgrading our product to jdk1.5. Can use the same version for java help or do i need to upgrade that one too.

Please let me know your suggestions or advice.

Thanks in advance
Venkat Dasari
19 years ago
Hi

I am using the JRPC in my project and I would like to know what is the latest version supported and also to know what is the End Of Life for JRPC 1.2

Thanks in advance
19 years ago
Hi,
I am new to Corba and i am trying to run my sample program in Corba using Jbuilder.
While trying to run the server I tried to get the name service but repeatedly i get the org.omg.Corba.COMM_Failure.
I am providing the code to the server and as well as the trace for further information
Note: i also tried using the NamingContext and NamingContextExt



public class CountServer {
public CountServer() {
}
public static void main(String args[]){
try {
ORB orb = ORB.init(args, null);
POA rootPOA = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
rootPOA.the_POAManager().activate();
CountImpl cImpl = new CountImpl();
cImpl.setORB(orb);
org.omg.CORBA.Object ref = rootPOA.servant_to_reference(cImpl);
count cnt = countHelper.narrow(ref);
org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");Line Number 34
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
NameComponent nc = new NameComponent("count","");
NameComponent path[] = {nc};
ncRef.rebind(path,cnt);
System.out.println("Count Server is ready and waiting");
orb.run();
} catch (org.omg.CORBA.SystemException se) {
se.printStackTrace();
}catch(Exception e){
e.printStackTrace();
}
}
}


Server Trace:

org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No

at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)

at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)

at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)

at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)

at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)

at com.sun.corba.se.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1105)

at com.sun.corba.se.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:788)

at com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1186)

at com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1079)

at com.sun.corba.se.internal.corba.ORB.resolve_initial_references(ORB.java:2436)

at counter.CountServer.main(CountServer.java:34)


Any help would be appreciated.

Thanks and Regards,
Venkat Dasari
19 years ago
Hi,
I have a method ejbFindByEmployeeName(String ename)in my bean. Here i am executing a query based on the name and creating a primary key for each record and adding it to the collection and returning it to the client. Now at the client side i am iterating over the collection and getting the remote component for each.

The problem is now i get only one record two times. I am unable to get the second record. Only the first one is being returned twice.

Please someone suggest me a solution.

Thanks and Regards,
Venkat Dasari
Hi,
Will hibernate work with oracle 10g? can someone answer this?

Thanks and Regards,
Venkat Dasari