EJB 2.1实体bean与EJB 3.0实体bean(EJB 2.1 Entity beans vs. EJB 3.0 Entity beans)
我有一段时间怀疑这个问题,有些人说EJB 3.0中没有称为实体bean的东西。 有没有可能这么说,EJB 3.0使用JPA来持久保存数据,并且没有对先前版本(EJB 2.1)中的实体bean进行任何增强,而是刚刚带回来。另一个事实是EJB 2.1使用抽象POJO而EJB 3.0使用非-abstract POJOs。 我需要对这些事实做一些清晰的描述。
I had this doubt for sometime now, some people say that there's no such thing called entity beans in EJB 3.0. Is there any possibility to say so, EJB 3.0 uses JPA to persist the data and there's no enhancement to the entity beans from the previous version (EJB 2.1) it's just brought back.Another fact is EJB 2.1 uses abstract POJOs and EJB 3.0 uses non-abstract POJOs. I need some clear description about these facts.
原文:https://stackoverflow.com/questions/1660011
最满意答案
在链中添加另一个链接不会使链更加可用。
BizTalk有许多内置机制来改善这种连接的稳定性。 想想自动重试,自动节流。 servicebus不需要稳定性。
当您需要使用BizTalk不支持的协议时,您可能希望使用servicebus(例如,云中的CRM使用azure队列,BizTalk 2010不支持(更高版本)。
如果您运行BizTalk的环境是稳定的,那么BizTalk也将是稳定的。 如果环境不那么稳定,那么您可以查看群集以创建一些额外的稳定性。
Adding another link in a chain will not make the chain more available.
BizTalk has many built in mechanisms to improve the stablity of this connection. Think of automatic retries, automatic throttling. There is no need for servicebus for stability.
You may want to use servicebus when you need to use a protocol that BizTalk does not support (for example, CRM in the cloud uses azure queues, which BizTalk 2010 does not support (higher versions do)).
If the environment that you run BizTalk on is stable, then BizTalk will be stable as well. If the environment is not-so stable, then you can look into clustering to create some added stability.
相关问答
更多-
SQL Service Broker作为.NET的通用企业消息总线(SQL Service Broker as a generic Enterprise Message Bus for .net)[2021-11-11]
有人努力为SQL Server Service Broker打包一个WCF传输通道,但afaik正在放弃。 但NServiceBus支持Service Broker作为传输,请参阅使用NServiceBus和ServiceBroker.net,并且有github项目,如SQL Service Broker的简单包装API和NServiceBus的ITransport插件 。 虽然不完全是主流,但一些支持和社区努力确实存在。 作为ESB,我认为由于缺乏真正的pub-sub和广播,你会遇到问题。 SQL Ser ... -
使用BizTalk单例模式 。 这太丑了。 但BizTalk优雅的架构在遇到现实世界时会产生丑陋。 This question is already over a year old, but I just want to add an answer in case someone has the same problem. I tried playing with the throttling configuration of the BizTalk host. This did not help. I d ...
-
您可以使用没有服务总线的转换代理,反之亦然。 在具体产品方面,我认为任何一个都不是纯粹是一个或另一个,因为每一个互补的方式。 一些产品在一个领域更强,另一个则更强。 也许需要根据哪个功能最好地涵盖个别问题进行选择。 经纪人可能拥有比ESB产品更好的内置“lego块”来构建转型链。 作为ESB投入使用的经纪人可能会被压缩,不能很好地缩减,或者可能缺乏强大的日志记录和处理期刊的工具。 一旦发现了一个严重的逻辑错误,某些ESB就可以将数据库更新回滚并排队,以便将其重播到一个更正的应用程序中。 我不认为大多数经纪人 ...
-
使用Azure API App发送加密的Service Bus消息(Send encrypted Service Bus messages with Azure API App)[2023-03-27]
数据加密不是内置于Service Bus中的内容,但您绝对可以使用.NET库自行加密数据。 如果您的邮件低于最大大小(标准邮件为256 KB,高级邮件为1 MB),这非常简单。 只需将邮件正文设置为生成的加密邮件即可。 Data encryption is not something that is built into Service Bus, but you could definitely encrypt the data on your own using a .NET library. This ... -
Microsoft的BizTalk和AppFabric Service Bus团队实际上紧密合作,我们(我在那里工作)随着时间的推移将BizTalk的功能与AppFabric和Service Bus集成在一起。 对于BizTalk,我们有Windows Azure AppFabric Connect--它可让您将BizTalk插入到Service Bus中。 在PDC'10,我们宣布(http://bit.ly/9gm2zI)我们将把BizTalk集成功能的一个子集引入服务总线 - 您将会听到更多关于这些功 ...
-
SQL Service Broker队列处理消息中的外来字符(SQL Service Broker Queue Handling Foreign Characters in the message)[2022-07-08]
我最后通过使用HTML5对字符进行编码然后安全性转义它来处理这个问题。 我遇到了一些问题,使用HttpUtility库来处理这种编码,所以我添加了我用来处理编码的方法。 我希望我可以直接归功于此,我不记得我在哪里找到了这个,但是谢谢你,无论是谁: private string EncodeToHTML(string text) { // call the normal HtmlEncode first char[] chars = HttpUtility.HtmlEncode(text).ToCharArr ... -
正如Filburt所说! 您可以从业务流程中获得一个逻辑发送端口,并将业务流程绑定到管理控制台中的发送端口组; 所以你可以随意添加或删除发送端口。 如果任何服务也需要转换消息,则可以执行任何映射。 As Filburt said! You would have one logical send port out of your orchestration and you would bind your orchestration to a send port group in the Admin conso ...
-
在链中添加另一个链接不会使链更加可用。 BizTalk有许多内置机制来改善这种连接的稳定性。 想想自动重试,自动节流。 servicebus不需要稳定性。 当您需要使用BizTalk不支持的协议时,您可能希望使用servicebus(例如,云中的CRM使用azure队列,BizTalk 2010不支持(更高版本)。 如果您运行BizTalk的环境是稳定的,那么BizTalk也将是稳定的。 如果环境不那么稳定,那么您可以查看群集以创建一些额外的稳定性。 Adding another link in a cha ...
-
BizTalk集群(BizTalk Clustering)[2023-07-06]
是的,组中服务器的NLB在BTS中仍然非常有用,因为它允许像WCF这样的同步接收适配器受益于NLB。 这将允许您一次一个地停止BIztalk服务器,以便重新部署和重新启动主机,而不会影响Biztalk公开的Web服务的客户端。 然后,您可以为Web客户端系统提供NLB ip或主机名以发送请求。 IMO群集仅对于 接收适配器(如果两个或多个主机实例正在轮询相同的接收位置/队列等,则无法正常工作),如msmq 底层SQL服务器 这里有一个更彻底的讨论 但请注意,您不应该依赖NLB在应用程序/端口级别进行故障转移 ... -
根据您的代码,问题是由使用Python dict对象作为broker_properties的值引起的,但broker_properties值应该是json字符串。 请参阅GitHub上Azure SDK for Python中的测试代码 。 所以请修改您的代码,如下所示。 properties = '{"Label": "%s"}' % label 要么 import json properties = json.dumps({"Label":label}) According to your code ...