Using JTA without an EJB server
Hi,
What is the most popular way of using JTA without EJB.
I notice there is:
JOTM?
Is this the one?
Cheers
beginner2 wrote:
Hi,
What is the most popular way of using JTA without EJB.
I notice there is:
JOTM?
http://jotm.objectweb.org/
Is this the one?
Cheerssure. that's one way.
%
Similar Messages
-
ArrayDescriptor.createDescriptor uses Oracle specific in EJB Server
I use Pramati EJB Server. It is EJB 1.1 compatible. I can use getCustomDatum calls without any error (even though it is Oracle specific). But I can't use setCustomDatum. It throws me ClassCastException error.
My line looks like
((OraclePreparedStatement) pstmt).setCustomDatum(...)
So I tried different method to acheive the same. That is to use Loosely Typed method setArray.
To use setArray I need to get the descriptor from Oracle.
I use the following line to do that.
ArrayDescriptor orderLinesDesc = ArrayDescriptor.createDescriptor("OBL_EMPLOYEE", connection);
Where OBL_EMPLOYEE is a Table of EMPLOYEE Object OB_EMPLOYEE.
Where OB_EMPLOYEE has several primitive fields and a TABLE (OBL_ROLES) of Roles object OB_ROLES.
Where OB_ROLES has primitive types and table (OBL_RESPONSIBILITY) of Responisibilities OB_RESPONSIBILITY
Where OB_Responsibility has primitive types
I get the same ClassCastException.
Both parameters (String, Connection) to createDescriptor are non Oracle-Specific.
But the EJB Server vendor says the method tries to typecast to OracleConnection which they don't support.
Any idea?user521490,
Pardon me if I am asking an obvious question, but did you create the ACCOUNT_TYPE using a "create type" DDL statement? For example:
create or replace type ACCOUNT_TYPE as ...An "ArrayDescriptor" only works for global types (as far as I know).
I'm guessing that JACKCACHE is a [PL/SQL] package, and that's probably why it doesn't work.
Good Luck,
Avi. -
Can I use RoboSource without buying RoboHelp Server?
I work for a University that has just purchased a new
database system (Advance for the Web) from SunGard Higher Ed. The
system came with on-line documentation written in RoboHelp that we
can edit to suit the needs of our institution. We could have edited
the individual HTML topics (about 1,300 of them total) without
RoboHelp, but instead we opted to purchase RoboHelp 7 in order to
have the entire pre-existing help project. I am the sole editor of
this project.
I would like to be able to use the RoboSource application in
order to track changes that I make to the pre-existing help topics,
but when I tried to add version control to my project, it prompted
me to create a connection to a database. Our database lives on a
remote server that is password protected. I tried to make the
connection, but I received the following error message: "No
connection could be made because the target machine actively
refused it." The RoboSource on-line documentation describes how to
create a database, but I don't need a new database because ours
already exists... I just can't connect to it via the RoboSource
application. That's my first problem.
The second problem: Even if there is a way to circumvent the
"remote server database issue" and create a "Help" database on my
local machine, I can't figure out how I would DO that. The
RoboSource on-line documentation says the following: "Unlike in
previous versions, creating a database for RoboSource Control 3.1
is not done within the RoboSource Control Explorer, but within a
stand-alone application - the RoboSource Server Configuration
Utility.” Does this mean that I need the RoboHelp Server, or
is there a RoboSource Server, too? Do I HAVE to have one (or both)
of these products in order to use version control?
Please help me. I'm not a technical person, but the people
who I work with who ARE technical people don't understand what I
need to do, either.@ Gravenstein
Thanks for your response.
>>...We are using three clients and one server. We have
installed the server component together with the client component
on a local PC. That's why I don't know whether the server component
needs a licence key or not. But it should not have to.
I haven't described it correct. We are using 3 clients to
work with. One of these clients has also the server installed. So
the database is not on a server machine but on a local PC. Now we
want to get the database away from the local PC to a server
machine. That's why I wonder if the installation of RSC Server on a
server asks for a licence key?!?
>>...This server doesn't need the robohelp environment
to edit topics, it only needs the server component. This should be
possible to install without asking for a licence key.
>> That is correct. At least that's the way it works
with RH6.
What do you mean with "that's the way it works with RH6"? How
about RH7? Does it work similar? I hope so, because we want to
upgrade and to move the database from the local PC to our server
machine after the upgrade.
By the way, does it function to copy the old database from
the local (server) PC to the server machine and after changing the
clients settings to work with the new server they could use the old
database in the new folder of the server machine again? Or do we
have to write the projects from every client to the new server
machine manually to work with the version control after changing
the server? I'm asking this because I don't know what is stored in
the database. If the folder name of the database is stored in the
database, it doesn't work any longer if it is moved to another
folder!? -
I have a message queue(with some XML files) and i am trying to write a mdb so that it can access that asynchronously and pass it to another java class for further processing.
My project is not using EJB and i am not so proficient in ejbs.
I DO NOT want to use any of those bmp or cmp but only mdb.I am still not able to get the exact design.Should i pass the data from mdb to servlet or from mdb directly to my model class.
Most of the info suggest/show examples of mdb along with session/entity beans.Can mdb function without other ejbs (except ejb container)?
Can someone suggest the best practices based on the above requirements? Sample code would be appreciative.
Regards,
GyanA MDB is essentially a piece of code that is automatically executed when a message is received from a JMS queue or topic. You can invoke a session bean from a MDB but you don't have to. You can do all the message processing in the MDB if you want to. You could, for example, transform the data, send another message, and write to a database, all from within the MDB.
A Servlet is essentially a piece of code that is automatically executed when a HTTP request (usually a GET or POST) is received, typically (but not necessarily) from a web browser.
You wouldn't normally invoke a servlet directly from a MDB, although it would be technically possible. More common is to do the oppsite, have a servlet that receives a HTTP request, extracts the information, and writes it to a JMS queue. A little later a MDB receives this message and processes it.
It might be worth reviewing the Java EE 5 tutorial at
http://java.sun.com/javaee/5/docs/tutorial/doc/index.html
especially the section on message-driven beans.
(there's also a tutorial for java EE 6).
Nigel -
Using DAO without J2EE/EJB
Can I implement the DAO pattern in my 2-tiered application without using J2EE/EJB? My reason for using DAO is simply to insulate database changes from interface/business code and to make interface/business code easier to write.
Sure, go ahead.
-
Authentication using database in j2ee ri server? URGENT!!
Hello I have installed j2sdkee1.3.1 and I use the web and ejb server that it includes. I start it with j2ee.bat and I create a application with jsp and ejb, and I use deploytool to deploy it. I don't have problem, but now I would like to use a form-based autentication. I config it in deploytool but I want that the j2ee server access to a database to check if a user have the role that he need to access. I do this with the option of deploytool in which you can add users and roles, but I don't know how to config it for a database.
In tomcat4.1 you can do this adding the next lines to server.xml:
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.jnetdirect.jsql.JSQLDriver"
connectionURL="jdbc:JSQLConnect://localhost/database=name"
connectionName="user" connectionPassword="pass"
userTable="user" userNameCol="usuario" userCredCol="clave"
userRoleTable="userRol" roleNameCol="rol" />
I want to use only the j2ee server. I config it in j2sdkee1.3.1\conf\server.xml adding the next lines, as I do with Tomcat but here in j2ee it isn't.
I don't know why j2ee server doesn't use this file, or how I have to config it to use a database to autenticate.
It's very urgent.
Thanks for all and sorry for my english I'm spanish.Hi Moi,
j2ee1.3.1 is not supported any more. Please try j2ee1.4beta2.
Regards,
-- markus. -
Can Output Designer be used without installing Output server?
Hi,
Is it possible to use Output Designer independently of Output Server? I cannot find any detailed documentation on the Adobe site and it is not possible to download a trial version.
I want to create a form that we ensure users entered mandatory fields and that has dynamic sub forms. I do not need to do any further electronic processing of the data in the form once it has been filled in.
ThxsHi,
Yes you can use the output designer without the output server.
We are using the Jfmerge to merge the text file( a temp file to manupulate the data) and .DAT files.the output will be a PCL file. This PCL file you cn send to printer or you can convert it to any other format.We are converting it to PDF file using PCL2PDF file.
Thanks,
Jimmy Thomas
[email protected] -
Can I use JavaMail without Mailing Server??
Dear All,
My name is Jonathan Wong, a final year student.
I am going to develop an internet application for my final year project that contains a part to sent e-mails by using JavaMail.
Can I use JavaMail without setting up any Mail Server?? If no, can I use the ISP one?? Also, how can I retreive the mailing list from database to JavaMail?? Please advise.
Thanks in advance.
Best Wishes
JonathanYou dont neend to set up a Mail server , You just have to connect to the desired mail server to send and retreive mails............. You should read the Javamail Api , you will find all the classes and required methods there ,, to retreive and send emails........
-
Can I use BizTalk A4SWIFT without installing BizTalk server?
Can I use BizTalk A4SWIFT message pack to parse and validate ISO messages without installing BizTalk server?
No, You can't use BizTalk A4 SWIFT message pack without BizTalk:
Here is the Prerequisites for BizTalk Server Accelerator for SWIFT - Message Pack 2012.
BizTalk
Server Version
A4SWIFT Version and Service Pack
(if required)
Microsoft Visual C++ 2005 SP1 Redistributable Package
Microsoft .NET Framework
BizTalk Server 2009
A4SWIFT 2009
No
3.5
BizTalk Server 2010
A4SWIFT 2010
No
4.0
Reference:
Installation document for BizTalk Server Accelerator for SWIFT - Message Pack 2012
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful. -
Start Admin Server using NodeManager without 'boot.properties'
Hi All,
I am trying to stat Admin Server using nodemanager through below code.
public static void main(String args[]) {
try{
System.out.println("Starting...");
InteractiveInterpreter interpreter = new WLSTInterpreter();
interpreter.exec("nmConnect('weblogic', 'weblogic123', '10.0.0.100', '5556', 'domain1','D:/oracle/MiddleWare/user_projects/domains/domain1','ssl')");
interpreter.exec("nmServerStatus('AdminServer')");
interpreter.exec("nmStart('AdminServer')");
interpreter.exec("nmDisconnect()");
System.out.println("End.");
}catch(Exception ex){
System.out.println("Hello...");
ex.printStackTrace();
}Everything is working fine but we need a property file 'boot.properties' under location 'Bea Home/user_projects/domain/domain1/servers/AdminServer/data/nodemanager' having username and password.
Please let me know if there is any way to start Admin Server using nodemanager without using 'boot.properties' file.
Is there any way to provide username and password directly to 'nmStart()' method.
Please let me know...
Edited by: Rajesh Panchal on Jun 14, 2011 1:56 AMHi Rajesh,
Maybe you are looking for something like:
wls:/nm/IDMDomain> pr=makePropertiesObject("username=weblogic;password=weblogic0");
wls:/nm/IDMDomain> nmStart('AdminServer',props=pr);
Then, in your source code it should be something like:
interpreter.exec("pr=makePropertiesObject('username=weblogic;password=weblogic0')");
interpreter.exec("nmStart('AdminServer',props=pr)");
Hope it works.
-Cris -
How to use jta in toplink and stateless session bean EJB 3.0?
I have an application with techologies jsf,stateless session bean, adf, toplink
generated by toplink workbench.
In web side ı want to use two methods in stateless session bean which are updated
different tables. I call these methods in my page backing bean.
I also want to JTA in web side. My first methods is done correctly, but second method has an error. I wanto to rollback all transaction.
How can ı do that? with using JTA in Toplink...Yuichi
Did you manage to solve this? I'm doing something similar and seeing the same problem, although they're up to 7.3 SP7.
Any help greatly appreciated.
Lewis -
Lync Server 2010 without Exchange UM -- Can I use Asterisk for a voicemail server?
As the title implies, I am wondering whether it's possible to use Asterisk for my Lync Server 2010 voicemail server instead of using Exchange 2010. (?) We are moving to the hosted Exchange solution in Office 365 and do not want to pay up to the UM feature
set.
Has anyone been able to get this working?we did this as well. listed for the SIP response code and redirected the call to external voicemail.
however answering the call and desiring to transfer the call to someone elses voicemail doesn't generate a SIP response code you can intercept. We jerry rigged a tech prefix to call outside for voicemail. but its annoying. forward your phone then unforward
the setting is lost. -
Remote Interface problem using Sun ONE App & web server
HI,
1) I am using an S'less SB. I have local & remote interfaces. I am using the sun one appserver7 & the sun ones's htttp server. By default it doesnt pick up the remote interfaces is it ? How do i make my remote interfaces work ? what are the changes required in config/xml ?
2) However i changed my client code (i.e my action class which is called by the struts action servlet ) to access the localhome rather than the remote home, but then i get java.lang.classcastexception.
pls help !
sanjayHi parsuram,
Thanks for the tip. After looking at the sample source code, I did finally figure out the solution - so I'll post it in case anyone else happens to be working with websphere studio has the same issue deploying on sun one.
To access local interface ejb, you must have the following
1. ejb-local-ref tag in the ejb-jar.xml like so underneath the <session> or <entity> tag of the bean which you plan to access the local ejb with.
<ejb-local-ref>
<ejb-ref-name>TestL</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>memory.simple.TestLLocalHome</local-home>
<local>memory.tool.simple.TestLLocal</local>
<ejb-link>TestL</ejb-link>
</ejb-local-ref>
2. similar ejb-ref tag in sun-ejb-jar.xml
<ejb-ref>
<ejb-ref-name>TestL</ejb-ref-name>
<jndi-name>localejbs/module_memory.betaEJB/TestL68640023372300293</jndi-name>
</ejb-ref>
note: sun generates the <jndi-name> and overwrites whatever you put in that tag no matter what you put in there.
3. here is the code to access
Context initial = new InitialContext();
TestLLocalHome tlHome=(TestLLocalHome) Initial.lookup
("TestL");
//the string must match <ejb-ref-name> underneath <ejb-local-ref>
4. note that the jndi name for the local interface bean becomes irrelevant. only the <ejb-ref-name> in the ejb-jar and sun-ejb-jar matter. furthermore, both <ejb-ref-name> must be the same or you won't be able to deploy.
5. This is completely my fault for not checking the "proper" way to access local interfaces. in websphere, they let you get away without the ejb-ref tags and just use the string "local:/TestL"!
-matt -
Changing Weblogic Server properties without restarting Weblogic Server
I have an application that requires a few things to be set at the start of the
Weblogic server (email addresses,criteria settings, etc.). These are contained
in a properties file that is referenced in the Weblogic properties file. The
problem is when I want to make a change in the application property file (change
an email address, increment a criteria) I have to "reboot" the Weblogic server.
These defeats the whole purpose of property files. Is there anyway to get Weblogic
to "recache" the properties files without a Weblogic server "reboot"?
Thanks,
BryanI very much doubt that you would be able to refresh the WebLogic properties
file at run-time (is this WebLogic 5.1 or 6.0 you are talking a about?).
If you want to be able to update properties run-time (as opposed to
boot-time) then don't use WebLogic's property file - use either your own
properties file or store the properties elsewhere such as in the database or
in JNDI. You will of course have to implement your own refresh algorithm.
If you are using EJBs then a simple READ-ONLY entity bean with a refresh
period of a few seconds may suffice.
Myles
"Bryan Freed" <[email protected]> wrote in message
news:3b1e5986$[email protected]..
>
I have an application that requires a few things to be set at the start ofthe
Weblogic server (email addresses,criteria settings, etc.). These arecontained
in a properties file that is referenced in the Weblogic properties file.The
problem is when I want to make a change in the application property file(change
an email address, increment a criteria) I have to "reboot" the Weblogicserver.
These defeats the whole purpose of property files. Is there anyway toget Weblogic
to "recache" the properties files without a Weblogic server "reboot"?
Thanks,
Bryan -
Changing a method in an EJB object without recompiling EJB-Clients
Hi!
I have 4 Web (JSP) applications using the same EJBs., deployed to a BEA Weblogic application server.I want to know if there is a way to change the code in a method in one of my EJB objects (no interface change) without recompiling and redeploying my EJB-clients and Web apps.
Regards,
Per - Chr.Hello,
I have 4 Web (JSP) applications using the same EJBs.,
deployed to a BEA Weblogic application server.I want
to know if there is a way to change the code in a
method in one of my EJB objects (no interface change)
without recompiling and redeploying my EJB-clients and
Web apps.You can change the EJB's without recompiling the clients as long as the interfaces and the classes used by both the EJB's and clients are not changed.
For example, if you don't change the interfaces but change the exception implementation thrown by a method of the bean, then you have to recompile the clients with the new version of the exception class.
Kexkey
Maybe you are looking for
-
I wonder if some one can clarify the whole Apple ID thing. Here's the situation. My girlfriend (who I live with) has just purchased a iPad. We intend to set her up with her own Apple ID (eg [email protected]) I currently have two Apple IDs but as I h
-
I have had Windows 7 64 bit for the past year and have run Firefox with no problem. It was the most problem free of the three browsers including IE and Chrome. I have a Vista side where I run my online backup and did so yesterday. Went on Firefox. No
-
Adobe flash player when on yahoo messenger for the web
I don't know if anyone else using the new version on the adobe flash player on yahoo messenger for the web. But it keeps on locking up and sometimes it cause internet explorer to lockup and crash. anyone out there having this as well. This sucks. Whe
-
SQL Query Problem - Please Help
Post Author: nmellick CA Forum: Data Connectivity and SQL Hello, I am trying to use a query in CR9 to pull the latest date of a DREXAM for each patient. The patient can have one item or several items. When I run this query, it only pulls back one r
-
Bug when using Sequencer.setTickPosition() ?
HI, I created a Track and added a few ControlChange events in ticks 0,96,192,288,384. This corresponds to beat indicators in a resolution of 96 (PPQ). I set the sequencer for a loop, starting at tick 0, and ending at tick 384. While the sequencer is